#include <utils.h>
|
int | entity_id_ |
|
int | id_ |
|
VariableDescription_DataType | type_ |
|
size_t | type_size_ |
|
uint64_t | data_size_ = 0 |
|
uint64_t | data_length_ = 0 |
|
std::vector< uint64_t > | dimensions_ |
|
std::string | opcode_handle_ |
|
|
class | MsgData |
|
std::ostream & | operator<< (std::ostream &output, const MetaData &meta_data) |
|
MetaData is a class to store the meta-data of messages. Especially used for storing of available commands and their descriptions. Additionally gives access to convenience funtions, like VariableDescription message parsing.
Definition at line 69 of file AERA/IODevices/TCP/AERA_Protobuf/utils.h.
◆ MetaData() [1/2]
◆ MetaData() [2/2]
tcp_io_device::MetaData::MetaData |
( |
int |
entity_id, |
|
|
int |
name_id, |
|
|
VariableDescription_DataType |
t, |
|
|
std::vector< uint64_t > |
dimensions, |
|
|
std::string |
opcode_handle = "" |
|
) |
| |
|
inline |
Constructor for MetaData objects. Best only used to create the objects when first initializing the communicaiton. To parse incoming messages please see the other constructor.
- Parameters
-
entity | An identifier describing the entity to which this MetaData objects is related. |
name | An identifier for the name of the data. |
t | The VariableDescription_DataType of the data. |
dimensions | The dimensionality of the data associated with this MetaData object. |
Definition at line 106 of file AERA/IODevices/TCP/AERA_Protobuf/utils.h.
◆ getDataLength()
uint64_t tcp_io_device::MetaData::getDataLength |
( |
| ) |
|
|
inline |
◆ getDataSize()
uint64_t tcp_io_device::MetaData::getDataSize |
( |
| ) |
|
|
inline |
◆ getDimensions()
std::vector<uint64_t> tcp_io_device::MetaData::getDimensions |
( |
| ) |
|
|
inline |
◆ getEntityID()
int tcp_io_device::MetaData::getEntityID |
( |
| ) |
|
|
inline |
◆ getID()
int tcp_io_device::MetaData::getID |
( |
| ) |
|
|
inline |
◆ getOpCodeHandle()
std::string tcp_io_device::MetaData::getOpCodeHandle |
( |
| ) |
|
|
inline |
◆ getType()
VariableDescription_DataType tcp_io_device::MetaData::getType |
( |
| ) |
|
|
inline |
◆ setMetaData()
void tcp_io_device::MetaData::setMetaData |
( |
int |
entity_id, |
|
|
int |
id, |
|
|
VariableDescription_DataType |
t, |
|
|
std::vector< uint64_t > |
d, |
|
|
std::string |
opcode_handle = "" |
|
) |
| |
|
inline |
Sets the fields of the MetaData object.
- Parameters
-
entity_id | The id of the entity as received in the setup message. |
id | The id of the property as received in the setup message. |
t | The data type of the data (e.g. DOUBLE, INT, or similar). |
d | The dimensions of the data. |
Definition at line 158 of file AERA/IODevices/TCP/AERA_Protobuf/utils.h.
The documentation for this class was generated from the following file: