swh:1:snp:af87cd67498ef4fe47c76ed3e7caffe5b61facaf
Tip revision: 49ae85f5fe419209f949b04e8253a0015b8946a0 authored by Axel Naumann on 27 November 2023, 18:27:38 UTC
[foundation] Update version file to 6.30.02.
[foundation] Update version file to 6.30.02.
Tip revision: 49ae85f
TXMLPlayer.h
// @(#)root/xml:$Id$
// Author: Sergey Linev 10.05.2004
/*************************************************************************
* Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* *
* For the licensing terms see $ROOTSYS/LICENSE. *
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/
#ifndef ROOT_TXMLPlayer
#define ROOT_TXMLPlayer
#include "TObject.h"
#include "TXMLSetup.h"
class TStreamerInfo;
class TStreamerElement;
class TStreamerSTL;
class TDataMember;
class TList;
class TXMLPlayer : public TObject {
public:
TXMLPlayer();
~TXMLPlayer() override;
Bool_t ProduceCode(TList *cllist, const char *filename);
protected:
TString GetStreamerName(TClass *cl);
const char *ElementGetter(TClass *cl, const char *membername, int specials = 0);
const char *ElementSetter(TClass *cl, const char *membername, char *endch);
TString GetMemberTypeName(TDataMember *member);
TString GetBasicTypeName(TStreamerElement *el);
TString GetBasicTypeReaderMethodName(Int_t type, const char *realname);
void ProduceStreamerSource(std::ostream &fs, TClass *cl, TList *cllist);
void ReadSTLarg(std::ostream &fs, TString &argname, int argtyp, Bool_t isargptr, TClass *argcl, TString &tname,
TString &ifcond);
void WriteSTLarg(std::ostream &fs, const char *accname, int argtyp, Bool_t isargptr, TClass *argcl);
Bool_t ProduceSTLstreamer(std::ostream &fs, TClass *cl, TStreamerSTL *el, Bool_t isWriting);
TString fGetterName; //! buffer for name of getter method
TString fSetterName; //! buffer for name of setter method
TXMLSetup fXmlSetup; //! buffer for xml names conversion
ClassDefOverride(TXMLPlayer, 1) // Generation of external xml streamers
};
#endif