Tango Core Classes Reference  9.3.3
Tango::DoubleAttrProp< T > Class Template Reference

This class represents a Tango compound attribute property which consists of two values. More...

#include "tango.h"

Inheritance diagram for Tango::DoubleAttrProp< T >:

Public Member Functions

Constructors

Miscellaneous constructors

 DoubleAttrProp ()
 Default constructor.
 
 DoubleAttrProp (const vector< T > &values)
 Create a new DoubleAttrProp object. More...
 
 DoubleAttrProp (const T &value)
 Create a new DoubleAttrProp object. More...
 
 DoubleAttrProp (const char *value_str)
 Create a new DoubleAttrProp object. More...
 
 DoubleAttrProp (const string &value_str)
 Create a new DoubleAttrProp object. More...
 
Assignment operators

These operators allow to assign the values of the compound attribute property by providing the values or their string representations.

DoubleAttrPropoperator= (const vector< T > &values)
 Assign the values of the compound attribute property. More...
 
DoubleAttrPropoperator= (const T &value)
 Assign the values of the compound attribute property. More...
 
DoubleAttrPropoperator= (const char *value_str)
 Assign the values of the compound attribute property. More...
 
DoubleAttrPropoperator= (const string &value_str)
 Assign the values of the compound attribute property. More...
 
Get/Set object members.

These methods allow the external world to get/set DoubleAttrProp instance data members

vector< T > get_val ()
 Get the vector containing the compound attribute property values. More...
 
string & get_str ()
 Get string representation of the compound attribute property values. More...
 
void set_val (const vector< T > &values)
 Set the compound attribute property values. More...
 
void set_val (const T &value)
 Set the compound attribute property values. More...
 
void set_str (const char *value_str)
 Set string representation of the compound attribute property values. More...
 
void set_str (const string &value_str)
 Set string representation of the compound attribute property values. More...
 
Check method

A method returning a boolean flag set to true if the compound attribute property values have been assigned.

bool is_val ()
 Check if the compound attribute property values have been assigned. More...
 

Detailed Description

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

This class represents a Tango compound attribute property which consists of two values.

Author
trogucki
Revision
19431

Constructor & Destructor Documentation

◆ DoubleAttrProp() [1/4]

template<typename T>
Tango::DoubleAttrProp< T >::DoubleAttrProp ( const vector< T > &  values)
inline

Create a new DoubleAttrProp object.

Parameters
valuesA vector containing two values of the compound attribute property.

◆ DoubleAttrProp() [2/4]

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

Create a new DoubleAttrProp object.

Parameters
valueThe figure assigned to both values of the compound attribute property.

◆ DoubleAttrProp() [3/4]

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

Create a new DoubleAttrProp object.

Parameters
value_strThe 'C string' representation of values of the compound attribute property.

◆ DoubleAttrProp() [4/4]

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

Create a new DoubleAttrProp object.

Parameters
value_strThe string representation of values of the compound attribute property.

Member Function Documentation

◆ get_str()

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

Get string representation of the compound attribute property values.

Returns
The string representation of the compound attribute property values.

◆ get_val()

template<typename T>
vector<T> Tango::DoubleAttrProp< T >::get_val ( )
inline

Get the vector containing the compound attribute property values.

Returns
The vector containing the compound attribute property values.

◆ is_val()

template<typename T>
bool Tango::DoubleAttrProp< T >::is_val ( )
inline

Check if the compound attribute property values have been assigned.

This method returns a boolean set to true if the compound attribute property values have been assigned.

Returns
A boolean set to true if the compound attribute property values have been assigned

◆ operator=() [1/4]

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

Assign the values of the compound attribute property.

Parameters
value_strA 'C string' representation of values of the compound attribute property.
Returns
DoubleAttrProp object with string representation of values of the compound attribute property set.

◆ operator=() [2/4]

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

Assign the values of the compound attribute property.

Parameters
value_strA string representation of values of the compound attribute property.
Returns
DoubleAttrProp object with string representation of values of the compound attribute property set.

◆ operator=() [3/4]

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

Assign the values of the compound attribute property.

Parameters
valueA figure representing both values of the compound attribute property.
Returns
DoubleAttrProp object with both values of the compound attribute property and their string representation set.

◆ operator=() [4/4]

template<typename T>
DoubleAttrProp& Tango::DoubleAttrProp< T >::operator= ( const vector< T > &  values)
inline

Assign the values of the compound attribute property.

Parameters
valuesA vector containing compound attribute property values.
Returns
DoubleAttrProp object with both values of the compound attribute property and their string representation set.

◆ set_str() [1/2]

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

Set string representation of the compound attribute property values.

Parameters
value_strThe 'C string' representation of the compound attribute property values.

◆ set_str() [2/2]

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

Set string representation of the compound attribute property values.

Parameters
value_strThe string representation of the compound attribute property values.

◆ set_val() [1/2]

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

Set the compound attribute property values.

The figure provided is set for both values of the compound attribute property and is automatically converted to its string representation.

Parameters
valueThe figure representing both values of the compound attribute property.

◆ set_val() [2/2]

template<typename T>
void Tango::DoubleAttrProp< T >::set_val ( const vector< T > &  values)
inline

Set the compound attribute property values.

The values are automatically converted to their string representation.

Parameters
valuesThe vector containing the compound attribute property values.

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