Tango Core Classes Reference  9.3.4
Tango::GroupCmdReply Class Reference

Single element group reply for a command execution. More...

#include "tango.h"

Inheritance diagram for Tango::GroupCmdReply:
Collaboration diagram for Tango::GroupCmdReply:

Public Member Functions

bool extract (std::vector< DevLong > &vl, std::vector< std::string > &vs)
 Get command data and extract them (DevVarLongStringArray) More...
 
bool extract (std::vector< double > &vd, std::vector< std::string > &vs)
 Get command data and extract them (DevVarDoubleStringArray) More...
 
DeviceDataget_data ()
 Get command data. More...
 
template<typename T >
bool operator>> (T &dest)
 Get command data and extract them. More...
 
- Public Member Functions inherited from Tango::GroupReply
const std::string & dev_name () const
 Get device name. More...
 
const DevErrorList & get_err_stack () const
 Get error stack. More...
 
bool has_failed () const
 Check if an error has occurred. More...
 
const std::string & obj_name () const
 Get object name. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Tango::GroupReply
static bool enable_exception (bool exception_mode=true)
 Enable/Disable exception. More...
 

Detailed Description

Single element group reply for a command execution.

$Author$ $Revision$

Member Function Documentation

◆ extract() [1/2]

bool Tango::GroupCmdReply::extract ( std::vector< DevLong > &  vl,
std::vector< std::string > &  vs 
)

Get command data and extract them (DevVarLongStringArray)

Get command result for a device member of a group hierarchy and extract them in the provided variable in case the command returns a data of the DevVarLongStringArray type

Parameters
[out]vlThe array of DevLong part of the DevVarLongStringArray
[out]vsThe array of string part of the DevVarLongStringArray data
Returns
Flag set to true if the extraction succeeds

◆ extract() [2/2]

bool Tango::GroupCmdReply::extract ( std::vector< double > &  vd,
std::vector< std::string > &  vs 
)

Get command data and extract them (DevVarDoubleStringArray)

Get command result for a device member of a group hierarchy and extract them in the provided variable in case the command returns a data of the DevVarDoubleStringArray type

Parameters
[out]vdThe array of DevDouble part of the DevVarDoubleStringArray
[out]vsThe array of string part of the DevVarDoubleStringArray data
Returns
Flag set to true if the extraction succeeds

◆ get_data()

DeviceData& Tango::GroupCmdReply::get_data ( )

Get command data.

Get command result for a device member of a group hierarchy

Returns
The command data

◆ operator>>()

template<typename T >
bool Tango::GroupCmdReply::operator>> ( T &  dest)

Get command data and extract them.

Get command result for a device member of a group hierarchy and extract them in the provided variable

Parameters
[out]destThe variable in which the data should be extracted
Returns
Flag set to true if the extraction succeeds

References DeviceData::exceptions().


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