Public Member Functions | Protected Member Functions | Protected Attributes

Onyx::Properties::ClassMemberProperty< T > Class Template Reference

Property class that maps to a class data member. This class does not use a copy constructor. More...

#include <ClassMemberProperty.h>

Inheritance diagram for Onyx::Properties::ClassMemberProperty< T >:
Onyx::Properties::ClassProperty Onyx::Properties::DefaultProperty Onyx::Properties::PropertyBase

Public Member Functions

 ClassMemberProperty (PropertyHolder *holder, T *targetPointer, const std::string &propName, const std::string &groupName="", const Poco::DynamicAny &dValue=0, const bool &validateAll=true)
 Standard constructor, no more work is needed so all it does is call the base class constructor.
 ~ClassMemberProperty ()
 Destructor, does nothing.

Protected Member Functions

void setImpl (const Poco::DynamicAny &value)
 Sets the held DynamicAny's value to value.
const Poco::DynamicAny & valueImpl ()
 Gets a reference of the underlying DynamicAny.

Protected Attributes

T * target
 Pointer to the class data member.
Poco::DynamicAny valueHolder
 Temporary DynamicAny for data retrieval purposes.

Detailed Description

template<typename T>
class Onyx::Properties::ClassMemberProperty< T >

Property class that maps to a class data member. This class does not use a copy constructor.


Constructor & Destructor Documentation

template<typename T >
Onyx::Properties::ClassMemberProperty< T >::ClassMemberProperty ( PropertyHolder holder,
T *  targetPointer,
const std::string &  propName,
const std::string &  groupName = "",
const Poco::DynamicAny &  dValue = 0,
const bool &  validateAll = true 
)

Standard constructor, no more work is needed so all it does is call the base class constructor.

Parameters:
holder The holder(owner) of the Property.
targetPointer Pointer to the class data member.
propName Name of the Property.
groupName Group name of the Property.
dValue Initial and default value of the Property.
validateAll Whether or not all validators should always be evaluated.
template<typename T >
Onyx::Properties::ClassMemberProperty< T >::~ClassMemberProperty (  ) 

Destructor, does nothing.


Member Function Documentation

template<typename T >
void Onyx::Properties::ClassMemberProperty< T >::setImpl ( const Poco::DynamicAny &  value  )  [protected, virtual]

Sets the held DynamicAny's value to value.

Parameters:
value the new value for the Property.
Remarks:
This member function is called only if the value is valid.

Implements Onyx::Properties::PropertyBase.

References Onyx::Properties::ClassMemberProperty< T >::target.

template<typename T >
const Poco::DynamicAny& Onyx::Properties::ClassMemberProperty< T >::valueImpl (  )  [protected, virtual]

Field Documentation

template<typename T >
T* Onyx::Properties::ClassMemberProperty< T >::target [protected]

Pointer to the class data member.

template<typename T >
Poco::DynamicAny Onyx::Properties::ClassMemberProperty< T >::valueHolder [protected]

Temporary DynamicAny for data retrieval purposes.


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