Tango Core Classes Reference  9.3.4
Tango::AttrProp< T > Class Template Reference

This class represents a Tango attribute property. More...

#include "tango.h"

Inheritance diagram for Tango::AttrProp< T >:

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.

AttrPropoperator= (const T &value)
 Assign the value of the attribute property. More...
 
AttrPropoperator= (const char *value_str)
 Assign the string representation of the attribute property value. More...
 
AttrPropoperator= (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

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...
 

Detailed Description

template<typename T>
class Tango::AttrProp< T >

This class represents a Tango attribute property.

Author
trogucki
Revision
19431

Constructor & Destructor Documentation

◆ AttrProp() [1/3]

template<typename T >
Tango::AttrProp< T >::AttrProp ( const T &  value)
inline

Create a new AttrProp object.

Parameters
valueThe attribute property value.

◆ AttrProp() [2/3]

template<typename T >
Tango::AttrProp< T >::AttrProp ( const char *  value_str)
inline

Create a new AttrProp object.

Parameters
value_strThe 'C string' representation of attribute property.

◆ AttrProp() [3/3]

template<typename T >
Tango::AttrProp< T >::AttrProp ( const string &  value_str)
inline

Create a new AttrProp object.

Parameters
value_strThe string representation of attribute property value.

Member Function Documentation

◆ get_str()

template<typename T >
string& Tango::AttrProp< T >::get_str ( )
inline

Get string representation of the attribute property value.

Returns
The string representation of the attribute property value.

◆ get_val()

template<typename T >
T Tango::AttrProp< T >::get_val ( )
inline

Get the attribute property value.

Returns
The attribute property value.

◆ is_val()

template<typename T >
bool Tango::AttrProp< T >::is_val ( )
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.

Returns
A boolean set to true if the attribute property value has been assigned

◆ operator=() [1/3]

template<typename T >
AttrProp& Tango::AttrProp< T >::operator= ( const char *  value_str)
inline

Assign the string representation of the attribute property value.

Parameters
value_strA 'C string' representation of the attribute property value.
Returns
AttrProp object with the string representation of its value set.

◆ operator=() [2/3]

template<typename T >
AttrProp& Tango::AttrProp< T >::operator= ( const string &  value_str)
inline

Assign the string representation of the attribute property value.

Parameters
value_strA string representation of the attribute property value.
Returns
AttrProp object with the string representation of its value set.

◆ operator=() [3/3]

template<typename T >
AttrProp& Tango::AttrProp< T >::operator= ( const T &  value)
inline

Assign the value of the attribute property.

Parameters
valueA value of the attribute property.
Returns
AttrProp object with both value and its string representation set.

◆ set_str() [1/2]

template<typename T >
void Tango::AttrProp< T >::set_str ( const char *  value_str)
inline

Set string representation of the attribute property value.

Parameters
value_strThe the 'C string' representation of the attribute property value.

◆ set_str() [2/2]

template<typename T >
void Tango::AttrProp< T >::set_str ( const string &  value_str)
inline

Set string representation of the attribute property value.

Parameters
value_strThe the string representation of the attribute property value.

◆ set_val()

template<typename T >
void Tango::AttrProp< T >::set_val ( const T &  value)
inline

Set the attribute property value.

The value is automatically converted to its string representation.

Parameters
valueThe value of the attribute property.

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