![]() |
ROOT 6.10/09 Reference Guide |
Definition at line 27 of file TRootSniffer.h.
Public Member Functions | |
TRootSnifferScanRec () | |
constructor More... | |
virtual | ~TRootSnifferScanRec () |
destructor More... | |
void | BeforeNextChild () |
indicates that new child for current element will be started More... | |
void | BuildFullName (TString &buf, TRootSnifferScanRec *prnt=0) |
Produces full name for the current item. More... | |
Bool_t | CanExpandItem () |
Returns true when item can be expanded. More... | |
Bool_t | CanSetFields () const |
return true when fields could be set to the hierarchy item More... | |
void | CloseNode () |
close started node More... | |
void | CreateNode (const char *_node_name) |
Starts new node, must be closed at the end. More... | |
Int_t | Depth () const |
Returns depth of hierarchy. More... | |
Bool_t | Done () const |
Method indicates that scanning can be interrupted while result is set. More... | |
Bool_t | GoInside (TRootSnifferScanRec &super, TObject *obj, const char *obj_name=0, TRootSniffer *sniffer=0) |
Method verifies if new level of hierarchy should be started with provided object. More... | |
Bool_t | IsReadOnly (Bool_t dflt=kTRUE) |
Returns read-only flag for current item. More... | |
Bool_t | IsReadyForResult () const |
Checks if result will be accepted. More... | |
void | MakeItemName (const char *objname, TString &itemname) |
Construct item name, using object name as basis. More... | |
Bool_t | ScanOnlyFields () const |
return true when only fields are scanned by the sniffer More... | |
void | SetField (const char *name, const char *value, Bool_t with_quotes=kTRUE) |
Set item field only when creating is specified. More... | |
Bool_t | SetFoundResult (void *obj, TClass *cl, TDataMember *member=0) |
Set found element with class and datamember (optional) More... | |
Bool_t | SetResult (void *obj, TClass *cl, TDataMember *member=0) |
Obsolete, use SetFoundResult instead. More... | |
void | SetRootClass (TClass *cl) |
Mark item with ROOT class and correspondent streamer info. More... | |
Protected Types | |
enum | { kScan = 0x0001, kExpand = 0x0002, kSearch = 0x0004, kCheckChilds = 0x0008, kOnlyFields = 0x0010, kActions = 0x001F } |
Protected Attributes | |
Bool_t | fHasMore |
! indicates that potentially there are more items can be found More... | |
TString | fItemName |
! name of current item More... | |
TList | fItemsNames |
! list of created items names, need to avoid duplication More... | |
Int_t | fLevel |
! current level of hierarchy More... | |
UInt_t | fMask |
! defines operation kind More... | |
Bool_t | fNodeStarted |
! indicate if node was started More... | |
Int_t | fNumChilds |
! number of childs More... | |
Int_t | fNumFields |
! number of fields More... | |
TRootSnifferScanRec * | fParent |
! pointer on parent record More... | |
Int_t | fRestriction |
! restriction 0 - default, 1 - read-only, 2 - full access More... | |
const char * | fSearchPath |
! current path searched More... | |
TRootSnifferStore * | fStore |
! object to store results More... | |
Friends | |
class | TRootSniffer |
#include <TRootSniffer.h>
|
protected |
Definition at line 33 of file TRootSniffer.h.
TRootSnifferScanRec::TRootSnifferScanRec | ( | ) |
constructor
Definition at line 77 of file TRootSniffer.cxx.
|
virtual |
destructor
Definition at line 87 of file TRootSniffer.cxx.
void TRootSnifferScanRec::BeforeNextChild | ( | ) |
indicates that new child for current element will be started
Definition at line 104 of file TRootSniffer.cxx.
void TRootSnifferScanRec::BuildFullName | ( | TString & | buf, |
TRootSnifferScanRec * | prnt = 0 |
||
) |
Produces full name for the current item.
Produce full name, including all parents.
Definition at line 138 of file TRootSniffer.cxx.
Bool_t TRootSnifferScanRec::CanExpandItem | ( | ) |
Returns true when item can be expanded.
returns true if current item can be expanded - means one could explore objects members
Definition at line 270 of file TRootSniffer.cxx.
|
inline |
return true when fields could be set to the hierarchy item
Definition at line 63 of file TRootSniffer.h.
void TRootSnifferScanRec::CloseNode | ( | ) |
close started node
Definition at line 171 of file TRootSniffer.cxx.
void TRootSnifferScanRec::CreateNode | ( | const char * | _node_name | ) |
Starts new node, must be closed at the end.
creates new node with specified name if special symbols like "[]&<>" are used, node name will be replaced by default name like "extra_item_N" and original node name will be recorded as "_original_name" field Optionally, object name can be recorded as "_realname" field
Definition at line 157 of file TRootSniffer.cxx.
Int_t TRootSnifferScanRec::Depth | ( | ) | const |
Returns depth of hierarchy.
returns current depth of scanned hierarchy
Definition at line 254 of file TRootSniffer.cxx.
Bool_t TRootSnifferScanRec::Done | ( | ) | const |
Method indicates that scanning can be interrupted while result is set.
returns true if scanning is done Can happen when searched element is found
Definition at line 193 of file TRootSniffer.cxx.
Bool_t TRootSnifferScanRec::GoInside | ( | TRootSnifferScanRec & | super, |
TObject * | obj, | ||
const char * | obj_name = 0 , |
||
TRootSniffer * | sniffer = 0 |
||
) |
Method verifies if new level of hierarchy should be started with provided object.
If required, all necessary nodes and fields will be created Used when different collection kinds should be scanned
Definition at line 299 of file TRootSniffer.cxx.
Returns read-only flag for current item.
returns read-only flag for current item Depends from default value and current restrictions
Definition at line 286 of file TRootSniffer.cxx.
Bool_t TRootSnifferScanRec::IsReadyForResult | ( | ) | const |
Checks if result will be accepted.
Used to verify if sniffer should read object from the file
Definition at line 208 of file TRootSniffer.cxx.
Construct item name, using object name as basis.
constructs item name from object name if special symbols like '/', '#', ':', '&', '?' are used in object name they will be replaced with '_'.
To avoid item name duplication, additional id number can be appended
Definition at line 116 of file TRootSniffer.cxx.
|
inline |
return true when only fields are scanned by the sniffer
Definition at line 66 of file TRootSniffer.h.
void TRootSnifferScanRec::SetField | ( | const char * | name, |
const char * | value, | ||
Bool_t | with_quotes = kTRUE |
||
) |
Set item field only when creating is specified.
record field for current element
Definition at line 95 of file TRootSniffer.cxx.
Bool_t TRootSnifferScanRec::SetFoundResult | ( | void * | obj, |
TClass * | cl, | ||
TDataMember * | member = 0 |
||
) |
Set found element with class and datamember (optional)
set results of scanning when member specified, obj is pointer on object to which member belongs
Definition at line 240 of file TRootSniffer.cxx.
Bool_t TRootSnifferScanRec::SetResult | ( | void * | obj, |
TClass * | cl, | ||
TDataMember * | member = 0 |
||
) |
Obsolete, use SetFoundResult instead.
set results of scanning when member should be specified, use SetFoundResult instead
Definition at line 227 of file TRootSniffer.cxx.
Mark item with ROOT class and correspondent streamer info.
set root class name as node kind in addition, path to master item (streamer info) specified Such master item required to correctly unstream data on JavaScript
Definition at line 184 of file TRootSniffer.cxx.
|
friend |
Definition at line 29 of file TRootSniffer.h.
|
protected |
! indicates that potentially there are more items can be found
Definition at line 51 of file TRootSniffer.h.
|
protected |
! name of current item
Definition at line 46 of file TRootSniffer.h.
|
protected |
! list of created items names, need to avoid duplication
Definition at line 47 of file TRootSniffer.h.
|
protected |
! current level of hierarchy
Definition at line 45 of file TRootSniffer.h.
|
protected |
! defines operation kind
Definition at line 43 of file TRootSniffer.h.
|
protected |
! indicate if node was started
Definition at line 52 of file TRootSniffer.h.
|
protected |
! number of childs
Definition at line 54 of file TRootSniffer.h.
|
protected |
! number of fields
Definition at line 53 of file TRootSniffer.h.
|
protected |
! pointer on parent record
Definition at line 42 of file TRootSniffer.h.
|
protected |
! restriction 0 - default, 1 - read-only, 2 - full access
Definition at line 48 of file TRootSniffer.h.
|
protected |
! current path searched
Definition at line 44 of file TRootSniffer.h.
|
protected |
! object to store results
Definition at line 50 of file TRootSniffer.h.