RAIDA  1.9.0
IFunctionCatalogROOT.h
1 // -*- C++ -*-
2 #ifndef AIDA_IFUNCTIONCATALOGROOT_H
3 #define AIDA_IFUNCTIONCATALOGROOT_H 1
4 
5 #include <string>
6 #include <vector>
7 #include <AIDA/IFunctionCatalog.h>
8 
9 namespace AIDA {
10 
11 class IFunction;
12 
22 
23 public:
25  virtual ~IFunctionCatalogROOT() { /* nop */; }
26 
27  IFunctionCatalogROOT() { /* nop */; }
28 
38  virtual bool add(std::string nameId, IFunction * f) ;
39 
40  virtual bool add(std::string nameId, const std::string & codelet) ;
41 
42  /*
43  * Get a list of all available functions.
44  */
45  virtual std::vector<std::string> list() ;
46 
47  /*
48  * Remove function from the catalog.
49  */
50  virtual void remove(const std::string & nameId) ;
51 
52  /*
53  * Write contents of the catalog to disk.
54  * We have to agree on the format here, or define and XML
55  * entry for IFunctionCatalog!
56  */
57  virtual bool storeAll(const std::string & nameOnDisk) ;
58 
59  /*
60  * Load contents of the catalog from disk
61  * We have to agree on the format here, or define and XML
62  * entry for IFunctionCatalog!
63  */
64  virtual bool loadAll(const std::string & nameOnDisk) ;
65 }; // class
66 } // namespace AIDA
67 #endif /* ifndef AIDA_IFUNCTIONCATALOGROOT_H */
virtual ~IFunctionCatalogROOT()
Destructor.
Definition: IFunctionCatalogROOT.h:25
Definition: IFunctionCatalog.h:30
virtual bool add(std::string nameId, IFunction *f)
Remember persistently definition (code!) of a function under a name.
Definition: IFunctionCatalogROOT.cc:10
Definition: IFunctionCatalogROOT.h:21