PROFINET IO Controller Stack 1.0.0
Modern C++ implementation of a PROFINET IO Controller stack
Loading...
Searching...
No Matches
profinet::gsdml::GSDMLDataItem Struct Reference

One I/O data item within a submodule's cyclic data (GSDML DataItem element). More...

#include <gsdml.h>

+ Collaboration diagram for profinet::gsdml::GSDMLDataItem:

Public Attributes

std::string dataType
 GSDML DataType attribute, e.g. "Unsigned8", "Integer16", "OctetString".
 
std::string textId
 Human-readable text ID/name for this item, if the GSDML supplied one.
 
std::string name
 Human-readable name for this item in default language, if the GSDML supplied one.
 
int length = 0
 Length in bytes of this item.
 
int byteOffset = 0
 
bool useAsBits = false
 
std::vector< GSDMLBitDataItem > bitDataItems
 Individual BitDataItem definitions belonging to this DataItem.
 

Detailed Description

One I/O data item within a submodule's cyclic data (GSDML DataItem element).

Definition at line 34 of file gsdml.h.

Member Data Documentation

◆ bitDataItems

std::vector<GSDMLBitDataItem> profinet::gsdml::GSDMLDataItem::bitDataItems

Individual BitDataItem definitions belonging to this DataItem.

The vector preserves the bit definitions from the GSDML. These become separate logical IoSignal instances in IoSignalCatalog.

Definition at line 59 of file gsdml.h.

◆ byteOffset

int profinet::gsdml::GSDMLDataItem::byteOffset = 0

Definition at line 50 of file gsdml.h.

◆ dataType

std::string profinet::gsdml::GSDMLDataItem::dataType

GSDML DataType attribute, e.g. "Unsigned8", "Integer16", "OctetString".

Definition at line 37 of file gsdml.h.

Referenced by profinet::sim::test::MakeScalarItem().

◆ length

int profinet::gsdml::GSDMLDataItem::length = 0

Length in bytes of this item.

For OctetString/VisibleString types this comes from the GSDML Length attribute; for fixed-width types it's looked up from the DataType name (see gsdml.cpp's type-size table).

Definition at line 48 of file gsdml.h.

Referenced by profinet::sim::test::MakeScalarItem().

◆ name

std::string profinet::gsdml::GSDMLDataItem::name

Human-readable name for this item in default language, if the GSDML supplied one.

Definition at line 42 of file gsdml.h.

◆ textId

std::string profinet::gsdml::GSDMLDataItem::textId

Human-readable text ID/name for this item, if the GSDML supplied one.

Definition at line 39 of file gsdml.h.

Referenced by profinet::sim::test::MakeScalarItem().

◆ useAsBits

bool profinet::gsdml::GSDMLDataItem::useAsBits = false

Definition at line 52 of file gsdml.h.


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