GammaWare  Head Version for release 0.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ADF::MainKeyFactory Class Reference

Base class for a MainFactory i.e. a factory composed of factories. More...

#include <KeyFactory.h>

Inheritance diagram for ADF::MainKeyFactory:

Public Member Functions

virtual void AddConf (DotConf *)
 add a conf object to this. The added objects are not owned by this so not deleted. More...
 
KeyClone (const Key *key)
 Clone an existing key. Use the key signature to get the factory used to create the passed key, create a new one and copy the content. More...
 
KeyFactoryClone (std::string, const std::string &opt="full")
 Clone a factory. More...
 
Int_t Clone (std::list< KeyFactory * > &, const std::string &opt="full")
 Clone all factories. return the number of successfully cloned factories and the list of pointer added to the argument. More...
 
virtual Bool_t Configure (ConfigurationFrame *, const char *option="in", Bool_t allow_init=false)
 configuration from/to a configuration frame : extact string from the frame and call DoConfigure More...
 
virtual Bool_t Configure (const char *name, const char *option="in", Bool_t allow_init=true)
 configuration from/to a file : open the file and call DoConfigure More...
 
virtual Bool_t DoConfigure (std::istream &, Bool_t allow_init)
 configure this from an input stream More...
 
virtual Bool_t DoConfigure (std::ostream &)
 write the configuration in an output stream More...
 
const Char_t * GetComment () const
 
virtual BaseBuffer::EEndian GetEndian () const
 Endian type for the keys delivered by this factory. More...
 
KeyFactoryGetFactory (std::string which_factory) const
 Ask for a particular factory from is name. More...
 
const Char_t * GetLastModif () const
 
Short_t GetMaxVersion () const
 this class could managed moddification of the versionned part up to MaxVersion : should be set in the constructor part of the inheriting class More...
 
virtual const std::string & GetName () const
 name of the factory More...
 
virtual const Char_t * GetRID () const
 to get the record id More...
 
virtual const Char_t * GetSRID () const
 to get the record id More...
 
virtual const Char_t * GetStreamOption () const
 get/set option More...
 
virtual Short_t GetVersion () const
 to get the curent version of this object More...
 
Bool_t IsKnown (std::string which_factory) const
 check a factory has been registered More...
 
Bool_t IsWithRecord () const
 to know if this is intialisased with a stream composed of records. More...
 
const std::vector< KeyFactory * > & ListOfFactories () const
 direct access to the list of factories More...
 
void ls (std::string o) const
 list all factories More...
 
virtual KeyNew (const FactoryItem &)
 build a key using item. More...
 
Bool_t Register (KeyFactory *)
 Add one factory to this collection of keyfactories: name has to be unique so return false if a factory with the same name exists. More...
 
Bool_t Register (std::string factory_name)
 Add one factory pre-defined factory by its name. More...
 
virtual void RemoveConf (DotConf *aconf=0x0)
 
virtual void Reset (const Char_t *opt="")
 Reset : all values are set to default. More...
 
void SetComment (const Char_t *comment)
 
virtual void SetEndian (BaseBuffer::EEndian e)
 Set Endian type for the keys delivered by this factory. More...
 
virtual void SetRID (const Char_t *rid, const Char_t *srid="")
 to set the record id More...
 
virtual void SetStreamOption (const Char_t *opt)
 
void SetWithRecord (Bool_t is_record=true)
 to change the behavior More...
 
virtual ~MainKeyFactory ()
 

Static Public Member Functions

static MainKeyFactorytheMainFactory ()
 the main (global) keyfactory More...
 

Protected Member Functions

Bool_t AddRecord (std::ostream &, char t= 'b')
 Add a begin or end of record, return true if done. More...
 
std::string BeginOfRecord ()
 string that gives a start of record for this object More...
 
virtual KeyDoNew (const FactoryItem &)
 Do really the job of allocating the key. More...
 
std::string EndOfRecord ()
 string that gives an end of record for this object More...
 
Bool_t IsBeginOfRecord (const std::string &, Bool_t allow_init)
 Return true if this string is a begin of record and call Reset if Init is found. More...
 
Bool_t IsEndOfRecord (const std::string &)
 Return true if this string is an end of record. More...
 
virtual Bool_t ProcessLine (const std::string &)
 a helper template to do clones : it requires a default constructor. then it uses the Configure facilities to configure the new object More...
 
void SetLastModif ()
 set in last modif string the current date. More...
 
void SetMaxVersion (Short_t v)
 
void SetName (std::string name)
 
void SetVersion (Short_t v)
 

Protected Attributes

LogMessage fLog
 the log messenger ... to know the object hae been properly intitialised/modified More...
 

Detailed Description

Base class for a MainFactory i.e. a factory composed of factories.

Definition at line 145 of file KeyFactory.h.


The documentation for this class was generated from the following files: