The Gaudi Framework  master (181af51f)
Loading...
Searching...
No Matches
IPartitionControl.h
Go to the documentation of this file.
1/***********************************************************************************\
2* (c) Copyright 1998-2025 CERN for the benefit of the LHCb and ATLAS collaborations *
3* *
4* This software is distributed under the terms of the Apache version 2 licence, *
5* copied verbatim in the file "LICENSE". *
6* *
7* In applying this licence, CERN does not waive the privileges and immunities *
8* granted to it by virtue of its status as an Intergovernmental Organization *
9* or submit itself to any jurisdiction. *
10\***********************************************************************************/
11#pragma once
12
14#include <string>
15
72class GAUDI_API IPartitionControl : virtual public IInterface {
73public:
76
78
89 virtual StatusCode create( const std::string& name, const std::string& type ) = 0;
90
92
104 virtual StatusCode create( const std::string& name, const std::string& type, IInterface*& pPartition ) = 0;
105
107
115 virtual StatusCode drop( const std::string& name ) = 0;
116
118
128 virtual StatusCode drop( IInterface* pPartition ) = 0;
129
131
141 virtual StatusCode activate( const std::string& name ) = 0;
142
144
157 virtual StatusCode activate( IInterface* pPartition ) = 0;
158
160
167 virtual StatusCode get( const std::string& name, IInterface*& pPartition ) const = 0;
168
170
177 virtual StatusCode activePartition( std::string& name, IInterface*& pPartition ) const = 0;
178
179 // Return codes:
181};
182
#define GAUDI_API
Definition Kernel.h:49
#define STATUSCODE_ENUM_DECL(ENUM)
Declare an enum to be used as StatusCode value.
Definition StatusCode.h:286
Definition of the basic interface.
Definition IInterface.h:225
Create / access partitions.
virtual StatusCode get(const std::string &name, IInterface *&pPartition) const =0
Access a partition object. The name identifies the partition uniquely.
DeclareInterfaceID(IPartitionControl, 1, 0)
InterfaceID.
virtual StatusCode create(const std::string &name, const std::string &type, IInterface *&pPartition)=0
Create a partition object. The name identifies the partition uniquely.
virtual StatusCode drop(IInterface *pPartition)=0
Drop a partition object. The name identifies the partition uniquely.
virtual StatusCode activePartition(std::string &name, IInterface *&pPartition) const =0
Access the active partition object.
virtual StatusCode drop(const std::string &name)=0
Drop a partition object. The name identifies the partition uniquely.
virtual StatusCode activate(IInterface *pPartition)=0
Activate a partition object.
virtual StatusCode activate(const std::string &name)=0
Activate a partition object. The name identifies the partition uniquely.
virtual StatusCode create(const std::string &name, const std::string &type)=0
Create a partition object. The name identifies the partition uniquely.
This class is used for returning status codes from appropriate routines.
Definition StatusCode.h:64
unsigned long code_t
type of StatusCode value
Definition StatusCode.h:66