| The Gaudi Framework v32r1 (f65d50dc)

IPartitionControl.h
Go to the documentation of this file.
1 #ifndef GAUDIKERNEL_IPARTITIONCONTROL_H
2 #define GAUDIKERNEL_IPARTITIONCONTROL_H
3
4 // Framework include files
5 #include "GaudiKernel/IInterface.h"
6
7 // C++ include files
8 #include <string>
9
66 class GAUDI_API IPartitionControl : virtual public IInterface {
67 public:
69 DeclareInterfaceID( IPartitionControl, 1, 0 );
70
72
83 virtual StatusCode create( const std::string& name, const std::string& type ) = 0;
84
86
98 virtual StatusCode create( const std::string& name, const std::string& type, IInterface*& pPartition ) = 0;
99
101
109 virtual StatusCode drop( const std::string& name ) = 0;
110
112
122 virtual StatusCode drop( IInterface* pPartition ) = 0;
123
125
135 virtual StatusCode activate( const std::string& name ) = 0;
136
138
151 virtual StatusCode activate( IInterface* pPartition ) = 0;
152
154
161 virtual StatusCode get( const std::string& name, IInterface*& pPartition ) const = 0;
162
164
171 virtual StatusCode activePartition( std::string& name, IInterface*& pPartition ) const = 0;
172
173 // Return codes:
174 enum class Status : StatusCode::code_t { PARTITION_NOT_PRESENT = 2, PARTITION_EXISTS = 4, NO_ACTIVE_PARTITION = 6 };
175 };
176
177 STATUSCODE_ENUM_DECL( IPartitionControl::Status )
178
179 #endif // GAUDIKERNEL_IPARTITIONCONTROL_H
gaudiComponentHelp.name
name
Definition: gaudiComponentHelp.py:41
IPartitionControl::Status
Status
Definition: IPartitionControl.h:174
std::string
STL class.
STATUSCODE_ENUM_DECL
#define STATUSCODE_ENUM_DECL(ENUM)
Declare an enum to be used as StatusCode value.
Definition: StatusCode.h:239
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:50
IInterface
Definition of the basic interface.
Definition: IInterface.h:244
gaudirun.type
type
Definition: gaudirun.py:142
IInterface::Status
Status
Return status.
Definition: IInterface.h:297
DeclareInterfaceID
#define DeclareInterfaceID(iface, major, minor)
Macro to declare the interface ID when using the new mechanism of extending and implementing interfac...
Definition: IInterface.h:13
Gaudi::Functional::details::get
auto get(const Handle &handle, const Algo &, const EventContext &) -> decltype(details::deref(handle.get()))
Definition: FunctionalDetails.h:332
IPartitionControl
Create / access partitions.
Definition: IPartitionControl.h:66
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:71
IInterface.h
StatusCode::code_t
unsigned long code_t
type of StatusCode value
Definition: StatusCode.h:52