![]() |
The Gaudi Framework
v29r5 (37229091)
|
#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 () |
![]() | |
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 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::string, 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 32 of file TESSerializer.h.
|
private |
Definition at line 35 of file TESSerializer.h.
|
private |
Definition at line 34 of file TESSerializer.h.
|
private |
Definition at line 36 of file TESSerializer.h.
GaudiMP::TESSerializer::TESSerializer | ( | IDataProviderSvc * | svc, |
IAddressCreator * | ac | ||
) |
Constructor.
Definition at line 53 of file TESSerializer.cpp.
|
inlinevirtual |
Definition at line 60 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 368 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 321 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 375 of file TESSerializer.cpp.
|
overridevirtual |
Analysis callback.
Implements IDataStoreAgent.
Definition at line 41 of file TESSerializer.cpp.
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 382 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 64 of file TESSerializer.cpp.
|
protected |
Find single item identified by its path (exact match)
Definition at line 395 of file TESSerializer.cpp.
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 187 of file TESSerializer.cpp.
|
private |
IAddress Creator for Opaque Addresses.
Definition at line 94 of file TESSerializer.h.
|
private |
Map of gROOT class information.
Definition at line 88 of file TESSerializer.h.
|
private |
Current item while traversing the TES tree.
Definition at line 83 of file TESSerializer.h.
|
private |
Vector of items to be saved to this stream (DataStoreItem ptrs)
Definition at line 77 of file TESSerializer.h.
|
private |
Vector of item names.
Definition at line 75 of file TESSerializer.h.
|
private |
Selected list of Objects to be serialized (DataObject ptrs)
Definition at line 85 of file TESSerializer.h.
|
private |
Vector of optional items to be saved to this stream (DataStoreItem ptrs)
Definition at line 81 of file TESSerializer.h.
|
private |
Vector of item names (std::strings)
Definition at line 79 of file TESSerializer.h.
|
private |
Boolean Flag used to determine error tolerance.
Definition at line 92 of file TESSerializer.h.
|
private |
TES pointer.
Definition at line 71 of file TESSerializer.h.
|
private |
TES pointer.
Definition at line 73 of file TESSerializer.h.
|
private |
Boolean Flag as used by GaudiSvc/PersistencySvc/OutputStreamer.
Definition at line 90 of file TESSerializer.h.