Go to the documentation of this file.
   40     auto i = std::make_unique<AnyDataWrapper<int>>( 0 );
 
   41     auto j = std::make_unique<AnyDataWrapper<std::vector<int>>>( 
std::vector<int>{ 0, 1, 2, 3 } );
 
   44         ->registerObject( 
m_loc.
value() + 
"/One", i.release() )
 
   45         .orThrow( 
"failed to register " + 
m_loc.
value() + 
"/One" );
 
   47         ->registerObject( 
m_loc.
value() + 
"/Two", 
j.release() )
 
   48         .orThrow( 
"failed to register " + 
m_loc.
value() + 
"/Two" );
 
   94     info() << 
"AnyDataHandler holds:";
 
   95     for ( 
const auto& i : *ids ) info() << i << 
" ";
 
  
 
DataObjectReadHandle< std::vector< int > > m_ids
const std::string & name() const override
The identifying name of the algorithm object.
SmartIF< IDataProviderSvc > & eventSvc() const
The standard event data service.
DataObjectWriteHandle< std::vector< int > > m_ids
Alias for backward compatibility.
GAUDI_API const std::string typeinfoName(const std::type_info &)
Get platform independent information about the class type.
AnyDataPutAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
MSG::Level msgLevel() const
get the cached level (originally extracted from the embedded MsgStream)
#define DECLARE_COMPONENT_WITH_ID(type, id)
T * get() const
Retrieve object from transient data store.
const ValueType & value() const
StatusCode execute() override
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
struct GAUDI_API vector
Parametrisation class for vector-like implementation.
T emplace_back(T... args)
T * put(std::unique_ptr< T > object) const
Register object in transient store.
constexpr static const auto SUCCESS
std::vector< DataObjectWriteHandle< int > > m_id_vec
#define DECLARE_COMPONENT(type)
StatusCode execute() override
Gaudi::Property< std::string > m_loc
Gaudi::Property< std::string > m_location
Algorithm(std::string name, ISvcLocator *svcloc, std::string version=PACKAGE_VERSION)
Constructor.
constexpr static const auto FAILURE
auto put(const DataObjectHandle< Out1 > &out_handle, Out2 &&out)