23 #ifndef ADF_FactoryItem
24 #define ADF_FactoryItem
55 std::string fWhichFactory;
56 Short_t fWhichFactoryVersion;
57 std::string fWhichItem;
71 FactoryItem(
const Char_t* factname, Short_t factversion,
const Char_t *whichitem,
Version itemversion);
77 {
return fWhichFactory; }
79 {
return fWhichItem; }
83 {
return fWhichFactoryVersion; }
86 { fWhichFactoryVersion = v; }
89 {
return fWhichVersion; }
92 { fWhichVersion = v; }
95 {
return fPtrFactory; }
98 { fPtrFactory = ptr; }
101 void SetItem(
const Char_t *whichfactory,
const Char_t *whichitem,
Version itemversion, Short_t factversion = -1,
void *ptr = 0x0);
102 void SetItem(
const Char_t *whichfactory, Short_t factversion,
const Char_t *whichitem,
Version itemversion,
void *ptr = 0x0);
105 { fWhichFactory = fname; }
108 { fWhichItem = iname; }
137 {
return item_from == item_to; }
std::istream & operator>>(std::istream &is, ADF::FactoryItem &item)
Bool_t ChangeOfVersion(const FactoryItem &item_from, const FactoryItem &item_to)
change from item_from to item_to is allowed if they differ only by the item version number ...
Bool_t AllChange(const FactoryItem &, const FactoryItem &)
Any changes (factory,type,version) allowed.
void SetFactoryVersion(Short_t v)
Change the factory version.
std::ostream & operator<<(std::ostream &os, const ADF::FactoryItem &item)
Bool_t(* PF_FactoryItemChange)(const FactoryItem &, const FactoryItem &)
prototype function to control the evolution of a factory item.
Bool_t NoChange(const FactoryItem &item_from, const FactoryItem &item_to)
No changes allowed.
Bool_t IsAVersion(const FactoryItem &) const
Compare two items.
void SetFactoryName(const char *fname)
void SetVersion(const Version v)
change
header file for Version.cpp
Short_t GetFactoryVersion() const
Ask the factory version.
Base class for version numbers.
const std::string & GetFactoryName() const
void SetItemName(const char *iname)
void SetItem(const Char_t *whichfactory, const Char_t *whichitem, Version itemversion, Short_t factversion=-1, void *ptr=0x0)
to change an item
to set informations about the ADF configuration
Version GetVersion() const
void SetFactoryPtr(void *ptr)
change
void * GetFactoryPtr() const
const std::string & GetItemName() const
Bool_t operator==(const FactoryItem &) const
Compare two items.
Base class that described an item in a Factory.