An instance of this class holds an value of any type defined in one of the *.nice type definition files. An instance has to be coined by a certain data type. Once a Property has been coind the type can not be changed any more during runtime.
More...
|
void | emitSignals (Nice::CompletionState _cs, Nice::I64 _setterId) |
| Whenever the Property value has changed all connected Properties have to be informed ans synchronized. More...
|
|
| Property (const Property &a) |
| Copy constructor. More...
|
|
| Property (const Nice::Any &a) |
| Copy constructor. More...
|
|
| Property (const char *value, const Nice::Date &=Nice::Date::now()) |
| Constructor for const char* type. More...
|
|
template<typename Type > |
| Property (const Type &value, const Nice::Date &=Nice::Date::now()) |
| Template constructor for any type. More...
|
|
template<typename Type > |
| Property (const std::string &value, const Nice::Date &=Nice::Date::now()) |
| Constructor for string type. More...
|
|
| ~Property () |
| Destructor. More...
|
|
Nice::I64 | id () |
| Get the unique ID of this Property. More...
|
|
| operator std::string () const |
| Casts a Property (value) to a string. More...
|
|
template<typename Type > |
| operator Type () const |
| Cast a Property to a new type T. More...
|
|
Nice::Mutex & | mutex () |
| Return the properties Mutex. More...
|
|
bool | operator== (const char *_value) |
| Equal operator compares the value of a property to a const char*. More...
|
|
template<typename E > |
bool | operator== (const E &_value) |
| Equal operator compares the value of a property to a type E. More...
|
|
bool | operator== (const Property &_value) |
| Equal operator compares two Properties. More...
|
|
Property & | operator= (const char *r) |
| Assignment operator assigns a const char* to the Property. More...
|
|
template<typename Type > |
Property & | operator= (const Type &_v) |
| Assignment operator assigns a value of type T to the Property. More...
|
|
Property & | operator= (Property &r) |
| Assignment operator assigns a value of a Property to this Property. More...
|
|
Nice::CompletionState | set (const char *_v, const Nice::Date &=Nice::Date::now()) |
| Assigns a const char* to this Property. More...
|
|
Nice::CompletionState | set (const char *_v, Nice::I64 _setterId, const Nice::Date &=Nice::Date::now()) |
| Assigns a const char* to this Property. More...
|
|
template<typename Type > |
Nice::CompletionState | set (const Type &_v, const Nice::Date &_date=Nice::Date::now()) |
| Assigns a value of type T to this Property. More...
|
|
template<typename Type > |
Nice::CompletionState | set (const Type &_v, Nice::I64 _setterId, const Nice::Date &_date=Nice::Date::now()) |
| Assigns a value of type T to this Property. More...
|
|
template<typename TypeClass > |
Nice::CompletionState | change (void(TypeClass::*_memfun)(), const Nice::Date &_date=Nice::Date::now()) |
| Change property throough member function. More...
|
|
template<typename TypeClass > |
Nice::CompletionState | change (void(TypeClass::*_memfun)(), Nice::I64 _setterId, const Nice::Date &_date=Nice::Date::now()) |
| Change property throough member function. More...
|
|
template<typename TypeClass , typename Type1 > |
Nice::CompletionState | change (void(TypeClass::*_memfun)(Type1), Type1 _v1, const Nice::Date &_date=Nice::Date::now()) |
| Change property throough member function. More...
|
|
template<typename TypeClass , typename Type1 > |
Nice::CompletionState | change (void(TypeClass::*_memfun)(const Type1 &), Type1 _v1, const Nice::Date &_date=Nice::Date::now()) |
| Change property throough member function. More...
|
|
template<typename TypeClass , typename Type1 > |
Nice::CompletionState | change (void(TypeClass::*_memfun)(Type1), Type1 _v1, Nice::I64 _setterId, const Nice::Date &_date=Nice::Date::now()) |
| Change property throough member function. More...
|
|
template<typename TypeClass , typename Type1 > |
Nice::CompletionState | change (void(TypeClass::*_memfun)(const Type1 &), Type1 _v1, Nice::I64 _setterId, const Nice::Date &_date=Nice::Date::now()) |
| Change property throough member function. More...
|
|
template<typename TypeClass , typename Type1 , typename TypeMemFn > |
Nice::CompletionState | change (TypeMemFn _memfun, Type1 _v1, const Nice::Date &_date=Nice::Date::now()) |
| Change property throough member function. More...
|
|
template<typename TypeClass , typename Type1 , typename TypeMemFn > |
Nice::CompletionState | change (TypeMemFn _memfun, Type1 _v1, Nice::I64 _setterId, const Nice::Date &_date=Nice::Date::now()) |
| Change property throough member function. More...
|
|
template<typename TypeClass , typename Type1 , typename Type2 , typename TypeMemFn > |
Nice::CompletionState | change (TypeMemFn _memfun, Type1 _v1, Type2 _v2, const Nice::Date &_date=Nice::Date::now()) |
| Change property throough member function. More...
|
|
template<typename TypeClass , typename Type1 , typename Type2 , typename TypeMemFn > |
Nice::CompletionState | change (TypeMemFn _memfun, Type1 _v1, Type2 _v2, Nice::I64 _setterId, const Nice::Date &_date=Nice::Date::now()) |
| Change property throough member function. More...
|
|
void | applyActor (const Nice::PropertyActorPtr &_actor) |
| Applys a Actor to the Property. More...
|
|
void | removeActor (const std::string &_name="") |
| Removes an Actor to the Property. More...
|
|
Nice::PropertyActorPtr | actor (const std::string &_name="") const |
| Get the Actor assigned to this Property. More...
|
|
template<typename Type > |
const IceUtil::Handle< Type > & | actor (const std::string &_name="") |
| Get the Actor assigned to this Property. More...
|
|
const std::list< Nice::PropertyActorPtr > & | actorList () |
| Return actor list applied to this property. More...
|
|
template<typename Type > |
void | setAttribute (const std::string &_key, const Type &_attr, const Nice::Date &=Nice::Date::now()) |
| Apply an Attribute of Type to the Property. More...
|
|
PropertyPtr | applyAttribute (const std::string &_key, const PropertyPtr &_attr) |
| Apply an Attribute to the Property. More...
|
|
PropertyPtr | applyAttribute (const std::string &_key, const char *_attr) |
| Apply an Attribute to the Property. More...
|
|
template<typename Type > |
PropertyPtr | applyAttribute (const std::string &_key, const Type &_attr, const Nice::Date &=Nice::Date::now()) |
| Apply an Attribute of Type to the Property. More...
|
|
PropertyPtr | attribute (const std::string &_key) const |
| Get the Attribute assigned to this Property. More...
|
|
const PropertyPtr & | getAttribute (const std::string &_key) const |
| Get the Attribute assigned to this Property. More...
|
|
template<typename Type > |
Type | getAttribute (const std::string &_key) |
| Get the Attribute assigned to this Property. More...
|
|
template<typename Type > |
Type | getAttributeWithDefault (const std::string &_key, const Type &_attr, const Nice::Date &=Nice::Date::now()) |
| Get the Attribute assigned to this Property. More...
|
|
void | removeAttribute (const std::string &_attr="") |
| Removes a Property Attribute. More...
|
|
const std::map< std::string, PropertyPtr > & | attributeMap () |
| Return actor list applied to this property. More...
|
|
void | applyBridge (const Nice::PropertyBridgePtr &_bridge, const std::string &_name=std::string()) |
| Applies a new Bridge derived from Nice::PropertyBridge to this Property. More...
|
|
void | removeBridge (const std::string &_bridge="") |
| Removes a new Bridge derived from Nice::PropertyBridge to this Property. More...
|
|
Nice::PropertyBridgePtr | getBridge (const std::string &_name) |
| Get a Bridge from all assigned PropertyBridges of this Property. More...
|
|
template<typename BridgeType > |
IceUtil::Handle< BridgeType > | getBridge (const std::string &_name) |
| Get a Bridge of typename BridgeType. More...
|
|
bool | empty () const |
| Check if the Property value is empty. More...
|
|
std::string | toStringFull () const |
| Cast the Property value to a string with all its Attributes, Bridges and Actors. More...
|
|
std::string | toString () const |
| Cast the Property value to a string. More...
|
|
template<typename Type > |
bool | isType () |
| Checks if Property is of type T. More...
|
|
std::string | typeString () const |
| Get the stringified Property type. More...
|
|
template<typename Type > |
Type | get () const |
| Get the Property value of type T. More...
|
|
const Nice::Date & | timestamp () const |
| timestamp of last set. More...
|
|
template<typename Type > |
Type & | ref () |
| Get a const reference of the Property value of type T, type T must be exactly the one inside the property, otherwise it throws an exception! More...
|
|
Property & | swap (Property &r) |
| Swap the content of two Properties. More...
|
|
void | emitSignals (Nice::CompletionState _cs, Nice::I64 _setterId) |
| Whenever the Property value has changed all connected Properties have to be informed ans synchronized. More...
|
|
| Property (const Property &a) |
| Copy constructor. More...
|
|
| Property (const Nice::Any &a) |
| Copy constructor. More...
|
|
| Property (const char *value, const Nice::Date &=Nice::Date::now()) |
| Constructor for const char* type. More...
|
|
template<typename Type > |
| Property (const Type &value, const Nice::Date &=Nice::Date::now()) |
| Template constructor for any type. More...
|
|
template<typename Type > |
| Property (const std::string &value, const Nice::Date &=Nice::Date::now()) |
| Constructor for string type. More...
|
|
| ~Property () |
| Destructor. More...
|
|
Nice::I64 | id () |
| Get the unique ID of this Property. More...
|
|
| operator std::string () const |
| Casts a Property (value) to a string. More...
|
|
template<typename Type > |
| operator Type () const |
| Cast a Property to a new type T. More...
|
|
Nice::Mutex & | mutex () |
| Return the properties Mutex. More...
|
|
bool | operator== (const char *_value) |
| Equal operator compares the value of a property to a const char*. More...
|
|
template<typename E > |
bool | operator== (const E &_value) |
| Equal operator compares the value of a property to a type E. More...
|
|
bool | operator== (const Property &_value) |
| Equal operator compares two Properties. More...
|
|
Property & | operator= (const char *r) |
| Assignment operator assigns a const char* to the Property. More...
|
|
template<typename Type > |
Property & | operator= (const Type &_v) |
| Assignment operator assigns a value of type T to the Property. More...
|
|
Property & | operator= (Property &r) |
| Assignment operator assigns a value of a Property to this Property. More...
|
|
Nice::CompletionState | set (const char *_v, const Nice::Date &=Nice::Date::now()) |
| Assigns a const char* to this Property. More...
|
|
Nice::CompletionState | set (const char *_v, Nice::I64 _setterId, const Nice::Date &=Nice::Date::now()) |
| Assigns a const char* to this Property. More...
|
|
template<typename Type > |
Nice::CompletionState | set (const Type &_v, const Nice::Date &_date=Nice::Date::now()) |
| Assigns a value of type T to this Property. More...
|
|
template<typename Type > |
Nice::CompletionState | set (const Type &_v, Nice::I64 _setterId, const Nice::Date &_date=Nice::Date::now()) |
| Assigns a value of type T to this Property. More...
|
|
template<typename TypeClass > |
Nice::CompletionState | change (void(TypeClass::*_memfun)(), const Nice::Date &_date=Nice::Date::now()) |
| Change property throough member function. More...
|
|
template<typename TypeClass > |
Nice::CompletionState | change (void(TypeClass::*_memfun)(), Nice::I64 _setterId, const Nice::Date &_date=Nice::Date::now()) |
| Change property throough member function. More...
|
|
template<typename TypeClass , typename Type1 > |
Nice::CompletionState | change (void(TypeClass::*_memfun)(Type1), Type1 _v1, const Nice::Date &_date=Nice::Date::now()) |
| Change property throough member function. More...
|
|
template<typename TypeClass , typename Type1 > |
Nice::CompletionState | change (void(TypeClass::*_memfun)(const Type1 &), Type1 _v1, const Nice::Date &_date=Nice::Date::now()) |
| Change property throough member function. More...
|
|
template<typename TypeClass , typename Type1 > |
Nice::CompletionState | change (void(TypeClass::*_memfun)(Type1), Type1 _v1, Nice::I64 _setterId, const Nice::Date &_date=Nice::Date::now()) |
| Change property throough member function. More...
|
|
template<typename TypeClass , typename Type1 > |
Nice::CompletionState | change (void(TypeClass::*_memfun)(const Type1 &), Type1 _v1, Nice::I64 _setterId, const Nice::Date &_date=Nice::Date::now()) |
| Change property throough member function. More...
|
|
template<typename TypeClass , typename Type1 , typename TypeMemFn > |
Nice::CompletionState | change (TypeMemFn _memfun, Type1 _v1, const Nice::Date &_date=Nice::Date::now()) |
| Change property throough member function. More...
|
|
template<typename TypeClass , typename Type1 , typename TypeMemFn > |
Nice::CompletionState | change (TypeMemFn _memfun, Type1 _v1, Nice::I64 _setterId, const Nice::Date &_date=Nice::Date::now()) |
| Change property throough member function. More...
|
|
template<typename TypeClass , typename Type1 , typename Type2 , typename TypeMemFn > |
Nice::CompletionState | change (TypeMemFn _memfun, Type1 _v1, Type2 _v2, const Nice::Date &_date=Nice::Date::now()) |
| Change property throough member function. More...
|
|
template<typename TypeClass , typename Type1 , typename Type2 , typename TypeMemFn > |
Nice::CompletionState | change (TypeMemFn _memfun, Type1 _v1, Type2 _v2, Nice::I64 _setterId, const Nice::Date &_date=Nice::Date::now()) |
| Change property throough member function. More...
|
|
void | applyActor (const Nice::PropertyActorPtr &_actor) |
| Applys a Actor to the Property. More...
|
|
void | removeActor (const std::string &_name="") |
| Removes an Actor to the Property. More...
|
|
Nice::PropertyActorPtr | actor (const std::string &_name="") const |
| Get the Actor assigned to this Property. More...
|
|
template<typename Type > |
const IceUtil::Handle< Type > & | actor (const std::string &_name="") |
| Get the Actor assigned to this Property. More...
|
|
const std::list< Nice::PropertyActorPtr > & | actorList () |
| Return actor list applied to this property. More...
|
|
template<typename Type > |
void | setAttribute (const std::string &_key, const Type &_attr, const Nice::Date &=Nice::Date::now()) |
| Apply an Attribute of Type to the Property. More...
|
|
PropertyPtr | applyAttribute (const std::string &_key, const PropertyPtr &_attr) |
| Apply an Attribute to the Property. More...
|
|
PropertyPtr | applyAttribute (const std::string &_key, const char *_attr) |
| Apply an Attribute to the Property. More...
|
|
template<typename Type > |
PropertyPtr | applyAttribute (const std::string &_key, const Type &_attr, const Nice::Date &=Nice::Date::now()) |
| Apply an Attribute of Type to the Property. More...
|
|
PropertyPtr | attribute (const std::string &_key) const |
| Get the Attribute assigned to this Property. More...
|
|
const PropertyPtr & | getAttribute (const std::string &_key) const |
| Get the Attribute assigned to this Property. More...
|
|
template<typename Type > |
Type | getAttribute (const std::string &_key) |
| Get the Attribute assigned to this Property. More...
|
|
template<typename Type > |
Type | getAttributeWithDefault (const std::string &_key, const Type &_attr, const Nice::Date &=Nice::Date::now()) |
| Get the Attribute assigned to this Property. More...
|
|
void | removeAttribute (const std::string &_attr="") |
| Removes a Property Attribute. More...
|
|
const std::map< std::string, PropertyPtr > & | attributeMap () |
| Return actor list applied to this property. More...
|
|
void | applyBridge (const Nice::PropertyBridgePtr &_bridge, const std::string &_name=std::string()) |
| Applies a new Bridge derived from Nice::PropertyBridge to this Property. More...
|
|
void | removeBridge (const std::string &_bridge="") |
| Removes a new Bridge derived from Nice::PropertyBridge to this Property. More...
|
|
Nice::PropertyBridgePtr | getBridge (const std::string &_name) |
| Get a Bridge from all assigned PropertyBridges of this Property. More...
|
|
template<typename BridgeType > |
IceUtil::Handle< BridgeType > | getBridge (const std::string &_name) |
| Get a Bridge of typename BridgeType. More...
|
|
bool | empty () const |
| Check if the Property value is empty. More...
|
|
std::string | toStringFull () const |
| Cast the Property value to a string with all its Attributes, Bridges and Actors. More...
|
|
std::string | toString () const |
| Cast the Property value to a string. More...
|
|
template<typename Type > |
bool | isType () |
| Checks if Property is of type T. More...
|
|
std::string | typeString () const |
| Get the stringified Property type. More...
|
|
template<typename Type > |
Type | get () const |
| Get the Property value of type T. More...
|
|
const Nice::Date & | timestamp () const |
| timestamp of last set. More...
|
|
template<typename Type > |
Type & | ref () |
| Get a const reference of the Property value of type T, type T must be exactly the one inside the property, otherwise it throws an exception! More...
|
|
Property & | swap (Property &r) |
| Swap the content of two Properties. More...
|
|
template<> |
std::string | get () const |
| Overloaded Property::get() function for strings. More...
|
|
template<> |
Nice::Any | get () const |
|
template<> |
const Nice::Any & | get () const |
|
template<typename Type > |
Nice::Property & | operator= (const Type &_v) |
|
template<typename Type > |
Nice::PropertyPtr | applyAttribute (const std::string &_key, const Type &_attr, const Nice::Date &_date) |
|