12#ifndef ROOT_TRootSnifferStore
13#define ROOT_TRootSnifferStore
#define ClassDef(name, id)
TClass instances represent classes, structs and namespaces in the ROOT type system.
All ROOT classes may have RTTI (run time type identification) support added.
A TFolder object is a collection of objects and folders.
Mother of all ROOT objects.
Storage of hierarchy scan in TRootSniffer in JSON format.
virtual void SetField(Int_t lvl, const char *field, const char *value, Bool_t with_quotes)
set field (json field) in current node
virtual void BeforeNextChild(Int_t lvl, Int_t nchld, Int_t nfld)
called before next child node created
virtual void CreateNode(Int_t lvl, const char *nodename)
starts new json object, will be closed by CloseNode
TRootSnifferStoreJson(TString &_buf, Bool_t _compact=kFALSE)
virtual void CloseNode(Int_t lvl, Int_t numchilds)
called when node should be closed depending from number of childs different xml format is applied
virtual ~TRootSnifferStoreJson()
Bool_t fCompact
! produce compact json code
TString * fBuf
! output buffer
Storage of hierarchy scan in TRootSniffer in XML format.
TRootSnifferStoreXml(TString &_buf, Bool_t _compact=kFALSE)
virtual void CreateNode(Int_t lvl, const char *nodename)
starts new xml node, will be closed by CloseNode
virtual Bool_t IsXml() const
Bool_t fCompact
! produce compact xml code
virtual ~TRootSnifferStoreXml()
virtual void SetField(Int_t lvl, const char *field, const char *value, Bool_t)
set field (xml attribute) in current node
TString * fBuf
! output buffer
virtual void BeforeNextChild(Int_t lvl, Int_t nchld, Int_t)
called before next child node created
virtual void CloseNode(Int_t lvl, Int_t numchilds)
called when node should be closed depending from number of childs different xml format is applied
Abstract interface for storage of hierarchy scan in TRootSniffer.
TClass * fResClass
! class of found item
Int_t GetResNumChilds() const
TDataMember * GetResMember() const
virtual ~TRootSnifferStore()
destructor
virtual void CreateNode(Int_t, const char *)
Int_t fResRestrict
! restriction for result, 0-default, 1-readonly, 2-full
void SetResult(void *_res, TClass *_rescl, TDataMember *_resmemb, Int_t _res_chld, Int_t restr=0)
set pointer on found element, class and number of childs
TRootSnifferStore()
normal constructor
void * fResPtr
! pointer on found item
virtual void CloseNode(Int_t, Int_t)
TClass * GetResClass() const
virtual Bool_t IsXml() const
virtual void BeforeNextChild(Int_t, Int_t, Int_t)
Int_t GetResRestrict() const
virtual void SetField(Int_t, const char *, const char *, Bool_t)
TDataMember * fResMember
! datamember pointer of found item
Int_t fResNumChilds
! count of found childs, -1 by default