Tango Core Classes Reference
9.3.4
|
This class represents a Tango attribute property. More...
#include "tango.h"
Public Member Functions | |
Constructors | |
Miscellaneous constructors | |
AttrProp () | |
Default constructor. | |
AttrProp (const T &value) | |
Create a new AttrProp object. More... | |
AttrProp (const char *value_str) | |
Create a new AttrProp object. More... | |
AttrProp (const string &value_str) | |
Create a new AttrProp object. More... | |
Assignment operators | |
These operators allow to assign the value of the property by providing the value or its string representation. | |
AttrProp & | operator= (const T &value) |
Assign the value of the attribute property. More... | |
AttrProp & | operator= (const char *value_str) |
Assign the string representation of the attribute property value. More... | |
AttrProp & | operator= (const string &value_str) |
Assign the string representation of the attribute property value. More... | |
Get/Set object members. | |
These methods allow the external world to get/set AttrProp instance data members | |
T | get_val () |
Get the attribute property value. More... | |
string & | get_str () |
Get string representation of the attribute property value. More... | |
void | set_val (const T &value) |
Set the attribute property value. More... | |
void | set_str (const char *value_str) |
Set string representation of the attribute property value. More... | |
void | set_str (const string &value_str) |
Set string representation of the attribute property value. More... | |
Check method | |
A method returning a boolean flag set to true if the attribute property value has been assigned. | |
bool | is_val () |
Check if the attribute property value has been assigned. More... | |
This class represents a Tango attribute property.
|
inline |
Create a new AttrProp object.
value | The attribute property value. |
|
inline |
Create a new AttrProp object.
value_str | The 'C string' representation of attribute property. |
|
inline |
Create a new AttrProp object.
value_str | The string representation of attribute property value. |
|
inline |
Get string representation of the attribute property value.
|
inline |
Get the attribute property value.
|
inline |
Check if the attribute property value has been assigned.
This method returns a boolean set to true if the attribute property value has been assigned.
|
inline |
Assign the string representation of the attribute property value.
value_str | A 'C string' representation of the attribute property value. |
|
inline |
Assign the string representation of the attribute property value.
value_str | A string representation of the attribute property value. |
|
inline |
Assign the value of the attribute property.
value | A value of the attribute property. |
|
inline |
Set string representation of the attribute property value.
value_str | The the 'C string' representation of the attribute property value. |
|
inline |
Set string representation of the attribute property value.
value_str | The the string representation of the attribute property value. |
|
inline |
Set the attribute property value.
The value is automatically converted to its string representation.
value | The value of the attribute property. |