21 #include "ChannelMetaDataObject.h"
25 namespace WITSML2_0_NS
70 DLL_IMPORT_OR_EXPORT
virtual void pushBackChannelIndex(gsoap_eml2_1::witsml20__ChannelIndexType indexType, gsoap_eml2_1::eml21__UnitOfMeasure uom,
const std::string & mnemonic,
bool isIncreasing =
true,
const std::string & datum =
"") = 0;
78 const size_t result =
static_cast<T*
>(this->gsoapProxy2_1)->Index.size();
79 if (result > (std::numeric_limits<unsigned int>::max)()) {
80 throw std::range_error(
"There are too much channel index.");
83 return static_cast<unsigned int>(result);
96 if (index >= getChannelIndexCount()) {
97 throw std::out_of_range(
"The channel index is out of range");
99 return static_cast<T*
>(this->gsoapProxy2_1)->Index[index]->IndexType;
112 if (index >= getChannelIndexCount()) {
113 throw std::out_of_range(
"The channel index is out of range");
115 return static_cast<T*
>(this->gsoapProxy2_1)->Index[index]->Uom;
128 if (index >= getChannelIndexCount()) {
129 throw std::out_of_range(
"The channel index is out of range");
131 return static_cast<T*
>(this->gsoapProxy2_1)->Index[index]->Direction == gsoap_eml2_1::witsml20__IndexDirection__increasing;
144 if (index >= getChannelIndexCount()) {
145 throw std::out_of_range(
"The channel index is out of range");
147 return static_cast<T*
>(this->gsoapProxy2_1)->Index[index]->Mnemonic;
160 if (index >= getChannelIndexCount()) {
161 throw std::out_of_range(
"The channel index is out of range");
163 return static_cast<T*
>(this->gsoapProxy2_1)->Index[index]->DatumReference ==
nullptr ?
"" : *
static_cast<T*
>(this->gsoapProxy2_1)->Index[index]->DatumReference;
Definition: ChannelIndexDataObject.h:36
unsigned int getChannelIndexCount() const
Definition: ChannelIndexDataObject.h:77
virtual void pushBackChannelIndex(gsoap_eml2_1::witsml20__ChannelIndexType indexType, gsoap_eml2_1::eml21__UnitOfMeasure uom, const std::string &mnemonic, bool isIncreasing=true, const std::string &datum="")=0
ChannelIndexDataObject(gsoap_resqml2_0_1::eml20__DataObjectReference *partialObject)
Definition: ChannelIndexDataObject.h:46
ChannelIndexDataObject(gsoap_eml2_1::eml21__AbstractObject *fromGsoap)
Definition: ChannelIndexDataObject.h:56
bool getChannelIndexIsIncreasing(unsigned int index)
Definition: ChannelIndexDataObject.h:127
virtual ~ChannelIndexDataObject()=default
gsoap_eml2_1::witsml20__ChannelIndexType getChannelIndexType(unsigned int index)
Definition: ChannelIndexDataObject.h:95
std::string getChannelIndexMnemonic(unsigned int index)
Definition: ChannelIndexDataObject.h:143
ChannelIndexDataObject()
Definition: ChannelIndexDataObject.h:49
std::string getChannelIndexDatum(unsigned int index)
Definition: ChannelIndexDataObject.h:159
std::string getChannelIndexUom(unsigned int index)
Definition: ChannelIndexDataObject.h:111