| The Gaudi Framework v27r1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | Protected Types | Protected Attributes | List of all members
HiveWhiteBoard Class Reference

Data service base class. More...

Inheritance diagram for HiveWhiteBoard:
[legend]
Collaboration diagram for HiveWhiteBoard:
[legend]

## Public Member Functions
CLID | rootCLID () const override
| IDataManagerSvc: Accessor for root event CLID. More...
const std::string & | rootName () const override
| Name for root Event. More...
StatusCode | registerAddress (const std::string &path, IOpaqueAddress *pAddr) override
| IDataManagerSvc: Register object address with the data store. More...
StatusCode | registerAddress (DataObject *parent, const std::string &path, IOpaqueAddress *pAddr) override
| IDataManagerSvc: Register object address with the data store. More...
StatusCode | registerAddress (IRegistry *parent, const std::string &path, IOpaqueAddress *pAdd) override
| IDataManagerSvc: Register object address with the data store. More...
StatusCode | unregisterAddress (const std::string &path) override
| IDataManagerSvc: Unregister object address from the data store. More...
StatusCode | unregisterAddress (DataObject *pParent, const std::string &path) override
| IDataManagerSvc: Unregister object address from the data store. More...
StatusCode | unregisterAddress (IRegistry *pParent, const std::string &path) override
| IDataManagerSvc: Unregister object address from the data store. More...
StatusCode | objectLeaves (const DataObject *pObject, std::vector< IRegistry * > &leaves) override
| Explore the object store: retrieve all leaves attached to the object. More...
StatusCode | objectLeaves (const IRegistry *pObject, std::vector< IRegistry * > &leaves) override
| Explore the object store: retrieve all leaves attached to the object. More...
StatusCode | objectParent (const DataObject *pObject, IRegistry *&refpParent) override
| IDataManagerSvc: Explore the object store: retrieve the object's parent. More...
StatusCode | objectParent (const IRegistry *pObject, IRegistry *&refpParent) override
| IDataManagerSvc: Explore the object store: retrieve the object's parent. More...
StatusCode | clearSubTree (const std::string &path) override
| Remove all data objects below the sub tree identified. More...
StatusCode | clearSubTree (DataObject *pObject) override
| Remove all data objects below the sub tree identified. More...
StatusCode | clearStore () override
| IDataManagerSvc: Remove all data objects in the data store. More...
StatusCode | traverseSubTree (const std::string &path, IDataStoreAgent *pAgent) override
| Analyze by traversing all data objects below the sub tree. More...
StatusCode | traverseSubTree (DataObject *pObject, IDataStoreAgent *pAgent) override
| IDataManagerSvc: Analyze by traversing all data objects below the sub tree. More...
StatusCode | traverseTree (IDataStoreAgent *pAgent) override
| IDataManagerSvc: Analyze by traversing all data objects in the data store. More...
StatusCode | setRoot (std::string path, DataObject *pObj) override
| Initialize data store for new event by giving new event path and root object. More...
StatusCode | setRoot (std::string path, IOpaqueAddress *pAddr) override
| Initialize data store for new event by giving new event path and address of root object. More...
StatusCode | setDataLoader (IConversionSvc *pDataLoader, IDataProviderSvc *dpsvc __attribute__((unused))=nullptr) override
| IDataManagerSvc: Pass a default data loader to the service. More...
StatusCode | addPreLoadItem (const DataStoreItem &item) override
| Add an item to the preload list. More...
StatusCode | addPreLoadItem (const std::string &item) override
| Add an item to the preload list. More...
StatusCode | removePreLoadItem (const DataStoreItem &item) override
| Remove an item from the preload list. More...
StatusCode | removePreLoadItem (const std::string &item) override
| Add an item to the preload list. More...
StatusCode | resetPreLoad () override
| Clear the preload list. More...
StatusCode | preLoad () override
| load all preload items of the list More...
StatusCode | registerObject (const std::string &path, DataObject *pObj) override
| Register object with the data store. (The most common one is the only monitored one for the time being....) More...
StatusCode | registerObject (const std::string &parent, const std::string &obj, DataObject *pObj) override
| Register object with the data store. More...
StatusCode | registerObject (const std::string &parent, int item, DataObject *pObj) override
| Register object with the data store. More...
StatusCode | registerObject (DataObject *parent, const std::string &obj, DataObject *pObj) override
| Register object with the data store. More...
StatusCode | registerObject (DataObject *parent, int obj, DataObject *pObj) override
| Register object with the data store. More...
StatusCode | unregisterObject (const std::string &path) override
| Unregister object from the data store. More...
StatusCode | unregisterObject (const std::string &parent, const std::string &obj) override
| Unregister object from the data store. More...
StatusCode | unregisterObject (const std::string &parent, int obj) override
| Unregister object from the data store. More...
StatusCode | unregisterObject (DataObject *pObj) override
| Unregister object from the data store. More...
StatusCode | unregisterObject (DataObject *pObj, const std::string &path) override
| Unregister object from the data store. More...
StatusCode | unregisterObject (DataObject *pObj, int item) override
| Unregister object from the data store. More...
StatusCode | retrieveObject (IRegistry *parent, const std::string &path, DataObject *&pObj) override
| Retrieve object from data store. More...
StatusCode | retrieveObject (const std::string &path, DataObject *&pObj) override
| Retrieve object identified by its full path from the data store. More...
StatusCode | retrieveObject (const std::string &parent, const std::string &path, DataObject *&pObj) override
| Retrieve object from data store. More...
StatusCode | retrieveObject (const std::string &parent, int item, DataObject *&pObj) override
| Retrieve object from data store. More...
StatusCode | retrieveObject (DataObject *parent, const std::string &path, DataObject *&pObj) override
| Retrieve object from data store. More...
StatusCode | retrieveObject (DataObject *parent, int item, DataObject *&pObj) override
| Retrieve object from data store. More...
StatusCode | findObject (const std::string &path, DataObject *&pObj) override
| Find object identified by its full path in the data store. More...
StatusCode | findObject (IRegistry *parent, const std::string &path, DataObject *&pObj) override
| Find object identified by its full path in the data store. More...
StatusCode | findObject (const std::string &parent, const std::string &path, DataObject *&pObj) override
| Find object in the data store. More...
StatusCode | findObject (const std::string &parent, int item, DataObject *&pObject) override
| Find object in the data store. More...
StatusCode | findObject (DataObject *parent, const std::string &path, DataObject *&pObject) override
| Find object in the data store. More...
StatusCode | findObject (DataObject *parent, int item, DataObject *&pObject) override
| Find object in the data store. More...
StatusCode | linkObject (IRegistry *from, const std::string &objPath, DataObject *to) override
| Add a link to another object. More...
StatusCode | linkObject (const std::string &from, const std::string &objPath, DataObject *to) override
| Add a link to another object. More...
StatusCode | linkObject (DataObject *from, const std::string &objPath, DataObject *to) override
| Add a link to another object. More...
StatusCode | linkObject (const std::string &fullPath, DataObject *to) override
| Add a link to another object. More...
StatusCode | unlinkObject (IRegistry *from, const std::string &objPath) override
| Remove a link to another object. More...
StatusCode | unlinkObject (const std::string &from, const std::string &objPath) override
| Remove a link to another object. More...
StatusCode | unlinkObject (DataObject *from, const std::string &objPath) override
| Remove a link to another object. More...
StatusCode | unlinkObject (const std::string &path) override
| Remove a link to another object. More...
StatusCode | updateObject (IRegistry *pDirectory) override
| Update object identified by its directory entry. More...
StatusCode | updateObject (const std::string &path) override
| Update object. More...
StatusCode | updateObject (DataObject *pObj) override
| Update object. More...
StatusCode | updateObject (const std::string &parent, const std::string &updatePath) override
| Update object. More...
StatusCode | updateObject (DataObject *parent, const std::string &updatePath) override
| Update object. More...
StatusCode | clearStore (size_t partition) override
| Remove all data objects in one 'slot' of the data store. More...
StatusCode | selectStore (size_t partition) override
| Activate a partition object. The identifies the partition uniquely. More...
StatusCode | setNumberOfStores (size_t slots) override
| Set the number of event slots (copies of DataSvc objects). More...
size_t | getNumberOfStores () override
| Get the number of event slots (copies of DataSvc objects). More...
StatusCode | getNewDataObjects (DataObjIDColl &products)
| Get the list of new DataObjects in the current store. More...
bool | newDataObjectsPresent () override
| Check if new DataObjects are in the current store. More...
size_t | allocateStore (int evtnumber) override
| Allocate a store partition for a given event number. More...
StatusCode | freeStore (size_t partition) override
| Free a store partition. More...
size_t | getPartitionNumber (int eventnumber) const override
| Get the partition number corresponding to a given event. More...
StatusCode | attachServices ()
StatusCode | detachServices ()
StatusCode | initialize () override
| Service initialisation. More...
StatusCode | reinitialize () override
| Service initialisation. More...
StatusCode | finalize () override
| Service initialisation. More...
| HiveWhiteBoard (const std::string &name, ISvcLocator *svc)
| Standard Constructor. More...
virtual | ~HiveWhiteBoard ()
| Standard Destructor. More...
Public Member Functions inherited from extends< Service, IDataProviderSvc, IDataManagerSvc, IHiveWhiteBoard >
void * | i_cast (const InterfaceID &tid) const override
| Implementation of IInterface::i_cast. More...
StatusCode | queryInterface (const InterfaceID &ti, void **pp) override
| Implementation of IInterface::queryInterface. More...
std::vector< std::string > | getInterfaceNames () const override
| Implementation of IInterface::getInterfaceNames. More...
| ~extends () override=default
| Virtual destructor. More...
Public Member Functions inherited from Service
const std::string & | name () const override
| Retrieve name of the service. More...
StatusCode | configure () override
StatusCode | initialize () override
StatusCode | start () override
StatusCode | stop () override
StatusCode | finalize () override
StatusCode | terminate () override
Gaudi::StateMachine::State | FSMState () const override
Gaudi::StateMachine::State | targetFSMState () const override
StatusCode | reinitialize () override
StatusCode | restart () override
StatusCode | sysInitialize () override
| Initialize Service. More...
StatusCode | sysStart () override
| Initialize Service. More...
StatusCode | sysStop () override
| Initialize Service. More...
StatusCode | sysFinalize () override
| Finalize Service. More...
StatusCode | sysReinitialize () override
| Re-initialize the Service. More...
StatusCode | sysRestart () override
| Re-initialize the Service. More...
StatusCode | setProperty (const Property &p) override
StatusCode | setProperty (const std::string &s) override
StatusCode | setProperty (const std::string &n, const std::string &v) override
StatusCode | getProperty (Property *p) const override
const Property & | getProperty (const std::string &name) const override
StatusCode | getProperty (const std::string &n, std::string &v) const override
const std::vector< Property * > & | getProperties () const override
bool | hasProperty (const std::string &name) const override
template<class TYPE >
StatusCode | setProperty (const std::string &name, const TYPE &value)
| set the property form the value More...
| Service (std::string name, ISvcLocator *svcloc)
| Standard Constructor. More...
SmartIF< ISvcLocator > & | serviceLocator () const override
| Retrieve pointer to service locator. More...
StatusCode | setProperties ()
| Method for setting declared properties to the values specified for the job. More...
template<class T >
StatusCode | service (const std::string &name, const T *&psvc, bool createIf=true) const
| Access a service by name, creating it if it doesn't already exist. More...
template<class T >
StatusCode | service (const std::string &name, T *&psvc, bool createIf=true) const
template<typename IFace = IService>
SmartIF< IFace > | service (const std::string &name, bool createIf=true) const
template<class T >
StatusCode | service (const std::string &svcType, const std::string &svcName, T *&psvc) const
| Access a service by name and type, creating it if it doesn't already exist. More...
template<class T >
Property * | declareProperty (const std::string &name, T &property, const std::string &doc="none") const
| Declare the named property. More...
Property * | declareRemoteProperty (const std::string &name, IProperty *rsvc, const std::string &rname="") const
| Declare remote named properties. More...
template<class T >
StatusCode | declarePrivateTool (ToolHandle< T > &handle, std::string toolTypeAndName="", bool createIf=true)
| Declare used Private tool. More...
template<class T >
StatusCode | declarePublicTool (ToolHandle< T > &handle, std::string toolTypeAndName="", bool createIf=true)
| Declare used Public tool. More...
SmartIF< IAuditorSvc > & | auditorSvc () const
| The standard auditor service.May not be invoked before sysInitialize() has been invoked. More...
Public Member Functions inherited from CommonMessagingBase
virtual | ~CommonMessagingBase ()=default
| Virtual destructor. More...
SmartIF< IMessageSvc > & | msgSvc () const
| The standard message service. More...
MsgStream & | msgStream () const
| Return an uninitialized MsgStream. More...
MsgStream & | msgStream (const MSG::Level level) const
| Predefined configurable message stream for the efficient printouts. More...
MsgStream & | always () const
| shortcut for the method msgStream(MSG::ALWAYS) More...
MsgStream & | fatal () const
| shortcut for the method msgStream(MSG::FATAL) More...
MsgStream & | err () const
| shortcut for the method msgStream(MSG::ERROR) More...
MsgStream & | error () const
| shortcut for the method msgStream(MSG::ERROR) More...
MsgStream & | warning () const
| shortcut for the method msgStream(MSG::WARNING) More...
MsgStream & | info () const
| shortcut for the method msgStream(MSG::INFO) More...
MsgStream & | debug () const
| shortcut for the method msgStream(MSG::DEBUG) More...
MsgStream & | verbose () const
| shortcut for the method msgStream(MSG::VERBOSE) More...
MsgStream & | msg () const
| shortcut for the method msgStream(MSG::INFO) More...
MSG::Level | msgLevel () const
| get the output level from the embedded MsgStream More...
MSG::Level | outputLevel () const __attribute__((deprecated))
| Backward compatibility function for getting the output level. More...
bool | msgLevel (MSG::Level lvl) const
| get the output level from the embedded MsgStream More...
Public Member Functions inherited from extend_interfaces< Interfaces...>
| ~extend_interfaces () override=default
| Virtual destructor. More...

## Protected Types
typedef std::vector< Partition > | Partitions

## Protected Attributes
CLID | m_rootCLID
| Integer Property corresponding to CLID of root entry. More...
std::string | m_rootName
| Name of root event. More...
std::string | m_loader
| Data loader name. More...
IConversionSvc * | m_dataLoader
| Pointer to data loader service. More...
IAddressCreator * | m_addrCreator
| Reference to address creator. More...
Partitions | m_partitions
| Datastore partitions. More...
int | m_slots
| Datastore slots. More...
bool | m_forceLeaves
| Allow forced creation of default leaves on registerObject. More...
bool | m_enableFaultHdlr
| Flag to enable interrupts on data creation requests. More...
Protected Attributes inherited from Service
IntegerProperty | m_outputLevel = MSG::NIL
| Service output level. More...
Gaudi::StateMachine::State | m_state = Gaudi::StateMachine::OFFLINE
| Service state. More...
Gaudi::StateMachine::State | m_targetState = Gaudi::StateMachine::OFFLINE
| Service state. More...

## Additional Inherited Members
Public Types inherited from extends< Service, IDataProviderSvc, IDataManagerSvc, IHiveWhiteBoard >
using | base_class = extends
| Typedef to this class. More...
using | extend_interfaces_base = extend_interfaces< Interfaces...>
| Typedef to the base of this class. More...
Public Types inherited from Service
typedef Gaudi::PluginService::Factory< IService *, const std::string &, ISvcLocator * > | Factory
Public Types inherited from CommonMessaging< implements< IService, IProperty, IStateful > >
using | base_class = CommonMessaging
Public Types inherited from extend_interfaces< Interfaces...>
using | ext_iids = typename Gaudi::interface_list_cat< typename Interfaces::ext_iids...>::type
| take union of the ext_iids of all Interfaces... More...
Protected Member Functions inherited from Service
| ~Service () override
| Standard Destructor. More...
int | outputLevel () const
| get the `Service's` output level More...
Protected Member Functions inherited from CommonMessaging< implements< IService, IProperty, IStateful > >
void | updateMsgStreamOutputLevel (int level)
| Update the output level of the cached MsgStream. More...

## Detailed Description

Data service base class.

A data service manages the transient data stores and implements the IDataProviderSvc, the IDataManagerSvc and the IPartitionControl interfaces.

Author
  Markus Frank
  Sebastien Ponce
  Pere Mato

Version
  1.0

Definition at line 87 of file HiveWhiteBoard.cpp.

## Member Typedef Documentation

typedef std::vector<Partition> HiveWhiteBoard::Partitions
| protected

Definition at line 93 of file HiveWhiteBoard.cpp.

## Constructor & Destructor Documentation

HiveWhiteBoard::HiveWhiteBoard | ( | const std::string & | name,
|  | ISvcLocator * | svc
| ) |  |
| inline

Standard Constructor.

Definition at line 583 of file HiveWhiteBoard.cpp.

584 : base_class(name,svc), m_rootCLID(110), m_rootName("/Event"),
585 m_dataLoader(0), m_addrCreator(0)
586 {
587 m_dataLoader = 0;
588 declareProperty("RootCLID", m_rootCLID);
589 declareProperty("RootName", m_rootName);
590 declareProperty("DataLoader", m_loader="EventPersistencySvc");
591 declareProperty("EventSlots", m_slots = 1);
592 declareProperty("ForceLeaves", m_forceLeaves = 1);
593 declareProperty("EnableFaultHandler", m_enableFaultHdlr = 0);
594 }
extends< Service, IDataProviderSvc, IDataManagerSvc, IHiveWhiteBoard >::base_class
extends base_class
Typedef to this class.
Definition: extends.h:14
HiveWhiteBoard::m_enableFaultHdlr
bool m_enableFaultHdlr
Flag to enable interrupts on data creation requests.
Definition: HiveWhiteBoard.cpp:112
HiveWhiteBoard::m_rootName
std::string m_rootName
Name of root event.
Definition: HiveWhiteBoard.cpp:98
HiveWhiteBoard::m_loader
std::string m_loader
Data loader name.
Definition: HiveWhiteBoard.cpp:100
HiveWhiteBoard::m_forceLeaves
bool m_forceLeaves
Allow forced creation of default leaves on registerObject.
Definition: HiveWhiteBoard.cpp:110
HiveWhiteBoard::m_rootCLID
CLID m_rootCLID
Integer Property corresponding to CLID of root entry.
Definition: HiveWhiteBoard.cpp:96
HiveWhiteBoard::m_addrCreator
IAddressCreator * m_addrCreator
Reference to address creator.
Definition: HiveWhiteBoard.cpp:104
HiveWhiteBoard::m_slots
int m_slots
Datastore slots.
Definition: HiveWhiteBoard.cpp:108
Service::declareProperty
Property * declareProperty(const std::string &name, T &property, const std::string &doc="none") const
Declare the named property.
Definition: Service.h:215
HiveWhiteBoard::m_dataLoader
IConversionSvc * m_dataLoader
Pointer to data loader service.
Definition: HiveWhiteBoard.cpp:102

virtual HiveWhiteBoard::~HiveWhiteBoard | ( |  | ) |
| inline virtual

Standard Destructor.

Definition at line 597 of file HiveWhiteBoard.cpp.

597 {
598 setDataLoader(0).ignore();
599 resetPreLoad().ignore();
600 clearStore().ignore();
601
602 for(Partitions::iterator i = m_partitions.begin(); i != m_partitions.end(); ++i) {
603 (*i).dataManager->release();
604 (*i).dataProvider->release();
605 }
606 m_partitions.clear();
607 }
HiveWhiteBoard::setDataLoader
StatusCode setDataLoader(IConversionSvc *pDataLoader, IDataProviderSvc *dpsvc __attribute__((unused))=nullptr) override
IDataManagerSvc: Pass a default data loader to the service.
Definition: HiveWhiteBoard.cpp:212
HiveWhiteBoard::resetPreLoad
StatusCode resetPreLoad() override
Clear the preload list.
Definition: HiveWhiteBoard.cpp:246
std::vector::end
T end(T...args)
HiveWhiteBoard::clearStore
StatusCode clearStore() override
IDataManagerSvc: Remove all data objects in the data store.
Definition: HiveWhiteBoard.cpp:179
std::vector::clear
T clear(T...args)
HiveWhiteBoard::m_partitions
Partitions m_partitions
Datastore partitions.
Definition: HiveWhiteBoard.cpp:106
std::vector::begin
T begin(T...args)
StatusCode::ignore
void ignore() const
Definition: StatusCode.h:108
ana.i
list i
Definition: ana.py:128

## Member Function Documentation

StatusCode HiveWhiteBoard::addPreLoadItem | ( | const DataStoreItem & | item | ) |
| inline override

Add an item to the preload list.

Definition at line 226 of file HiveWhiteBoard.cpp.

226 {
227 for(auto& p: m_partitions) p.dataProvider->addPreLoadItem(item);
228 return StatusCode::SUCCESS;
229 }
StatusCode::SUCCESS
Definition: StatusCode.h:30
HiveWhiteBoard::m_partitions
Partitions m_partitions
Datastore partitions.
Definition: HiveWhiteBoard.cpp:106

StatusCode HiveWhiteBoard::addPreLoadItem | ( | const std::string & | item | ) |
| inline override

Add an item to the preload list.

Definition at line 231 of file HiveWhiteBoard.cpp.

231 {
232 for(auto& p: m_partitions) p.dataProvider->addPreLoadItem(item);
233 return StatusCode::SUCCESS;
234 }
StatusCode::SUCCESS
Definition: StatusCode.h:30
HiveWhiteBoard::m_partitions
Partitions m_partitions
Datastore partitions.
Definition: HiveWhiteBoard.cpp:106

size_t HiveWhiteBoard::allocateStore | ( | int | evtnumber | ) |
| inline override

Allocate a store partition for a given event number.

Definition at line 454 of file HiveWhiteBoard.cpp.

454 {
455 //size_t free = std::string::npos;
456 size_t index = 0;
457 for (auto& p : m_partitions ) {
458 if( p.eventNumber == evtnumber) {
459 error() << "Attempt to allocate a store partition for an event that is still active" << endmsg;
460 return std::string::npos;
461 } else if (p.eventNumber == -1) {
462 p.eventNumber = evtnumber;
463 //info() << "Got allocated slot..." << index << endmsg;
464 return index;
465 }
466 index++;
467 }
468 return std::string::npos;
469 }
CommonMessagingBase::error
MsgStream & error() const
shortcut for the method msgStream(MSG::ERROR)
Definition: CommonMessaging.h:118
HiveWhiteBoard::m_partitions
Partitions m_partitions
Datastore partitions.
Definition: HiveWhiteBoard.cpp:106
endmsg
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:244

StatusCode HiveWhiteBoard::attachServices | ( |  | ) |
| inline

Definition at line 489 of file HiveWhiteBoard.cpp.

489 {
490 StatusCode sc = service(m_loader, m_addrCreator, true);
491 if (!sc.isSuccess()) {
492 error() << "Failed to retrieve data loader " << "\"" << m_loader << "\"" << endmsg;
493 return sc;
494 }
495 IConversionSvc* dataLoader = 0;
496 sc = service(m_loader, dataLoader, true);
497 if (!sc.isSuccess()) {
498 error() << MSG::ERROR << "Failed to retrieve data loader " << "\"" << m_loader << "\"" << endmsg;
499 return sc;
500 }
501 sc = setDataLoader(dataLoader);
502 dataLoader->release();
503 if (!sc.isSuccess()) {
504 error() << MSG::ERROR << "Failed to set data loader " << "\"" << m_loader << "\"" << endmsg;
505 return sc;
506 }
507 return sc;
508 }
HiveWhiteBoard::setDataLoader
StatusCode setDataLoader(IConversionSvc *pDataLoader, IDataProviderSvc *dpsvc __attribute__((unused))=nullptr) override
IDataManagerSvc: Pass a default data loader to the service.
Definition: HiveWhiteBoard.cpp:212
IConversionSvc
Definition: IConversionSvc.h:37
StatusCode::isSuccess
bool isSuccess() const
Test for a status code of SUCCESS.
Definition: StatusCode.h:76
merge_files.sc
int sc
Definition: merge_files.py:167
CommonMessagingBase::error
MsgStream & error() const
shortcut for the method msgStream(MSG::ERROR)
Definition: CommonMessaging.h:118
HiveWhiteBoard::m_loader
std::string m_loader
Data loader name.
Definition: HiveWhiteBoard.cpp:100
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
IInterface::release
virtual unsigned long release()=0
Release Interface instance.
HiveWhiteBoard::m_addrCreator
IAddressCreator * m_addrCreator
Reference to address creator.
Definition: HiveWhiteBoard.cpp:104
MSG::ERROR
Definition: IMessageSvc.h:21
Service::service
StatusCode service(const std::string &name, const T *&psvc, bool createIf=true) const
Access a service by name, creating it if it doesn't already exist.
Definition: Service.h:144
endmsg
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:244

StatusCode HiveWhiteBoard::clearStore | ( |  | ) |
| inline override

IDataManagerSvc: Remove all data objects in the data store.

Definition at line 179 of file HiveWhiteBoard.cpp.

179 {
180 for(auto& p: m_partitions) p.dataManager->clearStore().ignore();
181 return StatusCode::SUCCESS;
182 }
StatusCode::SUCCESS
Definition: StatusCode.h:30
HiveWhiteBoard::m_partitions
Partitions m_partitions
Datastore partitions.
Definition: HiveWhiteBoard.cpp:106

StatusCode HiveWhiteBoard::clearStore | ( | size_t | partition | ) |
| inline override

Remove all data objects in one 'slot' of the data store.

Definition at line 413 of file HiveWhiteBoard.cpp.

413 {
414 return m_partitions[partition].dataManager->clearStore();
415 }
std::partition
T partition(T...args)
HiveWhiteBoard::m_partitions
Partitions m_partitions
Datastore partitions.
Definition: HiveWhiteBoard.cpp:106

StatusCode HiveWhiteBoard::clearSubTree | ( | const std::string & | path | ) |
| inline override

Remove all data objects below the sub tree identified.

Definition at line 171 of file HiveWhiteBoard.cpp.

171 {
172 _CALL(dataManager, clearSubTree, (path));
173 }
_CALL
#define _CALL(P, F, ARGS)
Definition: HiveWhiteBoard.cpp:125
HiveWhiteBoard::clearSubTree
StatusCode clearSubTree(const std::string &path) override
Remove all data objects below the sub tree identified.
Definition: HiveWhiteBoard.cpp:171

StatusCode HiveWhiteBoard::clearSubTree | ( | DataObject * | pObject | ) |
| inline override

Remove all data objects below the sub tree identified.

Definition at line 175 of file HiveWhiteBoard.cpp.

175 {
176 _CALL(dataManager, clearSubTree, (pObject));
177 }
_CALL
#define _CALL(P, F, ARGS)
Definition: HiveWhiteBoard.cpp:125
HiveWhiteBoard::clearSubTree
StatusCode clearSubTree(const std::string &path) override
Remove all data objects below the sub tree identified.
Definition: HiveWhiteBoard.cpp:171

StatusCode HiveWhiteBoard::detachServices | ( |  | ) |
| inline

Definition at line 510 of file HiveWhiteBoard.cpp.

510 {
511 if ( m_addrCreator ) m_addrCreator->release();
512 if ( m_dataLoader ) m_dataLoader->release();
513 m_addrCreator = 0;
514 m_dataLoader = 0;
515 return StatusCode::SUCCESS;
516 }
StatusCode::SUCCESS
Definition: StatusCode.h:30
IInterface::release
virtual unsigned long release()=0
Release Interface instance.
HiveWhiteBoard::m_addrCreator
IAddressCreator * m_addrCreator
Reference to address creator.
Definition: HiveWhiteBoard.cpp:104
HiveWhiteBoard::m_dataLoader
IConversionSvc * m_dataLoader
Pointer to data loader service.
Definition: HiveWhiteBoard.cpp:102

StatusCode HiveWhiteBoard::finalize | ( |  | ) |
| inline override

Service initialisation.

Definition at line 573 of file HiveWhiteBoard.cpp.

573 {
574 setDataLoader(0).ignore();
575 clearStore().ignore();
576 return Service::finalize();
577 }
HiveWhiteBoard::setDataLoader
StatusCode setDataLoader(IConversionSvc *pDataLoader, IDataProviderSvc *dpsvc __attribute__((unused))=nullptr) override
IDataManagerSvc: Pass a default data loader to the service.
Definition: HiveWhiteBoard.cpp:212
Service::finalize
StatusCode finalize() override
Definition: Service.cpp:193
HiveWhiteBoard::clearStore
StatusCode clearStore() override
IDataManagerSvc: Remove all data objects in the data store.
Definition: HiveWhiteBoard.cpp:179
StatusCode::ignore
void ignore() const
Definition: StatusCode.h:108

StatusCode HiveWhiteBoard::findObject | ( | const std::string & | path,
|  | DataObject *& | pObj
| ) |  |
| inline override

Find object identified by its full path in the data store.

Definition at line 332 of file HiveWhiteBoard.cpp.

332 {
333 _CALL(dataProvider, retrieveObject, (path, pObj));
334 }
_CALL
#define _CALL(P, F, ARGS)
Definition: HiveWhiteBoard.cpp:125
HiveWhiteBoard::retrieveObject
StatusCode retrieveObject(IRegistry *parent, const std::string &path, DataObject *&pObj) override
Retrieve object from data store.
Definition: HiveWhiteBoard.cpp:308

StatusCode HiveWhiteBoard::findObject | ( | IRegistry * | parent,
|  | const std::string & | path,
|  | DataObject *& | pObj
| ) |  |
| inline override

Find object identified by its full path in the data store.

Definition at line 336 of file HiveWhiteBoard.cpp.

336 {
337 _CALL(dataProvider, retrieveObject, (parent, path, pObj));
338 }
_CALL
#define _CALL(P, F, ARGS)
Definition: HiveWhiteBoard.cpp:125
HiveWhiteBoard::retrieveObject
StatusCode retrieveObject(IRegistry *parent, const std::string &path, DataObject *&pObj) override
Retrieve object from data store.
Definition: HiveWhiteBoard.cpp:308

StatusCode HiveWhiteBoard::findObject | ( | const std::string & | parent,
|  | const std::string & | path,
|  | DataObject *& | pObj
| ) |  |
| inline override

Find object in the data store.

Definition at line 340 of file HiveWhiteBoard.cpp.

340 {
341 _CALL(dataProvider, retrieveObject, (parent, path, pObj));
342 }
_CALL
#define _CALL(P, F, ARGS)
Definition: HiveWhiteBoard.cpp:125
HiveWhiteBoard::retrieveObject
StatusCode retrieveObject(IRegistry *parent, const std::string &path, DataObject *&pObj) override
Retrieve object from data store.
Definition: HiveWhiteBoard.cpp:308

StatusCode HiveWhiteBoard::findObject | ( | const std::string & | parent,
|  | int | item,
|  | DataObject *& | pObject
| ) |  |
| inline override

Find object in the data store.

Definition at line 344 of file HiveWhiteBoard.cpp.

344 {
345 _CALL(dataProvider, findObject, (parent, item, pObject));
346 }
_CALL
#define _CALL(P, F, ARGS)
Definition: HiveWhiteBoard.cpp:125
HiveWhiteBoard::findObject
StatusCode findObject(const std::string &path, DataObject *&pObj) override
Find object identified by its full path in the data store.
Definition: HiveWhiteBoard.cpp:332
ana.item
tuple item
print s1,s2
Definition: ana.py:146

StatusCode HiveWhiteBoard::findObject | ( | DataObject * | parent,
|  | const std::string & | path,
|  | DataObject *& | pObject
| ) |  |
| inline override

Find object in the data store.

Definition at line 348 of file HiveWhiteBoard.cpp.

348 {
349 _CALL(dataProvider, findObject, (parent, path, pObject));
350 }
_CALL
#define _CALL(P, F, ARGS)
Definition: HiveWhiteBoard.cpp:125
HiveWhiteBoard::findObject
StatusCode findObject(const std::string &path, DataObject *&pObj) override
Find object identified by its full path in the data store.
Definition: HiveWhiteBoard.cpp:332

StatusCode HiveWhiteBoard::findObject | ( | DataObject * | parent,
|  | int | item,
|  | DataObject *& | pObject
| ) |  |
| inline override

Find object in the data store.

Definition at line 352 of file HiveWhiteBoard.cpp.

352 {
353 _CALL(dataProvider, findObject, (parent, item, pObject));
354 }
_CALL
#define _CALL(P, F, ARGS)
Definition: HiveWhiteBoard.cpp:125
HiveWhiteBoard::findObject
StatusCode findObject(const std::string &path, DataObject *&pObj) override
Find object identified by its full path in the data store.
Definition: HiveWhiteBoard.cpp:332
ana.item
tuple item
print s1,s2
Definition: ana.py:146

StatusCode HiveWhiteBoard::freeStore | ( | size_t | partition | ) |
| inline override

Free a store partition.

Definition at line 472 of file HiveWhiteBoard.cpp.

472 {
473 m_partitions[partition].eventNumber = -1;
474 //info() << "Freed slot..." << partition << endmsg;
475 return StatusCode::SUCCESS;
476 }
std::partition
T partition(T...args)
StatusCode::SUCCESS
Definition: StatusCode.h:30
HiveWhiteBoard::m_partitions
Partitions m_partitions
Datastore partitions.
Definition: HiveWhiteBoard.cpp:106

StatusCode HiveWhiteBoard::getNewDataObjects | ( | DataObjIDColl & | products | ) |
| inline

Get the list of new DataObjects in the current store.

Definition at line 440 of file HiveWhiteBoard.cpp.

440 {
441 wbMutex::scoped_lock lock; lock.acquire(s_current->storeMutex);
442 products = s_current->newDataObjects;
443 s_current->newDataObjects.clear();
444 return StatusCode::SUCCESS;
445 }
StatusCode::SUCCESS
Definition: StatusCode.h:30
locker.lock
def lock(file)
Definition: locker.py:16
s_current
thread_local Partition * s_current(0)

size_t HiveWhiteBoard::getNumberOfStores | ( |  | ) |
| inline override

Get the number of event slots (copies of DataSvc objects).

Definition at line 435 of file HiveWhiteBoard.cpp.

435 {
436 return m_slots;
437 }
HiveWhiteBoard::m_slots
int m_slots
Datastore slots.
Definition: HiveWhiteBoard.cpp:108

size_t HiveWhiteBoard::getPartitionNumber | ( | int | eventnumber | ) | const
| inline override

Get the partition number corresponding to a given event.

Definition at line 480 of file HiveWhiteBoard.cpp.

480 {
481 size_t index{};
482 for (auto& p : m_partitions) {
483 if (p.eventNumber == eventnumber) return index;
484 ++index;
485 }
486 return std::string::npos;
487 }
HiveWhiteBoard::m_partitions
Partitions m_partitions
Datastore partitions.
Definition: HiveWhiteBoard.cpp:106

StatusCode HiveWhiteBoard::initialize | ( |  | ) |
| inline override

Service initialisation.

Definition at line 523 of file HiveWhiteBoard.cpp.

523 {
524 StatusCode sc = Service::initialize();
525 if ( !sc.isSuccess() ) {
526 error() << "Unable to initialize base class" << endmsg;
527 return sc;
528 }
529
530 if (1 > m_slots ){
531 error() << "Invalid number of slots (" << m_slots << ")" << endmsg;
532 return StatusCode::FAILURE;
533 }
534
535 for( int i = 0; i< m_slots; i++) {
536 std::ostringstream oss;
537 oss << name() << "_" << i;
538 DataSvc* svc = new DataSvc(oss.str(), serviceLocator());
539 // Percolate properties
540 svc->setProperty("RootCLID", std::to_string(m_rootCLID));
541 svc->setProperty("RootName", m_rootName);
542 svc->setProperty("ForceLeaves", std::to_string(m_forceLeaves));
543 svc->setProperty("EnableFaultHandler", std::to_string(m_enableFaultHdlr));
544
545 sc = svc->initialize();
546 if (!sc.isSuccess()) {
547 error() << "Failed to instantiate DataSvc as store partition" << endmsg;
548 return sc;
549 }
550 m_partitions.push_back(Partition(svc, svc));
551 }
552 selectStore(0).ignore();
553 return attachServices();
554 }
Service::initialize
StatusCode initialize() override
Definition: Service.cpp:68
Service::serviceLocator
SmartIF< ISvcLocator > & serviceLocator() const override
Retrieve pointer to service locator.
Definition: Service.cpp:324
StatusCode::isSuccess
bool isSuccess() const
Test for a status code of SUCCESS.
Definition: StatusCode.h:76
std::to_string
T to_string(T...args)
Service::setProperty
StatusCode setProperty(const Property &p) override
Definition: Service.cpp:330
merge_files.sc
int sc
Definition: merge_files.py:167
HiveWhiteBoard::selectStore
StatusCode selectStore(size_t partition) override
Activate a partition object. The identifies the partition uniquely.
Definition: HiveWhiteBoard.cpp:418
HiveWhiteBoard::m_enableFaultHdlr
bool m_enableFaultHdlr
Flag to enable interrupts on data creation requests.
Definition: HiveWhiteBoard.cpp:112
Service::name
const std::string & name() const override
Retrieve name of the service.
Definition: Service.cpp:319
std::vector::push_back
T push_back(T...args)
CommonMessagingBase::error
MsgStream & error() const
shortcut for the method msgStream(MSG::ERROR)
Definition: CommonMessaging.h:118
HiveWhiteBoard::m_rootName
std::string m_rootName
Name of root event.
Definition: HiveWhiteBoard.cpp:98
StatusCode::FAILURE
Definition: StatusCode.h:29
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
std::ostringstream
STL class.
HiveWhiteBoard::m_forceLeaves
bool m_forceLeaves
Allow forced creation of default leaves on registerObject.
Definition: HiveWhiteBoard.cpp:110
std::ostringstream::str
T str(T...args)
HiveWhiteBoard::m_rootCLID
CLID m_rootCLID
Integer Property corresponding to CLID of root entry.
Definition: HiveWhiteBoard.cpp:96
HiveWhiteBoard::attachServices
StatusCode attachServices()
Definition: HiveWhiteBoard.cpp:489
HiveWhiteBoard::m_partitions
Partitions m_partitions
Datastore partitions.
Definition: HiveWhiteBoard.cpp:106
DataSvc::initialize
StatusCode initialize() override
Service initialization.
Definition: DataSvc.cpp:1153
DataSvc
Data service base class.
Definition: DataSvc.h:43
HiveWhiteBoard::m_slots
int m_slots
Datastore slots.
Definition: HiveWhiteBoard.cpp:108
StatusCode::ignore
void ignore() const
Definition: StatusCode.h:108
ana.i
list i
Definition: ana.py:128
endmsg
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:244

StatusCode HiveWhiteBoard::linkObject | ( | IRegistry * | from,
|  | const std::string & | objPath,
|  | DataObject * | to
| ) |  |
| inline override

Add a link to another object.

Definition at line 356 of file HiveWhiteBoard.cpp.

356 {
357 _CALL(dataProvider, linkObject, (from, objPath, to));
358 }
_CALL
#define _CALL(P, F, ARGS)
Definition: HiveWhiteBoard.cpp:125
HiveWhiteBoard::linkObject
StatusCode linkObject(IRegistry *from, const std::string &objPath, DataObject *to) override
Add a link to another object.
Definition: HiveWhiteBoard.cpp:356

StatusCode HiveWhiteBoard::linkObject | ( | const std::string & | from,
|  | const std::string & | objPath,
|  | DataObject * | to
| ) |  |
| inline override

Add a link to another object.

Definition at line 360 of file HiveWhiteBoard.cpp.

360 {
361 _CALL(dataProvider, linkObject, (from, objPath, to));
362 }
_CALL
#define _CALL(P, F, ARGS)
Definition: HiveWhiteBoard.cpp:125
HiveWhiteBoard::linkObject
StatusCode linkObject(IRegistry *from, const std::string &objPath, DataObject *to) override
Add a link to another object.
Definition: HiveWhiteBoard.cpp:356

StatusCode HiveWhiteBoard::linkObject | ( | DataObject * | from,
|  | const std::string & | objPath,
|  | DataObject * | to
| ) |  |
| inline override

Add a link to another object.

Definition at line 364 of file HiveWhiteBoard.cpp.

364 {
365 _CALL(dataProvider, linkObject, (from, objPath, to));
366 }
_CALL
#define _CALL(P, F, ARGS)
Definition: HiveWhiteBoard.cpp:125
HiveWhiteBoard::linkObject
StatusCode linkObject(IRegistry *from, const std::string &objPath, DataObject *to) override
Add a link to another object.
Definition: HiveWhiteBoard.cpp:356

StatusCode HiveWhiteBoard::linkObject | ( | const std::string & | fullPath,
|  | DataObject * | to
| ) |  |
| inline override

Add a link to another object.

Definition at line 368 of file HiveWhiteBoard.cpp.

368 {
369 _CALL(dataProvider, linkObject, (fullPath, to));
370 }
_CALL
#define _CALL(P, F, ARGS)
Definition: HiveWhiteBoard.cpp:125
HiveWhiteBoard::linkObject
StatusCode linkObject(IRegistry *from, const std::string &objPath, DataObject *to) override
Add a link to another object.
Definition: HiveWhiteBoard.cpp:356

bool HiveWhiteBoard::newDataObjectsPresent | ( |  | ) |
| inline override

Check if new DataObjects are in the current store.

Definition at line 448 of file HiveWhiteBoard.cpp.

448 {
449 wbMutex::scoped_lock lock; lock.acquire(s_current->storeMutex);
450 return s_current->newDataObjects.size()!=0;
451 }
locker.lock
def lock(file)
Definition: locker.py:16
s_current
thread_local Partition * s_current(0)

StatusCode HiveWhiteBoard::objectLeaves | ( | const DataObject * | pObject,
|  | std::vector< IRegistry * > & | leaves
| ) |  |
| inline override

Explore the object store: retrieve all leaves attached to the object.

Definition at line 155 of file HiveWhiteBoard.cpp.

155 {
156 _CALL(dataManager, objectLeaves, (pObject, leaves));
157 }
_CALL
#define _CALL(P, F, ARGS)
Definition: HiveWhiteBoard.cpp:125
HiveWhiteBoard::objectLeaves
StatusCode objectLeaves(const DataObject *pObject, std::vector< IRegistry * > &leaves) override
Explore the object store: retrieve all leaves attached to the object.
Definition: HiveWhiteBoard.cpp:155

StatusCode HiveWhiteBoard::objectLeaves | ( | const IRegistry * | pObject,
|  | std::vector< IRegistry * > & | leaves
| ) |  |
| inline override

Explore the object store: retrieve all leaves attached to the object.

Definition at line 159 of file HiveWhiteBoard.cpp.

159 {
160 _CALL(dataManager, objectLeaves, (pObject, leaves));
161 }
_CALL
#define _CALL(P, F, ARGS)
Definition: HiveWhiteBoard.cpp:125
HiveWhiteBoard::objectLeaves
StatusCode objectLeaves(const DataObject *pObject, std::vector< IRegistry * > &leaves) override
Explore the object store: retrieve all leaves attached to the object.
Definition: HiveWhiteBoard.cpp:155

StatusCode HiveWhiteBoard::objectParent | ( | const DataObject * | pObject,
|  | IRegistry *& | refpParent
| ) |  |
| inline override

IDataManagerSvc: Explore the object store: retrieve the object's parent.

Definition at line 163 of file HiveWhiteBoard.cpp.

163 {
164 _CALL(dataManager, objectParent, (pObject, refpParent));
165 }
_CALL
#define _CALL(P, F, ARGS)
Definition: HiveWhiteBoard.cpp:125
HiveWhiteBoard::objectParent
StatusCode objectParent(const DataObject *pObject, IRegistry *&refpParent) override
IDataManagerSvc: Explore the object store: retrieve the object's parent.
Definition: HiveWhiteBoard.cpp:163

StatusCode HiveWhiteBoard::objectParent | ( | const IRegistry * | pObject,
|  | IRegistry *& | refpParent
| ) |  |
| inline override

IDataManagerSvc: Explore the object store: retrieve the object's parent.

Definition at line 167 of file HiveWhiteBoard.cpp.

167 {
168 _CALL(dataManager, objectParent, (pObject, refpParent));
169 }
_CALL
#define _CALL(P, F, ARGS)
Definition: HiveWhiteBoard.cpp:125
HiveWhiteBoard::objectParent
StatusCode objectParent(const DataObject *pObject, IRegistry *&refpParent) override
IDataManagerSvc: Explore the object store: retrieve the object's parent.
Definition: HiveWhiteBoard.cpp:163

StatusCode HiveWhiteBoard::preLoad | ( |  | ) |
| inline override

load all preload items of the list

Definition at line 251 of file HiveWhiteBoard.cpp.

251 {
252 wbMutex::scoped_lock lock; lock.acquire(s_current->storeMutex);
253 StatusCode sc = s_current->dataProvider->preLoad();
254 DataAgent da(s_current->newDataObjects);
255 s_current->dataManager->traverseTree(&da);
256 return sc;
257 }
merge_files.sc
int sc
Definition: merge_files.py:167
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
locker.lock
def lock(file)
Definition: locker.py:16
s_current
thread_local Partition * s_current(0)

StatusCode HiveWhiteBoard::registerAddress | ( | const std::string & | path,
|  | IOpaqueAddress * | pAddr
| ) |  |
| inline override

IDataManagerSvc: Register object address with the data store.

Definition at line 131 of file HiveWhiteBoard.cpp.

131 {
132 _CALL(dataManager, registerAddress, (path, pAddr));
133 }
_CALL
#define _CALL(P, F, ARGS)
Definition: HiveWhiteBoard.cpp:125
HiveWhiteBoard::registerAddress
StatusCode registerAddress(const std::string &path, IOpaqueAddress *pAddr) override
IDataManagerSvc: Register object address with the data store.
Definition: HiveWhiteBoard.cpp:131

StatusCode HiveWhiteBoard::registerAddress | ( | DataObject * | parent,
|  | const std::string & | path,
|  | IOpaqueAddress * | pAddr
| ) |  |
| inline override

IDataManagerSvc: Register object address with the data store.

Definition at line 135 of file HiveWhiteBoard.cpp.

135 {
136 _CALL(dataManager, registerAddress, (parent, path, pAddr));
137 }
_CALL
#define _CALL(P, F, ARGS)
Definition: HiveWhiteBoard.cpp:125
HiveWhiteBoard::registerAddress
StatusCode registerAddress(const std::string &path, IOpaqueAddress *pAddr) override
IDataManagerSvc: Register object address with the data store.
Definition: HiveWhiteBoard.cpp:131

StatusCode HiveWhiteBoard::registerAddress | ( | IRegistry * | parent,
|  | const std::string & | path,
|  | IOpaqueAddress * | pAdd
| ) |  |
| inline override

IDataManagerSvc: Register object address with the data store.

Definition at line 139 of file HiveWhiteBoard.cpp.

139 {
140 _CALL(dataManager, registerAddress, (parent, path, pAdd));
141 }
_CALL
#define _CALL(P, F, ARGS)
Definition: HiveWhiteBoard.cpp:125
HiveWhiteBoard::registerAddress
StatusCode registerAddress(const std::string &path, IOpaqueAddress *pAddr) override
IDataManagerSvc: Register object address with the data store.
Definition: HiveWhiteBoard.cpp:131

StatusCode HiveWhiteBoard::registerObject | ( | const std::string & | path,
|  | DataObject * | pObj
| ) |  |
| inline override

Register object with the data store. (The most common one is the only monitored one for the time being....)

Definition at line 259 of file HiveWhiteBoard.cpp.

259 {
260 wbMutex::scoped_lock lock; lock.acquire(s_current->storeMutex);
261 StatusCode sc = s_current->dataProvider->registerObject(path, pObj);
262 if( sc.isSuccess()) {
263 s_current->newDataObjects.insert(DataObjID(path));
264 }
265 return sc;
266 }
DataObjID
Definition: DataObjID.h:38
StatusCode::isSuccess
bool isSuccess() const
Test for a status code of SUCCESS.
Definition: StatusCode.h:76
merge_files.sc
int sc
Definition: merge_files.py:167
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
locker.lock
def lock(file)
Definition: locker.py:16
s_current
thread_local Partition * s_current(0)

StatusCode HiveWhiteBoard::registerObject | ( | const std::string & | parent,
|  | const std::string & | obj,
|  | DataObject * | pObj
| ) |  |
| inline override

Register object with the data store.

Definition at line 268 of file HiveWhiteBoard.cpp.

268 {
269 _CALL(dataProvider, registerObject, (parent, obj, pObj));
270 }
_CALL
#define _CALL(P, F, ARGS)
Definition: HiveWhiteBoard.cpp:125
HiveWhiteBoard::registerObject
StatusCode registerObject(const std::string &path, DataObject *pObj) override
Register object with the data store. (The most common one is the only monitored one for the time bein...
Definition: HiveWhiteBoard.cpp:259

StatusCode HiveWhiteBoard::registerObject | ( | const std::string & | parent,
|  | int | item,
|  | DataObject * | pObj
| ) |  |
| inline override

Register object with the data store.

Definition at line 272 of file HiveWhiteBoard.cpp.

272 {
273 _CALL(dataProvider, registerObject, (parent, item, pObj));
274 }
_CALL
#define _CALL(P, F, ARGS)
Definition: HiveWhiteBoard.cpp:125
HiveWhiteBoard::registerObject
StatusCode registerObject(const std::string &path, DataObject *pObj) override
Register object with the data store. (The most common one is the only monitored one for the time bein...
Definition: HiveWhiteBoard.cpp:259
ana.item
tuple item
print s1,s2
Definition: ana.py:146

StatusCode HiveWhiteBoard::registerObject | ( | DataObject * | parent,
|  | const std::string & | obj,
|  | DataObject * | pObj
| ) |  |
| inline override

Register object with the data store.

Definition at line 276 of file HiveWhiteBoard.cpp.

276 {
277 _CALL(dataProvider, registerObject, (parent, obj, pObj));
278 }
_CALL
#define _CALL(P, F, ARGS)
Definition: HiveWhiteBoard.cpp:125
HiveWhiteBoard::registerObject
StatusCode registerObject(const std::string &path, DataObject *pObj) override
Register object with the data store. (The most common one is the only monitored one for the time bein...
Definition: HiveWhiteBoard.cpp:259

StatusCode HiveWhiteBoard::registerObject | ( | DataObject * | parent,
|  | int | obj,
|  | DataObject * | pObj
| ) |  |
| inline override

Register object with the data store.

Definition at line 280 of file HiveWhiteBoard.cpp.

280 {
281 _CALL(dataProvider, registerObject, (parent, obj, pObj));
282 }
_CALL
#define _CALL(P, F, ARGS)
Definition: HiveWhiteBoard.cpp:125
HiveWhiteBoard::registerObject
StatusCode registerObject(const std::string &path, DataObject *pObj) override
Register object with the data store. (The most common one is the only monitored one for the time bein...
Definition: HiveWhiteBoard.cpp:259

StatusCode HiveWhiteBoard::reinitialize | ( |  | ) |
| inline override

Service initialisation.

Definition at line 557 of file HiveWhiteBoard.cpp.

557 {
558 StatusCode sc = Service::reinitialize();
559 if (!sc.isSuccess()) {
560 error() << "Unable to reinitialize base class" << endmsg;
561 return sc;
562 }
563 detachServices();
564 sc = attachServices();
565 if ( !sc.isSuccess() ) {
566 error() << "Failed to attach necessary services." << endmsg;
567 return sc;
568 }
569 return StatusCode::SUCCESS;
570 }
StatusCode::isSuccess
bool isSuccess() const
Test for a status code of SUCCESS.
Definition: StatusCode.h:76
merge_files.sc
int sc
Definition: merge_files.py:167
CommonMessagingBase::error
MsgStream & error() const
shortcut for the method msgStream(MSG::ERROR)
Definition: CommonMessaging.h:118
HiveWhiteBoard::detachServices
StatusCode detachServices()
Definition: HiveWhiteBoard.cpp:510
StatusCode::SUCCESS
Definition: StatusCode.h:30
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
Service::reinitialize
StatusCode reinitialize() override
Definition: Service.cpp:282
HiveWhiteBoard::attachServices
StatusCode attachServices()
Definition: HiveWhiteBoard.cpp:489
endmsg
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:244

StatusCode HiveWhiteBoard::removePreLoadItem | ( | const DataStoreItem & | item | ) |
| inline override

Remove an item from the preload list.

Definition at line 236 of file HiveWhiteBoard.cpp.

236 {
237 for(auto& p: m_partitions) p.dataProvider->removePreLoadItem(item);
238 return StatusCode::SUCCESS;
239 }
StatusCode::SUCCESS
Definition: StatusCode.h:30
HiveWhiteBoard::m_partitions
Partitions m_partitions
Datastore partitions.
Definition: HiveWhiteBoard.cpp:106

StatusCode HiveWhiteBoard::removePreLoadItem | ( | const std::string & | item | ) |
| inline override

Add an item to the preload list.

Definition at line 241 of file HiveWhiteBoard.cpp.

241 {
242 for(auto& p: m_partitions) p.dataProvider->removePreLoadItem(item);
243 return StatusCode::SUCCESS;
244 }
StatusCode::SUCCESS
Definition: StatusCode.h:30
HiveWhiteBoard::m_partitions
Partitions m_partitions
Datastore partitions.
Definition: HiveWhiteBoard.cpp:106

StatusCode HiveWhiteBoard::resetPreLoad | ( |  | ) |
| inline override

Clear the preload list.

Definition at line 246 of file HiveWhiteBoard.cpp.

246 {
247 for(auto& p: m_partitions) p.dataProvider->resetPreLoad();
248 return StatusCode::SUCCESS;
249 }
StatusCode::SUCCESS
Definition: StatusCode.h:30
HiveWhiteBoard::m_partitions
Partitions m_partitions
Datastore partitions.
Definition: HiveWhiteBoard.cpp:106

StatusCode HiveWhiteBoard::retrieveObject | ( | IRegistry * | parent,
|  | const std::string & | path,
|  | DataObject *& | pObj
| ) |  |
| inline override

Retrieve object from data store.

Definition at line 308 of file HiveWhiteBoard.cpp.

308 {
309 _CALL(dataProvider, retrieveObject, (parent, path, pObj));
310 }
_CALL
#define _CALL(P, F, ARGS)
Definition: HiveWhiteBoard.cpp:125
HiveWhiteBoard::retrieveObject
StatusCode retrieveObject(IRegistry *parent, const std::string &path, DataObject *&pObj) override
Retrieve object from data store.
Definition: HiveWhiteBoard.cpp:308

StatusCode HiveWhiteBoard::retrieveObject | ( | const std::string & | path,
|  | DataObject *& | pObj
| ) |  |
| inline override

Retrieve object identified by its full path from the data store.

Definition at line 312 of file HiveWhiteBoard.cpp.

312 {
313 _CALL(dataProvider, retrieveObject, (path, pObj));
314 }
_CALL
#define _CALL(P, F, ARGS)
Definition: HiveWhiteBoard.cpp:125
HiveWhiteBoard::retrieveObject
StatusCode retrieveObject(IRegistry *parent, const std::string &path, DataObject *&pObj) override
Retrieve object from data store.
Definition: HiveWhiteBoard.cpp:308

StatusCode HiveWhiteBoard::retrieveObject | ( | const std::string & | parent,
|  | const std::string & | path,
|  | DataObject *& | pObj
| ) |  |
| inline override

Retrieve object from data store.

Definition at line 316 of file HiveWhiteBoard.cpp.

316 {
317 _CALL(dataProvider, retrieveObject, (parent, path, pObj));
318 }
_CALL
#define _CALL(P, F, ARGS)
Definition: HiveWhiteBoard.cpp:125
HiveWhiteBoard::retrieveObject
StatusCode retrieveObject(IRegistry *parent, const std::string &path, DataObject *&pObj) override
Retrieve object from data store.
Definition: HiveWhiteBoard.cpp:308

StatusCode HiveWhiteBoard::retrieveObject | ( | const std::string & | parent,
|  | int | item,
|  | DataObject *& | pObj
| ) |  |
| inline override

Retrieve object from data store.

Definition at line 320 of file HiveWhiteBoard.cpp.

320 {
321 _CALL(dataProvider, retrieveObject, (parent, item, pObj));
322 }
_CALL
#define _CALL(P, F, ARGS)
Definition: HiveWhiteBoard.cpp:125
ana.item
tuple item
print s1,s2
Definition: ana.py:146
HiveWhiteBoard::retrieveObject
StatusCode retrieveObject(IRegistry *parent, const std::string &path, DataObject *&pObj) override
Retrieve object from data store.
Definition: HiveWhiteBoard.cpp:308

StatusCode HiveWhiteBoard::retrieveObject | ( | DataObject * | parent,
|  | const std::string & | path,
|  | DataObject *& | pObj
| ) |  |
| inline override

Retrieve object from data store.

Definition at line 324 of file HiveWhiteBoard.cpp.

324 {
325 _CALL(dataProvider, retrieveObject, (parent, path, pObj));
326 }
_CALL
#define _CALL(P, F, ARGS)
Definition: HiveWhiteBoard.cpp:125
HiveWhiteBoard::retrieveObject
StatusCode retrieveObject(IRegistry *parent, const std::string &path, DataObject *&pObj) override
Retrieve object from data store.
Definition: HiveWhiteBoard.cpp:308

StatusCode HiveWhiteBoard::retrieveObject | ( | DataObject * | parent,
|  | int | item,
|  | DataObject *& | pObj
| ) |  |
| inline override

Retrieve object from data store.

Definition at line 328 of file HiveWhiteBoard.cpp.

328 {
329 _CALL(dataProvider, retrieveObject, (parent, item, pObj));
330 }
_CALL
#define _CALL(P, F, ARGS)
Definition: HiveWhiteBoard.cpp:125
ana.item
tuple item
print s1,s2
Definition: ana.py:146
HiveWhiteBoard::retrieveObject
StatusCode retrieveObject(IRegistry *parent, const std::string &path, DataObject *&pObj) override
Retrieve object from data store.
Definition: HiveWhiteBoard.cpp:308

CLID HiveWhiteBoard::rootCLID | ( |  | ) | const
| inline override

IDataManagerSvc: Accessor for root event CLID.

Definition at line 116 of file HiveWhiteBoard.cpp.

116 {
117 return (CLID)m_rootCLID;
118 }
HiveWhiteBoard::m_rootCLID
CLID m_rootCLID
Integer Property corresponding to CLID of root entry.
Definition: HiveWhiteBoard.cpp:96
CLID
unsigned int CLID
Class ID definition.
Definition: ClassID.h:8

const std::string& HiveWhiteBoard::rootName | ( |  | ) | const
| inline override

Name for root Event.

Definition at line 120 of file HiveWhiteBoard.cpp.

120 {
121 return m_rootName;
122 }
HiveWhiteBoard::m_rootName
std::string m_rootName
Name of root event.
Definition: HiveWhiteBoard.cpp:98

StatusCode HiveWhiteBoard::selectStore | ( | size_t | partition | ) |
| inline override

Activate a partition object. The identifies the partition uniquely.

Definition at line 418 of file HiveWhiteBoard.cpp.

418 {
419 s_current = &m_partitions[partition];
420 return StatusCode::SUCCESS;
421 }
std::partition
T partition(T...args)
StatusCode::SUCCESS
Definition: StatusCode.h:30
HiveWhiteBoard::m_partitions
Partitions m_partitions
Datastore partitions.
Definition: HiveWhiteBoard.cpp:106
s_current
thread_local Partition * s_current(0)

StatusCode HiveWhiteBoard::setDataLoader | ( | IConversionSvc * | pDataLoader,
|  | IDataProviderSvc *dpsvc | __attribute__(unused) = `nullptr`
| ) |  |
| inline override

IDataManagerSvc: Pass a default data loader to the service.

The optional data provider is not considered. On the other hand, the data provider is specified to be the whiteboard.

Definition at line 212 of file HiveWhiteBoard.cpp.

213 {
214 if ( 0 != pDataLoader ) pDataLoader->addRef();
215 if ( 0 != m_dataLoader ) m_dataLoader->release();
216 if ( 0 != pDataLoader ) {
217 pDataLoader->setDataProvider(this);
218 }
219 m_dataLoader = pDataLoader;
220 for(auto& p: m_partitions) {
221 p.dataManager->setDataLoader(m_dataLoader,this).ignore();
222 }
223 return SUCCESS;
224 }
IConverter::setDataProvider
virtual StatusCode setDataProvider(IDataProviderSvc *pService)=0
Set Data provider service.
GaudiPython.Bindings.SUCCESS
tuple SUCCESS
Definition: Bindings.py:51
HiveWhiteBoard::m_partitions
Partitions m_partitions
Datastore partitions.
Definition: HiveWhiteBoard.cpp:106
IInterface::release
virtual unsigned long release()=0
Release Interface instance.
IInterface::addRef
virtual unsigned long addRef()=0
Increment the reference count of Interface instance.
HiveWhiteBoard::m_dataLoader
IConversionSvc * m_dataLoader
Pointer to data loader service.
Definition: HiveWhiteBoard.cpp:102

StatusCode HiveWhiteBoard::setNumberOfStores | ( | size_t | slots | ) |
| inline override

Set the number of event slots (copies of DataSvc objects).

Definition at line 424 of file HiveWhiteBoard.cpp.

424 {
425 if((int)slots != m_slots and
426 FSMState() == Gaudi::StateMachine::INITIALIZED) {
427 warning() << "Too late to change the number of slots!" << endmsg;
428 return StatusCode::FAILURE;
429 }
430 m_slots = slots;
431 return StatusCode::SUCCESS;
432 }
Gaudi::StateMachine::INITIALIZED
Definition: StateMachine.h:15
Service::FSMState
Gaudi::StateMachine::State FSMState() const override
Definition: Service.h:57
CommonMessagingBase::warning
MsgStream & warning() const
shortcut for the method msgStream(MSG::WARNING)
Definition: CommonMessaging.h:121
StatusCode::FAILURE
Definition: StatusCode.h:29
StatusCode::SUCCESS
Definition: StatusCode.h:30
HiveWhiteBoard::m_slots
int m_slots
Datastore slots.
Definition: HiveWhiteBoard.cpp:108
endmsg
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:244

StatusCode HiveWhiteBoard::setRoot | ( | std::string | path,
|  | DataObject * | pObj
| ) |  |
| inline override

Initialize data store for new event by giving new event path and root object.

Takes care to clear the store before reinitializing it

Definition at line 198 of file HiveWhiteBoard.cpp.

198 {
199 _CALL(dataManager, setRoot, (path, pObj));
200 }
_CALL
#define _CALL(P, F, ARGS)
Definition: HiveWhiteBoard.cpp:125
HiveWhiteBoard::setRoot
StatusCode setRoot(std::string path, DataObject *pObj) override
Initialize data store for new event by giving new event path and root object.
Definition: HiveWhiteBoard.cpp:198

StatusCode HiveWhiteBoard::setRoot | ( | std::string | path,
|  | IOpaqueAddress * | pAddr
| ) |  |
| inline override

Initialize data store for new event by giving new event path and address of root object.

Takes care to clear the store before reinitializing it

Definition at line 204 of file HiveWhiteBoard.cpp.

204 {
205 _CALL(dataManager, setRoot, (path, pAddr));
206 }
_CALL
#define _CALL(P, F, ARGS)
Definition: HiveWhiteBoard.cpp:125
HiveWhiteBoard::setRoot
StatusCode setRoot(std::string path, DataObject *pObj) override
Initialize data store for new event by giving new event path and root object.
Definition: HiveWhiteBoard.cpp:198

StatusCode HiveWhiteBoard::traverseSubTree | ( | const std::string & | path,
|  | IDataStoreAgent * | pAgent
| ) |  |
| inline override

Analyze by traversing all data objects below the sub tree.

Definition at line 185 of file HiveWhiteBoard.cpp.

185 {
186 _CALL(dataManager, traverseSubTree, (path, pAgent));
187 }
_CALL
#define _CALL(P, F, ARGS)
Definition: HiveWhiteBoard.cpp:125
HiveWhiteBoard::traverseSubTree
StatusCode traverseSubTree(const std::string &path, IDataStoreAgent *pAgent) override
Analyze by traversing all data objects below the sub tree.
Definition: HiveWhiteBoard.cpp:185

StatusCode HiveWhiteBoard::traverseSubTree | ( | DataObject * | pObject,
|  | IDataStoreAgent * | pAgent
| ) |  |
| inline override

IDataManagerSvc: Analyze by traversing all data objects below the sub tree.

Definition at line 189 of file HiveWhiteBoard.cpp.

189 {
190 _CALL(dataManager, traverseSubTree, (pObject, pAgent));
191 }
_CALL
#define _CALL(P, F, ARGS)
Definition: HiveWhiteBoard.cpp:125
HiveWhiteBoard::traverseSubTree
StatusCode traverseSubTree(const std::string &path, IDataStoreAgent *pAgent) override
Analyze by traversing all data objects below the sub tree.
Definition: HiveWhiteBoard.cpp:185

StatusCode HiveWhiteBoard::traverseTree | ( | IDataStoreAgent * | pAgent | ) |
| inline override

IDataManagerSvc: Analyze by traversing all data objects in the data store.

Definition at line 193 of file HiveWhiteBoard.cpp.

193 {
194 _CALL(dataManager, traverseTree, (pAgent));
195 }
_CALL
#define _CALL(P, F, ARGS)
Definition: HiveWhiteBoard.cpp:125
HiveWhiteBoard::traverseTree
StatusCode traverseTree(IDataStoreAgent *pAgent) override
IDataManagerSvc: Analyze by traversing all data objects in the data store.
Definition: HiveWhiteBoard.cpp:193

StatusCode HiveWhiteBoard::unlinkObject | ( | IRegistry * | from,
|  | const std::string & | objPath
| ) |  |
| inline override

Remove a link to another object.

Definition at line 372 of file HiveWhiteBoard.cpp.

372 {
373 _CALL(dataProvider, unlinkObject, (from, objPath));
374 }
HiveWhiteBoard::unlinkObject
StatusCode unlinkObject(IRegistry *from, const std::string &objPath) override
Remove a link to another object.
Definition: HiveWhiteBoard.cpp:372
_CALL
#define _CALL(P, F, ARGS)
Definition: HiveWhiteBoard.cpp:125

StatusCode HiveWhiteBoard::unlinkObject | ( | const std::string & | from,
|  | const std::string & | objPath
| ) |  |
| inline override

Remove a link to another object.

Definition at line 376 of file HiveWhiteBoard.cpp.

376 {
377 _CALL(dataProvider, unlinkObject, (from, objPath));
378 }
HiveWhiteBoard::unlinkObject
StatusCode unlinkObject(IRegistry *from, const std::string &objPath) override
Remove a link to another object.
Definition: HiveWhiteBoard.cpp:372
_CALL
#define _CALL(P, F, ARGS)
Definition: HiveWhiteBoard.cpp:125

StatusCode HiveWhiteBoard::unlinkObject | ( | DataObject * | from,
|  | const std::string & | objPath
| ) |  |
| inline override

Remove a link to another object.

Definition at line 380 of file HiveWhiteBoard.cpp.

380 {
381 _CALL(dataProvider, unlinkObject, (from, objPath));
382 }
HiveWhiteBoard::unlinkObject
StatusCode unlinkObject(IRegistry *from, const std::string &objPath) override
Remove a link to another object.
Definition: HiveWhiteBoard.cpp:372
_CALL
#define _CALL(P, F, ARGS)
Definition: HiveWhiteBoard.cpp:125

StatusCode HiveWhiteBoard::unlinkObject | ( | const std::string & | path | ) |
| inline override

Remove a link to another object.

Definition at line 384 of file HiveWhiteBoard.cpp.

384 {
385 _CALL(dataProvider, unlinkObject, (path));
386 }
HiveWhiteBoard::unlinkObject
StatusCode unlinkObject(IRegistry *from, const std::string &objPath) override
Remove a link to another object.
Definition: HiveWhiteBoard.cpp:372
_CALL
#define _CALL(P, F, ARGS)
Definition: HiveWhiteBoard.cpp:125

StatusCode HiveWhiteBoard::unregisterAddress | ( | const std::string & | path | ) |
| inline override

IDataManagerSvc: Unregister object address from the data store.

Definition at line 143 of file HiveWhiteBoard.cpp.

143 {
144 _CALL(dataManager, unregisterAddress, (path));
145 }
_CALL
#define _CALL(P, F, ARGS)
Definition: HiveWhiteBoard.cpp:125
HiveWhiteBoard::unregisterAddress
StatusCode unregisterAddress(const std::string &path) override
IDataManagerSvc: Unregister object address from the data store.
Definition: HiveWhiteBoard.cpp:143

StatusCode HiveWhiteBoard::unregisterAddress | ( | DataObject * | pParent,
|  | const std::string & | path
| ) |  |
| inline override

IDataManagerSvc: Unregister object address from the data store.

Definition at line 147 of file HiveWhiteBoard.cpp.

147 {
148 _CALL(dataManager, unregisterAddress, (pParent, path));
149 }
_CALL
#define _CALL(P, F, ARGS)
Definition: HiveWhiteBoard.cpp:125
HiveWhiteBoard::unregisterAddress
StatusCode unregisterAddress(const std::string &path) override
IDataManagerSvc: Unregister object address from the data store.
Definition: HiveWhiteBoard.cpp:143

StatusCode HiveWhiteBoard::unregisterAddress | ( | IRegistry * | pParent,
|  | const std::string & | path
| ) |  |
| inline override

IDataManagerSvc: Unregister object address from the data store.

Definition at line 151 of file HiveWhiteBoard.cpp.

151 {
152 _CALL(dataManager, unregisterAddress, (pParent, path));
153 }
_CALL
#define _CALL(P, F, ARGS)
Definition: HiveWhiteBoard.cpp:125
HiveWhiteBoard::unregisterAddress
StatusCode unregisterAddress(const std::string &path) override
IDataManagerSvc: Unregister object address from the data store.
Definition: HiveWhiteBoard.cpp:143

StatusCode HiveWhiteBoard::unregisterObject | ( | const std::string & | path | ) |
| inline override

Unregister object from the data store.

Definition at line 284 of file HiveWhiteBoard.cpp.

284 {
285 _CALL(dataProvider, unregisterObject, (path));
286 }
_CALL
#define _CALL(P, F, ARGS)
Definition: HiveWhiteBoard.cpp:125
HiveWhiteBoard::unregisterObject
StatusCode unregisterObject(const std::string &path) override
Unregister object from the data store.
Definition: HiveWhiteBoard.cpp:284

StatusCode HiveWhiteBoard::unregisterObject | ( | const std::string & | parent,
|  | const std::string & | obj
| ) |  |
| inline override

Unregister object from the data store.

Definition at line 288 of file HiveWhiteBoard.cpp.

288 {
289 _CALL(dataProvider, unregisterObject, (parent, obj));
290 }
_CALL
#define _CALL(P, F, ARGS)
Definition: HiveWhiteBoard.cpp:125
HiveWhiteBoard::unregisterObject
StatusCode unregisterObject(const std::string &path) override
Unregister object from the data store.
Definition: HiveWhiteBoard.cpp:284

StatusCode HiveWhiteBoard::unregisterObject | ( | const std::string & | parent,
|  | int | obj
| ) |  |
| inline override

Unregister object from the data store.

Definition at line 292 of file HiveWhiteBoard.cpp.

292 {
293 _CALL(dataProvider, unregisterObject, (parent, obj));
294 }
_CALL
#define _CALL(P, F, ARGS)
Definition: HiveWhiteBoard.cpp:125
HiveWhiteBoard::unregisterObject
StatusCode unregisterObject(const std::string &path) override
Unregister object from the data store.
Definition: HiveWhiteBoard.cpp:284

StatusCode HiveWhiteBoard::unregisterObject | ( | DataObject * | pObj | ) |
| inline override

Unregister object from the data store.

Definition at line 296 of file HiveWhiteBoard.cpp.

296 {
297 _CALL(dataProvider, unregisterObject, (pObj));
298 }
_CALL
#define _CALL(P, F, ARGS)
Definition: HiveWhiteBoard.cpp:125
HiveWhiteBoard::unregisterObject
StatusCode unregisterObject(const std::string &path) override
Unregister object from the data store.
Definition: HiveWhiteBoard.cpp:284

StatusCode HiveWhiteBoard::unregisterObject | ( | DataObject * | pObj,
|  | const std::string & | path
| ) |  |
| inline override

Unregister object from the data store.

Definition at line 300 of file HiveWhiteBoard.cpp.

300 {
301 _CALL(dataProvider, unregisterObject, (pObj, path));
302 }
_CALL
#define _CALL(P, F, ARGS)
Definition: HiveWhiteBoard.cpp:125
HiveWhiteBoard::unregisterObject
StatusCode unregisterObject(const std::string &path) override
Unregister object from the data store.
Definition: HiveWhiteBoard.cpp:284

StatusCode HiveWhiteBoard::unregisterObject | ( | DataObject * | pObj,
|  | int | item
| ) |  |
| inline override

Unregister object from the data store.

Definition at line 304 of file HiveWhiteBoard.cpp.

304 {
305 _CALL(dataProvider, unregisterObject, (pObj, item));
306 }
_CALL
#define _CALL(P, F, ARGS)
Definition: HiveWhiteBoard.cpp:125
HiveWhiteBoard::unregisterObject
StatusCode unregisterObject(const std::string &path) override
Unregister object from the data store.
Definition: HiveWhiteBoard.cpp:284
ana.item
tuple item
print s1,s2
Definition: ana.py:146

StatusCode HiveWhiteBoard::updateObject | ( | IRegistry * | pDirectory | ) |
| inline override

Update object identified by its directory entry.

Definition at line 388 of file HiveWhiteBoard.cpp.

388 {
389 _CALL(dataProvider, updateObject, (pDirectory));
390 }
HiveWhiteBoard::updateObject
StatusCode updateObject(IRegistry *pDirectory) override
Update object identified by its directory entry.
Definition: HiveWhiteBoard.cpp:388
_CALL
#define _CALL(P, F, ARGS)
Definition: HiveWhiteBoard.cpp:125

StatusCode HiveWhiteBoard::updateObject | ( | const std::string & | path | ) |
| inline override

Update object.

Definition at line 392 of file HiveWhiteBoard.cpp.

392 {
393 _CALL(dataProvider, updateObject, (path));
394 }
HiveWhiteBoard::updateObject
StatusCode updateObject(IRegistry *pDirectory) override
Update object identified by its directory entry.
Definition: HiveWhiteBoard.cpp:388
_CALL
#define _CALL(P, F, ARGS)
Definition: HiveWhiteBoard.cpp:125

StatusCode HiveWhiteBoard::updateObject | ( | DataObject * | pObj | ) |
| inline override

Update object.

Definition at line 396 of file HiveWhiteBoard.cpp.

396 {
397 _CALL(dataProvider, updateObject, (pObj));
398 }
HiveWhiteBoard::updateObject
StatusCode updateObject(IRegistry *pDirectory) override
Update object identified by its directory entry.
Definition: HiveWhiteBoard.cpp:388
_CALL
#define _CALL(P, F, ARGS)
Definition: HiveWhiteBoard.cpp:125

StatusCode HiveWhiteBoard::updateObject | ( | const std::string & | parent,
|  | const std::string & | updatePath
| ) |  |
| inline override

Update object.

Definition at line 400 of file HiveWhiteBoard.cpp.

400 {
401 _CALL(dataProvider, updateObject, (parent, updatePath));
402 }
HiveWhiteBoard::updateObject
StatusCode updateObject(IRegistry *pDirectory) override
Update object identified by its directory entry.
Definition: HiveWhiteBoard.cpp:388
_CALL
#define _CALL(P, F, ARGS)
Definition: HiveWhiteBoard.cpp:125

StatusCode HiveWhiteBoard::updateObject | ( | DataObject * | parent,
|  | const std::string & | updatePath
| ) |  |
| inline override

Update object.

Definition at line 404 of file HiveWhiteBoard.cpp.

404 {
405 _CALL(dataProvider, updateObject, (parent, updatePath));
406 }
HiveWhiteBoard::updateObject
StatusCode updateObject(IRegistry *pDirectory) override
Update object identified by its directory entry.
Definition: HiveWhiteBoard.cpp:388
_CALL
#define _CALL(P, F, ARGS)
Definition: HiveWhiteBoard.cpp:125

## Member Data Documentation

IAddressCreator* HiveWhiteBoard::m_addrCreator
| protected

Reference to address creator.

Definition at line 104 of file HiveWhiteBoard.cpp.

IConversionSvc* HiveWhiteBoard::m_dataLoader
| protected

Pointer to data loader service.

Definition at line 102 of file HiveWhiteBoard.cpp.

bool HiveWhiteBoard::m_enableFaultHdlr
| protected

Flag to enable interrupts on data creation requests.

Definition at line 112 of file HiveWhiteBoard.cpp.

bool HiveWhiteBoard::m_forceLeaves
| protected

Allow forced creation of default leaves on registerObject.

Definition at line 110 of file HiveWhiteBoard.cpp.

std::string HiveWhiteBoard::m_loader
| protected

Data loader name.

Definition at line 100 of file HiveWhiteBoard.cpp.

Partitions HiveWhiteBoard::m_partitions
| protected

Datastore partitions.

Definition at line 106 of file HiveWhiteBoard.cpp.

CLID HiveWhiteBoard::m_rootCLID
| protected

Integer Property corresponding to CLID of root entry.

Definition at line 96 of file HiveWhiteBoard.cpp.

std::string HiveWhiteBoard::m_rootName
| protected

Name of root event.

Definition at line 98 of file HiveWhiteBoard.cpp.

int HiveWhiteBoard::m_slots
| protected

Datastore slots.

Definition at line 108 of file HiveWhiteBoard.cpp.

The documentation for this class was generated from the following file:

- GaudiHive/src/HiveWhiteBoard.cpp