The Gaudi Framework
master (594c33fa)
|
#include </builds/gaudi/Gaudi/GaudiMP/include/GaudiMP/TESSerializer.h>
Public Member Functions | |
TESSerializer (IDataProviderSvc *svc, IAddressCreator *ac) | |
Constructor. More... | |
void | dumpBuffer (TBufferFile &) |
Dump TES contents listed in m_itemList/m_optItemList to a TBufferFile. More... | |
void | loadBuffer (TBufferFile &) |
Rebuild TES from items in a TBufferFile. More... | |
void | addItem (const std::string &path) |
add an item to the TESSerializer's list (#notation) More... | |
void | addOptItem (const std::string &path) |
add an item to the TESSerializer's optional list (#notation) More... | |
bool | analyse (IRegistry *dir, int level) override |
Analysis callback. More... | |
void | checkItems () |
print out the contents of m_itemList and m_optItemList (std::cout) More... | |
virtual | ~TESSerializer () |
Public Member Functions inherited from IDataStoreAgent | |
virtual | ~IDataStoreAgent ()=default |
destructor More... | |
Protected Member Functions | |
void | addItem (Items &itms, const std::string &descriptor) |
Add item to the list of items to be serialized (#notation) More... | |
DataStoreItem * | findItem (const std::string &path) |
Find single item identified by its path (exact match) More... | |
Private Types | |
typedef std::vector< DataStoreItem * > | Items |
typedef std::vector< std::string > | ItemNames |
typedef std::vector< DataObject * > | Objects |
Private Member Functions | |
TClass * | getClass (DataObject *obj) |
caching wrapper to TClass::GetClass More... | |
Private Attributes | |
IDataProviderSvc * | m_TES |
TES pointer. More... | |
IDataManagerSvc * | m_TESMgr |
TES pointer. More... | |
ItemNames | m_itemNames |
Vector of item names. More... | |
Items | m_itemList |
Vector of items to be saved to this stream (DataStoreItem ptrs) More... | |
ItemNames | m_optItemNames |
Vector of item names (std::strings) More... | |
Items | m_optItemList |
Vector of optional items to be saved to this stream (DataStoreItem ptrs) More... | |
DataStoreItem * | m_currentItem |
Current item while traversing the TES tree. More... | |
Objects | m_objects |
Selected list of Objects to be serialized (DataObject ptrs) More... | |
std::map< std::type_index, TClass * > | m_classMap |
Map of gROOT class information. More... | |
bool | m_verifyItems |
Boolean Flag as used by GaudiSvc/PersistencySvc/OutputStreamer. More... | |
bool | m_strict |
Boolean Flag used to determine error tolerance. More... | |
IAddressCreator * | m_addressCreator |
IAddress Creator for Opaque Addresses. More... | |
Definition at line 42 of file TESSerializer.h.
|
private |
Definition at line 44 of file TESSerializer.h.
|
private |
Definition at line 43 of file TESSerializer.h.
|
private |
Definition at line 45 of file TESSerializer.h.
GaudiMP::TESSerializer::TESSerializer | ( | IDataProviderSvc * | svc, |
IAddressCreator * | ac | ||
) |
|
inlinevirtual |
Definition at line 69 of file TESSerializer.h.
void GaudiMP::TESSerializer::addItem | ( | const std::string & | path | ) |
add an item to the TESSerializer's list (#notation)
Add item to serialization list; ie append to std::vector of DataStoreItems.
Definition at line 348 of file TESSerializer.cpp.
|
protected |
Add item to the list of items to be serialized (#notation)
Add item to output streamer list (protected)
Definition at line 302 of file TESSerializer.cpp.
void GaudiMP::TESSerializer::addOptItem | ( | const std::string & | path | ) |
add an item to the TESSerializer's optional list (#notation)
Add optional item to output streamer list.
Definition at line 354 of file TESSerializer.cpp.
|
overridevirtual |
void GaudiMP::TESSerializer::checkItems | ( | ) |
print out the contents of m_itemList and m_optItemList (std::cout)
Uses cout to print the contents of the mandatory and optional item lists.
Definition at line 360 of file TESSerializer.cpp.
void GaudiMP::TESSerializer::dumpBuffer | ( | TBufferFile & | buffer | ) |
Dump TES contents listed in m_itemList/m_optItemList to a TBufferFile.
Serialize contents of TES to a TBufferFile.
Definition at line 70 of file TESSerializer.cpp.
|
protected |
Find single item identified by its path (exact match)
Definition at line 372 of file TESSerializer.cpp.
|
inlineprivate |
void GaudiMP::TESSerializer::loadBuffer | ( | TBufferFile & | buffer | ) |
Rebuild TES from items in a TBufferFile.
Reconstruct the TES from a given TBufferFile.
The next is equivalent to ReadObjectAny(cl) except of the 'magic!!'
Definition at line 169 of file TESSerializer.cpp.
|
private |
IAddress Creator for Opaque Addresses.
Definition at line 111 of file TESSerializer.h.
|
private |
Map of gROOT class information.
Definition at line 105 of file TESSerializer.h.
|
private |
Current item while traversing the TES tree.
Definition at line 100 of file TESSerializer.h.
|
private |
Vector of items to be saved to this stream (DataStoreItem ptrs)
Definition at line 94 of file TESSerializer.h.
|
private |
Vector of item names.
Definition at line 92 of file TESSerializer.h.
|
private |
Selected list of Objects to be serialized (DataObject ptrs)
Definition at line 102 of file TESSerializer.h.
|
private |
Vector of optional items to be saved to this stream (DataStoreItem ptrs)
Definition at line 98 of file TESSerializer.h.
|
private |
Vector of item names (std::strings)
Definition at line 96 of file TESSerializer.h.
|
private |
Boolean Flag used to determine error tolerance.
Definition at line 109 of file TESSerializer.h.
|
private |
TES pointer.
Definition at line 88 of file TESSerializer.h.
|
private |
TES pointer.
Definition at line 90 of file TESSerializer.h.
|
private |
Boolean Flag as used by GaudiSvc/PersistencySvc/OutputStreamer.
Definition at line 107 of file TESSerializer.h.