cxxtools::PropertiesIOObject< ObjectType > Class Template Reference

Wrapper object to easily read properties from a input stream and convert them to serializable objects. More...

#include <cxxtools/properties.h>

Inheritance diagram for cxxtools::PropertiesIOObject< ObjectType >:
cxxtools::PropertiesOObject< ObjectType >

Public Member Functions

 PropertiesIOObject (ObjectType &object, const std::string &name=std::string())
 Constructor. Needs the wrapped object.
ObjectType & object ()
const std::string & name () const
PropertiesIOObjectenvSubst (bool sw)
 Sets the envSubst flag.
bool envSubst () const
 Returns the envSubst flag.
PropertiesIOObjecttrim (bool sw)
 Sets the trim flag.
bool trim () const
 Returns the trim flag.
- Public Member Functions inherited from cxxtools::PropertiesOObject< ObjectType >
 PropertiesOObject (const ObjectType &object, bool outputSize=true)
 Constructor.
PropertiesOObjectoutputSize (bool sw)
bool outputSize () const
const ObjectType & object () const

Detailed Description

template<typename ObjectType>
class cxxtools::PropertiesIOObject< ObjectType >

Wrapper object to easily read properties from a input stream and convert them to serializable objects.

Constructor & Destructor Documentation

template<typename ObjectType>
cxxtools::PropertiesIOObject< ObjectType >::PropertiesIOObject ( ObjectType &  object,
const std::string &  name = std::string() 
)
inlineexplicit

Constructor. Needs the wrapped object.

Member Function Documentation

template<typename ObjectType>
PropertiesIOObject& cxxtools::PropertiesIOObject< ObjectType >::envSubst ( bool  sw)
inline

Sets the envSubst flag.

When set flag is set, environment variables are substituted in the value using / cxxtools::envSubst.

template<typename ObjectType>
bool cxxtools::PropertiesIOObject< ObjectType >::envSubst ( ) const
inline

Returns the envSubst flag.

template<typename ObjectType>
const std::string& cxxtools::PropertiesIOObject< ObjectType >::name ( ) const
inline
template<typename ObjectType>
ObjectType& cxxtools::PropertiesIOObject< ObjectType >::object ( )
inline
template<typename ObjectType>
PropertiesIOObject& cxxtools::PropertiesIOObject< ObjectType >::trim ( bool  sw)
inline

Sets the trim flag.

When set flag is set, white space is removed from the beginning and end of the values.

template<typename ObjectType>
bool cxxtools::PropertiesIOObject< ObjectType >::trim ( ) const
inline

Returns the trim flag.


The documentation for this class was generated from the following file: