#ifndef ROOT_TSchemaRuleSet
#define ROOT_TSchemaRuleSet
class TClass;
#include "TObject.h"
#include "TObjArray.h"
#include "Rtypes.h"
#include "TString.h"
#include "TClassRef.h"
namespace ROOT {
class TSchemaRule;
class TSchemaMatch: public TObjArray
{
public:
virtual ~TSchemaMatch() {};
const TSchemaRule* GetRuleWithSource( const TString& name ) const;
const TSchemaRule* GetRuleWithTarget( const TString& name ) const;
Bool_t HasRuleWithSource( const TString& name ) const;
Bool_t HasRuleWithTarget( const TString& name ) const;
};
class TSchemaRuleSet: public TObject
{
public:
TSchemaRuleSet();
virtual ~TSchemaRuleSet();
Bool_t AddRule( TSchemaRule* rule, Bool_t checkConsistency = kTRUE );
Bool_t HasRuleWithSourceClass( const TString &source) const;
const TObjArray* FindRules( const TString &source ) const;
const TSchemaMatch* FindRules( const TString &source, Int_t version ) const;
const TSchemaMatch* FindRules( const TString &source, UInt_t checksum ) const;
TClass* GetClass();
UInt_t GetClassCheckSum() const;
TString GetClassName() const;
Int_t GetClassVersion() const;
const TObjArray* GetRules() const;
const TObjArray* GetPersistentRules() const;
void RemoveRule( TSchemaRule* rule );
void RemoveRules( TObjArray* rules );
void SetClass( TClass* cls );
ClassDef( TSchemaRuleSet, 1 )
private:
TObjArray* fPersistentRules;
TObjArray* fRemainingRules;
TObjArray* fAllRules;
TClassRef fClass;
TString fClassName;
Int_t fVersion;
UInt_t fCheckSum;
};
}
#endif // ROOT_TSchemaRuleSet
Last change: Fri Sep 19 09:32:28 2008
Last generated: 2008-09-19 09:32
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.