The Gaudi Framework  v32r2 (46d42edc)
IAIDATupleSvc.h
Go to the documentation of this file.
1 #ifndef GAUDIKERNEL_IAIDATUPLESVC_H
2 #define GAUDIKERNEL_IAIDATUPLESVC_H 1
3 
4 // Include files:
6 
7 // Forward declarations:
8 class DataObject;
9 
10 // Added to allow use of AIDA in applications
11 // without prefix AIDA:: (as before):
12 namespace AIDA {
13  class ITuple;
14  class IAnnotation;
15 } // namespace AIDA
16 
17 using AIDA::IAnnotation;
18 using AIDA::ITuple;
19 
28 class GAUDI_API IAIDATupleSvc : virtual public IDataProviderSvc {
29 
30 public:
33 
34  // ===================================
35  // Book a tuple in the transient store
36  // ===================================
37  virtual AIDA::ITuple* book( const std::string& fullPath, const std::string& title, const std::string& columns ) = 0;
38 
39  // =======================================
40  // Register a tuple in the transient store
41  // =======================================
43 
44  virtual StatusCode registerObject( const std::string& dirPath, const std::string& objPath, AIDA::ITuple* tObj ) = 0;
45 
46  virtual StatusCode registerObject( DataObject* pParent, const std::string& objPath, AIDA::ITuple* tObj ) = 0;
47 
48  // =========================================
49  // Unregister a tuple in the transient store
50  // =========================================
52 
53  virtual StatusCode unregisterObject( AIDA::ITuple* tObj ) = 0;
54 
55  virtual StatusCode unregisterObject( AIDA::ITuple* tObj, const std::string& objectPath ) = 0;
56 
57  // ====================================
58  // Retrieve a tuple from the data store
59  // ====================================
61 
62  virtual StatusCode retrieveObject( const std::string& fullPath, AIDA::ITuple*& tObj ) = 0;
63 
64  virtual StatusCode retrieveObject( const std::string& parentPath, const std::string& objPath,
65  AIDA::ITuple*& tObj ) = 0;
66 
67  virtual StatusCode retrieveObject( DataObject* parentObj, const std::string& objPath, AIDA::ITuple*& tObj ) = 0;
68 
69  // ==============================
70  // Find a tuple in the data store
71  // ==============================
73 
74  virtual StatusCode findObject( const std::string& fullPath, AIDA::ITuple*& tObj ) = 0;
75 
76  virtual StatusCode findObject( IRegistry* pDirectory, const std::string& path, AIDA::ITuple*& tObj ) = 0;
77 
78  virtual StatusCode findObject( const std::string& parentPath, const std::string& objPath, AIDA::ITuple*& tObj ) = 0;
79 
80  virtual StatusCode findObject( DataObject* parentObj, const std::string& objPath, AIDA::ITuple*& tObj ) = 0;
81 
83  virtual void setCriteria( AIDA::ITuple*& tObj, const std::string& criteria ) = 0;
84 
85  // ==============
86  // Helper methods
87  // ==============
88 
89  // Create all directories in a given full path
90  virtual DataObject* createPath( const std::string& newPath ) = 0;
91 
92  // Create a sub-directory in a directory.
93  virtual DataObject* createDirectory( const std::string& parentDir, const std::string& subDir ) = 0;
94 
95  virtual StatusCode myTest() = 0;
96 };
97 
98 #endif // GAUDIKERNEL_IAIDATUPLESVC_H
GAUDI_API AIDA::IHistogram1D * book(IHistogramSvc *svc, const std::string &path, const Gaudi::Histo1DDef &hist)
helper function to book 1D-histogram
Definition: HistoDef.cpp:87
Data provider interface definition.
GaudiKernel.
Definition: Fill.h:10
virtual StatusCode findObject(IRegistry *pDirectory, std::string_view path, DataObject *&pObject)=0
Find object identified by its directory entry.
STL class.
virtual StatusCode unregisterObject(std::string_view fullPath)=0
Unregister object from the data store.
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:50
The IRegistry represents the entry door to the environment any data object residing in a transient da...
Definition: IRegistry.h:22
DeclareInterfaceID(IDataProviderSvc, 4, 0)
InterfaceID.
virtual StatusCode retrieveObject(IRegistry *pDirectory, std::string_view path, DataObject *&pObject)=0
Retrieve object identified by its directory entry.
StatusCode registerObject(std::string_view fullPath, DataObject *pObject)
Register object with the data store.
Definition of the IAIDATupleSvc interface class.
Definition: IAIDATupleSvc.h:28
#define GAUDI_API
Definition: Kernel.h:71
A DataObject is the base class of any identifiable object on any data store.
Definition: DataObject.h:30