The MAUVE Toolchain
mauve::runtime::HasProperty Class Reference
Inheritance diagram for mauve::runtime::HasProperty:
Collaboration diagram for mauve::runtime::HasProperty:

Public Member Functions

const std::vector< AbstractProperty * > get_properties () const
 Get the properties of the shell. More...
 
std::size_t get_properties_size () const
 
AbstractPropertyget_property (std::string const &name) const
 
AbstractPropertyget_property (int index) const
 
- Public Member Functions inherited from mauve::runtime::Configurable
virtual void cleanup ()=0
 Cleanup the object.
 
virtual bool configure ()=0
 Configure the object.
 
virtual bool is_configured () const =0
 Get the configuration status of the configurable object. More...
 

Protected Member Functions

template<typename T >
Property< T > & mk_property (std::string const &name, T init_value)
 Create a new property. More...
 

Member Function Documentation

const std::vector<AbstractProperty*> mauve::runtime::HasProperty::get_properties ( ) const

Get the properties of the shell.

Returns
a vector of properties
template<typename T >
Property< T > & mauve::runtime::HasProperty::mk_property ( std::string const &  name,
init_value 
)
protected

Create a new property.

Template Parameters
Tproperty type
Parameters
namethe property name
init_valuethe property initial value
Returns
a reference to a Property object