The Gaudi Framework  master (ff829712)
Loading...
Searching...
No Matches
IHiveWhiteBoard.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
15#include <string>
16
23class GAUDI_API IHiveWhiteBoard : public extend_interfaces<IInterface> {
24public:
27
34 virtual StatusCode selectStore( size_t partitionIndex ) = 0;
35
41 virtual StatusCode clearStore( size_t partitionIndex ) = 0;
42
48 virtual StatusCode setNumberOfStores( size_t slots ) = 0;
49
54 virtual size_t getNumberOfStores() const = 0;
55
62 virtual bool exists( const DataObjID& ) = 0;
63
69 virtual size_t allocateStore( int evtnumber ) = 0;
70
76 virtual StatusCode freeStore( size_t partitionIndex ) = 0;
77
83 virtual size_t getPartitionNumber( int eventnumber ) const = 0;
84
86 virtual size_t freeSlots() = 0;
87};
#define GAUDI_API
Definition Kernel.h:49
virtual StatusCode freeStore(size_t partitionIndex)=0
Free a store partition.
virtual StatusCode setNumberOfStores(size_t slots)=0
Set the number of 'slots'.
virtual bool exists(const DataObjID &)=0
Check if a data object exists in store.
virtual size_t allocateStore(int evtnumber)=0
Allocate a store partition for new event.
virtual size_t freeSlots()=0
Get free slots number.
virtual StatusCode clearStore(size_t partitionIndex)=0
Clear an given 'slot'.
virtual size_t getPartitionNumber(int eventnumber) const =0
Get the partition number corresponding to a given event.
virtual StatusCode selectStore(size_t partitionIndex)=0
Activate an given 'slot' for all subsequent calls within the same thread id.
virtual size_t getNumberOfStores() const =0
Get the number of 'slots'.
DeclareInterfaceID(IHiveWhiteBoard, 2, 0)
InterfaceID.
This class is used for returning status codes from appropriate routines.
Definition StatusCode.h:64
Base class to be used to extend an interface.