54 if (strpbrk(value,
"<>&\'\"") == 0) {
58 const char *
v = value;
61 case '<':
fBuf.Append(
"<");
break;
62 case '>':
fBuf.Append(
">");
break;
63 case '&':
fBuf.Append(
"&");
break;
64 case '\'':
fBuf.Append(
"'");
break;
65 case '\"':
fBuf.Append(
""");
break;
66 default:
fBuf.Append(*
v);
break;
128 for (
const char *
v = value; *
v != 0;
v++)
130 case '\n':
fBuf.Append(
"\\n");
break;
131 case '\t':
fBuf.Append(
"\\t");
break;
132 case '\"':
fBuf.Append(
"\\\"");
break;
133 case '\\':
fBuf.Append(
"\\\\");
break;
134 case '\b':
fBuf.Append(
"\\b");
break;
135 case '\f':
fBuf.Append(
"\\f");
break;
136 case '\r':
fBuf.Append(
"\\r");
break;
137 case '/':
fBuf.Append(
"\\/");
break;
139 if ((*
v > 31) && (*
v < 127))
int Int_t
Signed integer 4 bytes (int).
bool Bool_t
Boolean (0=false, 1=true) (bool).
TClass instances represent classes, structs and namespaces in the ROOT type system.
All ROOT classes may have RTTI (run time type identification) support added.
void CreateNode(Int_t lvl, const char *nodename) final
starts new json object, will be closed by CloseNode
void CloseNode(Int_t lvl, Int_t numchilds) final
called when node should be closed depending from number of childs different xml format is applied
void SetField(Int_t lvl, const char *field, const char *value, Bool_t with_quotes) final
set field (json field) in current node
TString & fBuf
! output buffer
void BeforeNextChild(Int_t lvl, Int_t nchld, Int_t nfld) final
called before next child node created
Bool_t fCompact
! produce compact json code
void SetField(Int_t lvl, const char *field, const char *value, Bool_t) final
set field (xml attribute) in current node
Bool_t fCompact
! produce compact xml code
void CloseNode(Int_t lvl, Int_t numchilds) final
Called when node should be closed.
TString & fBuf
! output buffer
void CreateNode(Int_t lvl, const char *nodename) final
starts new xml node, will be closed by CloseNode
void BeforeNextChild(Int_t lvl, Int_t nchld, Int_t) final
called before next child node created
TClass * fResClass
! class of found item
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
void * fResPtr
! pointer on found item
TDataMember * fResMember
! datamember pointer of found item
Int_t fResNumChilds
! count of found childs, -1 by default
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.