21#include "ChannelMetaDataObject.h"
69 DLL_IMPORT_OR_EXPORT
virtual void pushBackChannelIndex(gsoap_eml2_3::eml23__DataIndexKind indexKind, gsoap_eml2_3::eml23__UnitOfMeasure uom,
const std::string & mnemonic,
bool isIncreasing =
true) = 0;
77 const size_t result =
static_cast<T*
>(this->gsoapProxy2_3)->Index.size();
78 if (result > (std::numeric_limits<unsigned int>::max)()) {
79 throw std::range_error(
"There are too much channel index.");
82 return static_cast<unsigned int>(result);
95 if (index >= getChannelIndexCount()) {
96 throw std::out_of_range(
"The channel index is out of range");
98 return static_cast<T*
>(this->gsoapProxy2_3)->Index[index]->IndexKind;
111 if (index >= getChannelIndexCount()) {
112 throw std::out_of_range(
"The channel index is out of range");
114 return static_cast<T*
>(this->gsoapProxy2_3)->Index[index]->Uom;
127 if (index >= getChannelIndexCount()) {
128 throw std::out_of_range(
"The channel index is out of range");
130 return static_cast<T*
>(this->gsoapProxy2_3)->Index[index]->Direction == gsoap_eml2_3::eml23__IndexDirection::increasing;
143 if (index >= getChannelIndexCount()) {
144 throw std::out_of_range(
"The channel index is out of range");
146 return static_cast<T*
>(this->gsoapProxy2_3)->Index[index]->Mnemonic;
Definition ChannelIndexDataObject.h:36
bool getChannelIndexIsIncreasing(unsigned int index)
Definition ChannelIndexDataObject.h:126
gsoap_eml2_3::eml23__DataIndexKind getChannelIndexKind(unsigned int index)
Definition ChannelIndexDataObject.h:94
ChannelIndexDataObject(gsoap_eml2_3::eml23__AbstractObject *fromGsoap)
Definition ChannelIndexDataObject.h:56
unsigned int getChannelIndexCount() const
Definition ChannelIndexDataObject.h:76
virtual ~ChannelIndexDataObject()=default
std::string getChannelIndexUom(unsigned int index)
Definition ChannelIndexDataObject.h:110
virtual void pushBackChannelIndex(gsoap_eml2_3::eml23__DataIndexKind indexKind, gsoap_eml2_3::eml23__UnitOfMeasure uom, const std::string &mnemonic, bool isIncreasing=true)=0
std::string getChannelIndexMnemonic(unsigned int index)
Definition ChannelIndexDataObject.h:142
ChannelIndexDataObject()
Definition ChannelIndexDataObject.h:49
ChannelIndexDataObject(gsoap_resqml2_0_1::eml20__DataObjectReference *partialObject)
Definition ChannelIndexDataObject.h:46