1 #ifndef GAUDIKERNEL_DATAOBJIDPROPERTY_H 2 #define GAUDIKERNEL_DATAOBJIDPROPERTY_H 1 72 return destination.
assign( *
this );
77 return fromString( source.
toString() ).isSuccess();
96 bool load(
Property& destination )
const override;
97 bool assign(
const Property& source )
override;
130 template <
class OWNER>
137 m_data.reset( const_cast<DataObjIDColl*>( &value() ) );
139 owner->declareProperty( *
this );
140 setOwnerType<OWNER>();
163 return destination.
assign( *
this );
168 return fromString( source.
toString() ).isSuccess();
Property(const std::string &name, DataObjIDColl &value)
bool assign(const Property &source) override
Property(OWNER *owner, const std::string &name, const DataObjIDColl &initval=DataObjIDColl{}, std::string doc="")
Autodeclaring constructor with property name, value and documentation.
Implementation of property with value of concrete type.
DataObjIDCollProperty * clone() const override
clones the current property
virtual bool load(PropertyBase &dest) const =0
export the property value to the destination
virtual ~Property()
virtual Destructor
virtual bool assign(const PropertyBase &source)=0
import the property value form the source
The declaration of major parsing functions used e.g for (re)implementation of new extended properties...
Property(const std::string &name, DataObjIDColl &value)
virtual std::string toString() const =0
value -> string
bool load(Property &destination) const override
Gaudi::Details::PropertyBase Property
backward compatibility hack for old Property base class
DataObjIDProperty * clone() const override
clones the current property
std::unique_ptr< DataObjIDColl > m_data
DataObjIDCollProperty & operator=(const DataObjIDColl &value)
virtual void toStream(std::ostream &out) const =0
value -> stream
virtual StatusCode fromString(const std::string &value)=0
string -> value
Helper class to simplify the migration old properties deriving directly from PropertyBase.
PropertyMgr & operator=(const PropertyMgr &)=delete
virtual ~Property()
virtual Destructor
std::ostream & toStream(const Type &, std::ostream &)
DataObjID * m_pValue
Pointer to the real property.
This class is used for returning status codes from appropriate routines.
virtual PropertyBase * clone() const =0
clones the current property
DataObjIDProperty & operator=(const DataObjID &value)
PropertyBase base class allowing PropertyBase* collections to be "homogeneous".
const DataObjID & value() const
bool assign(const Property &source) override
virtual ~Property()
virtual Destructor
DataObjIDProperty.h GaudiKernel/DataObjProperty.h.
DataObjIDColl * m_pValue
Pointer to the real property.
Property(const std::string &name, DataObjID &value)
implementation of various functions for streaming.
const DataObjIDColl & value() const
bool load(Property &destination) const override
Helper functions to set/get the application return code.
std::string toString(const Type &)
PropertyBase & operator=(const PropertyBase &)=default
assignment operator