All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
IPartitionControl.h
Go to the documentation of this file.
1 // $Id: IPartitionControl.h,v 1.1 2004/07/06 10:17:40 mato Exp $
2 #ifndef GAUDIKERNEL_IPARTITIONCONTROL_H
3 #define GAUDIKERNEL_IPARTITIONCONTROL_H
4 
5 // Framework include files
7 
8 // C++ include files
9 #include <string>
10 
67 class GAUDI_API IPartitionControl: virtual public IInterface {
68 public:
71 
73 
84  virtual StatusCode create(const std::string& name,
85  const std::string& type) = 0;
86 
88 
100  virtual StatusCode create(const std::string& name,
101  const std::string& type,
102  IInterface*& pPartition) = 0;
103 
105 
113  virtual StatusCode drop(const std::string& name) = 0;
114 
116 
126  virtual StatusCode drop(IInterface* pPartition) = 0;
127 
129 
139  virtual StatusCode activate(const std::string& name) = 0;
140 
142 
155  virtual StatusCode activate(IInterface* pPartition) = 0;
156 
158 
165  virtual StatusCode get(const std::string& name, IInterface*& pPartition) const = 0;
166 
168 
175  virtual StatusCode activePartition(std::string& name, IInterface*& pPartition) const = 0;
176 
177  // Return codes:
178  enum { PARTITION_NOT_PRESENT = 2,
179  PARTITION_EXISTS = 4,
180  NO_ACTIVE_PARTITION = 6
181  };
182 };
183 #endif // GAUDIKERNEL_IPARTITIONCONTROL_H
string type
Definition: gaudirun.py:126
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:30
Definition of the basic interface.
Definition: IInterface.h:160
#define DeclareInterfaceID(name, major, minor)
Macro to declare the interface ID when using the new mechanism of extending and implementing interfac...
Definition: IInterface.h:23
Create / access partitions.
#define GAUDI_API
Definition: Kernel.h:108