63 fBuf->Append(
TString::Format(
"%*s<item _name=\"%s\"", fCompact ? 0 : (lvl + 1) * 2,
"", nodename));
72 if (strpbrk(value,
"<>&\'\"") == 0) {
143 if (!fCompact) fBuf->Append(
"\n");
144 fBuf->Append(
TString::Format(
"%*s\"_name\"%s\"%s\"", fCompact ? 0 : lvl * 4 + 2,
"", (fCompact ?
":" :
" : "), nodename));
160 for (
const char *
v = value; *
v != 0;
v++)
187 if ((*
v > 31) && (*
v < 127))
All ROOT classes may have RTTI (run time type identification) support added.
Storage of hierarchy scan in TRootSniffer in JSON format.
ClassImp(TRootSnifferStore) TRootSnifferStore
normal constructor
Bool_t fCompact
output buffer
TDataMember * fResMember
class of found item
Int_t fResRestrict
count of found childs, -1 by default
Int_t fResNumChilds
datamember pointer of found item
Abstract interface for storage of hierarchy scan in TRootSniffer.
virtual void BeforeNextChild(Int_t lvl, Int_t nchld, Int_t nfld)
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 ...
virtual ~TRootSnifferStore()
destructor
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString...
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 ...
TString & Append(const char *cs)
virtual void SetField(Int_t lvl, const char *field, const char *value, Bool_t with_quotes)
set field (json field) in current node
Storage of hierarchy scan in TRootSniffer in XML format.
Bool_t fCompact
output buffer
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
The ROOT global object gROOT contains a list of all defined classes.
virtual void BeforeNextChild(Int_t lvl, Int_t nchld, Int_t)
called before next child node created
TClass * fResClass
pointer on found item
Mother of all ROOT objects.
typedef void((*Func_t)())
virtual void SetField(Int_t lvl, const char *field, const char *value, Bool_t)
set field (xml attribute) in current node