The Gaudi Framework  v30r4 (9b837755)
DataHandleConfigurable.h
Go to the documentation of this file.
1 #ifndef GAUDIKERNEL_DATAHANDLECONFIGURABLE_H
2 #define GAUDIKERNEL_DATAHANDLECONFIGURABLE_H 1
3 
4 #include <functional>
5 #include <string>
6 
9 
10 namespace Gaudi
11 {
19  {
20  public:
23  : m_metadata( metadata ), m_key( std::move( defaultKey ) )
24  {
25  }
26 
28  const IDataHandleMetadata& metadata() const { return m_metadata; }
29 
31  const DataObjID& targetKey() const { return m_key; }
32 
34  void setTargetKey( const DataObjID& key ) { m_key = key; }
35 
38 
39  private:
42  };
43 
44  // More boilerplate for Gaudi::Property compatibility
45  namespace Parsers
46  {
48  }
49  namespace Utils
50  {
52  }
53 }
54 
55 #endif
std::reference_wrapper< const IDataHandleMetadata > m_metadata
Configurable entity associated with a DataHandle property.
const DataObjID & targetKey() const
Tell what the currently configured target is.
STL namespace.
void setTargetKey(const DataObjID &key)
Change the target of the data handle.
STL class.
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:51
std::ostream & toStream(const DataObjID &d, std::ostream &os)
Definition: DataObjID.cpp:92
Interface to some class-wide metadata of DataHandle subclasses.
StatusCode parse(DataObjID &dest, const std::string &src)
Definition: DataObjID.cpp:52
friend std::ostream & operator<<(std::ostream &str, const DataHandleConfigurable &d)
Boilerplate for Gaudi::Property compatibility.
const IDataHandleMetadata & metadata() const
Propagate metadata of the underlying DataHandle type.
#define GAUDI_API
Definition: Kernel.h:71
STL class.
Helper functions to set/get the application return code.
Definition: __init__.py:1
DataHandleConfigurable(const IDataHandleMetadata &metadata, DataObjID defaultKey)
Initialize by providing access to the metadata singleton.