70 if (
assign (sgkey).isFailure ()) {
71 throw std::runtime_error (std::string(
"Could not assign VarHandleKey with key ") + sgkey);
91 return StatusCode::SUCCESS;
107 return StatusCode::SUCCESS;
113 return StatusCode::FAILURE;
116 return StatusCode::SUCCESS;
132 return StatusCode::SUCCESS;
160 s <<
"'" << m.key() <<
"'";
A property holding a SG store/key/clid from which a VarHandle is made.
VarHandleKey & operator=(const std::string &sgkey)
Change the key of the object to which we're referring.
const std::string & key() const
Return the StoreGate ID for the referenced object.
virtual StatusCode assign(const std::string &sgkey)
Change the key of the object to which we're referring.
std::string m_sgKey
StoreGate key, that doesn't include the storename.
VarHandleKey(CLID clid, const std::string &sgkey, Gaudi::DataHandle::Mode a, const std::string &storeName=StoreID::storeName(StoreID::EVENT_STORE), bool isCond=false)
Constructor.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
bool empty() const
Test if the key is blank.
holding In fact this class is here in order to allow STL container for all features This class is sho...
ostream & operator<<(ostream &s, const SG::VarHandleKey &m)