4 #ifndef ROOT_TSchemaRuleSet 5 #define ROOT_TSchemaRuleSet 24 class TMatches:
public std::vector<const TSchemaRule*>
27 operator bool() {
return !empty(); }
78 #endif // ROOT_TSchemaRuleSet Bool_t HasRuleWithSourceClass(const TString &source) const
Return True if we have any rule whose source class is 'source'.
Bool_t AddRule(TSchemaRule *rule, EConsistencyCheck checkConsistency=kCheckAll, TString *errmsg=0)
The consistency check always fails if the TClass object was not set! if checkConsistency is: kNoCheck...
TClassRef fClass
Array of all rules.
Namespace for new ROOT classes and functions.
Bool_t HasRuleWithTarget(const TString &name, Bool_t willset) const
Return true if the set of rules has at least one rule that has the data member named 'name' as a targ...
void RemoveRule(TSchemaRule *rule)
Remove given rule from the set - the rule is not being deleted!
const TSchemaRule * GetRuleWithTarget(const TString &name) const
Return the rule that has 'name' as a target.
virtual ~TSchemaRuleSet()
Destructor.
TSchemaRuleSet()
Default constructor.
void ls(Option_t *option="") const
The ls function lists the contents of a class on stdout.
TObjArray * fPersistentRules
void RemoveRules(TObjArray *rules)
remove given array of rules from the set - the rules are not being deleted!
void AsString(TString &out) const
Fill the string 'out' with the string representation of the rule.
#define ClassDef(name, id)
Bool_t AddRules(TSchemaRuleSet *rules, EConsistencyCheck checkConsistency=kCheckAll, TString *errmsg=0)
Int_t GetClassVersion() const
const TObjArray * GetRules() const
const TMatches FindRules(const TString &source) const
Return all the rules that are about the given 'source' class.
TString fClassName
Target class pointer (for consistency checking)
void SetClass(TClass *cls)
Set the TClass associated with this rule set.
The ROOT global object gROOT contains a list of all defined classes.
TObjArray * fAllRules
Array of non-persisten rules - just for cleanup purposes - owns the elements.
Bool_t HasRuleWithSource(const TString &name, Bool_t needingAlloc) const
Return true if the set of rules has at least one rule that has the data member named 'name' as a sour...
TObjArray * fRemainingRules
const TSchemaRule * GetRuleWithSource(const TString &name) const
Return the rule that has 'name' as a source.
Mother of all ROOT objects.
TClassRef is used to implement a permanent reference to a TClass object.
TString GetClassName() const
UInt_t GetClassCheckSum() const
const TObjArray * GetPersistentRules() const