Public Member Functions | Protected Member Functions | Protected Attributes

Onyx::Properties::SimpleProperty Class Reference

Simple Property class, does not support default values, merely holds a DynamicAny value. More...

#include <SimpleProperty.h>

Inheritance diagram for Onyx::Properties::SimpleProperty:
Onyx::Properties::PropertyBase

Public Member Functions

 SimpleProperty (const SimpleProperty &other)
 Copy constructor.
 SimpleProperty (const std::string &propName, const std::string &groupName="", const Poco::DynamicAny &value=0, const bool &validateAll=true)
 Standard constructor, no more work is needed so all it does is call the base class constructor.
 ~SimpleProperty ()
 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 to the underlying DynamicAny.

Protected Attributes

Poco::DynamicAny value
 The Property's actual value.

Detailed Description

Simple Property class, does not support default values, merely holds a DynamicAny value.


Constructor & Destructor Documentation

Onyx::Properties::SimpleProperty::SimpleProperty ( const SimpleProperty other  ) 

Copy constructor.

Parameters:
other Property to copy.
Onyx::Properties::SimpleProperty::SimpleProperty ( const std::string &  propName,
const std::string &  groupName = "",
const Poco::DynamicAny &  value = 0,
const bool &  validateAll = true 
)

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

Parameters:
propName Name of the Property.
groupName Group name of the Property.
value Initial value of the Property.
validateAll Whether or not all validators should always be evaluated.
Onyx::Properties::SimpleProperty::~SimpleProperty (  ) 

Destructor, does nothing.


Member Function Documentation

void Onyx::Properties::SimpleProperty::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.

const Poco::DynamicAny& Onyx::Properties::SimpleProperty::valueImpl (  )  [protected, virtual]

Gets a reference to the underlying DynamicAny.

Implements Onyx::Properties::PropertyBase.


Field Documentation

Poco::DynamicAny Onyx::Properties::SimpleProperty::value [protected]

The Property's actual value.


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