A concrete IAddressProvider.
More...
#include <ByteStreamAddressProviderSvc.h>
◆ ByteStreamAddressProviderSvc()
| ByteStreamAddressProviderSvc::ByteStreamAddressProviderSvc |
( |
const std::string & | name, |
|
|
ISvcLocator * | pSvcLocator ) |
◆ initialize()
| StatusCode ByteStreamAddressProviderSvc::initialize |
( |
| ) |
|
|
overridevirtual |
Definition at line 20 of file ByteStreamAddressProviderSvc.cxx.
20 {
22
23
25
28 return StatusCode::FAILURE;
29 }
31 return StatusCode::SUCCESS;
32}
#define ATH_CHECK
Evaluate an expression and check for errors.
Gaudi::Property< int > m_storeID
◆ preLoadAddresses()
| StatusCode ByteStreamAddressProviderSvc::preLoadAddresses |
( |
StoreID::type | id, |
|
|
tadList & | tlist ) |
|
overridevirtual |
Definition at line 34 of file ByteStreamAddressProviderSvc.cxx.
34 {
38 return StatusCode::SUCCESS;
39 }
40
42 Gaudi::Utils::TypeNameString
item(typeName);
43 const std::string&
t =
item.type();
44 const std::string&
nm =
item.name();
46 if (!
m_clidSvc->getIDOfTypeName(t, classid).isSuccess()) {
47 ATH_MSG_WARNING(
"Cannot create TAD for (type, name)" <<
" no CLID for " << t <<
" " << nm);
48 } else {
49 SG::TransientAddress* tad = new SG::TransientAddress(classid, nm);
51 ATH_MSG_DEBUG(
"Created TAD for (type, clid, name)" << t <<
" " << classid <<
" " << nm);
52
54 }
55 }
56 return StatusCode::SUCCESS;
57}
#define ATH_MSG_WARNING(x)
uint32_t CLID
The Class ID type.
Gaudi::Property< std::vector< std::string > > m_typeNames
std::map< unsigned int, std::set< std::string > > m_clidKey
◆ updateAddress()
update an existing transient Address
Definition at line 59 of file ByteStreamAddressProviderSvc.cxx.
61 {
63 return StatusCode::FAILURE;
64 }
66 std::string
nm = tad->
name();
68 if (it ==
m_clidKey.end() ||
it->second.count(nm) == 0) {
69 return StatusCode::FAILURE;
70 }
72 ByteStreamAddress*
add =
new ByteStreamAddress(clid, nm,
"");
73 add->setEventContext(ctx);
75 return StatusCode::SUCCESS;
76}
CLID clID() const
Retrieve string key:
const std::string & name() const
Get the primary (hashed) SG key.
void setAddress(CxxUtils::RefCountedPtr< IOpaqueAddress > pAddress)
Retrieve primary clid.
bool add(const std::string &hname, TKey *tobj)
◆ m_clidKey
| std::map<unsigned int, std::set<std::string> > ByteStreamAddressProviderSvc::m_clidKey |
|
private |
◆ m_clidSvc
| ServiceHandle<IClassIDSvc> ByteStreamAddressProviderSvc::m_clidSvc |
|
private |
◆ m_storeID
| Gaudi::Property<int> ByteStreamAddressProviderSvc::m_storeID {this, "StoreID", StoreID::EVENT_STORE, "Store ID"} |
|
private |
◆ m_typeNames
| Gaudi::Property<std::vector<std::string> > ByteStreamAddressProviderSvc::m_typeNames |
|
private |
Initial value:{this, "TypeNames", {},
"Type and Name of objects to create the address for", "OrderedSet<std::string>"}
Definition at line 41 of file ByteStreamAddressProviderSvc.h.
41 {this, "TypeNames", {},
42 "Type and Name of objects to create the address for", "OrderedSet<std::string>"};
The documentation for this class was generated from the following files: