22 #include "../proxies/gsoap_eml2_2H.h"
24 #include "../nsDefinitions.h"
26 #if defined(_WIN32) && !defined(FESAPI_STATIC)
27 #if defined(FesapiCpp_EXPORTS) || defined(FesapiCppUnderDev_EXPORTS)
28 #define DLL_IMPORT_OR_EXPORT __declspec(dllexport)
30 #define DLL_IMPORT_OR_EXPORT __declspec(dllimport)
33 #define DLL_IMPORT_OR_EXPORT
36 #include "../MacroDefinitions.h"
38 namespace PRODML2_1_NS
52 PvtSpecification(gsoap_eml2_2::prodml21__AbstractPvtModel* fromGsoap): gsoapProxy(fromGsoap){}
65 if (
static_cast<gsoap_eml2_2::prodml21__AbstractPvtModel*
>(gsoapProxy)->PvtModelParameterSet ==
nullptr) {
69 size_t count =
static_cast<gsoap_eml2_2::prodml21__AbstractPvtModel*
>(gsoapProxy)->PvtModelParameterSet->Coefficient.size();
70 if (count > (std::numeric_limits<unsigned int>::max)()) {
71 throw std::out_of_range(
"There are too much coefficient");
73 return static_cast<unsigned int>(count);
87 if (index >= getCoefficientCount()) {
88 throw std::out_of_range(
"The index is out of range");
91 return static_cast<gsoap_eml2_2::prodml21__AbstractPvtModel*
>(gsoapProxy)->PvtModelParameterSet->Coefficient[index]->__item;
101 DLL_IMPORT_OR_EXPORT gsoap_eml2_2::prodml21__PvtModelParameterKind
getCoefficientKind(
unsigned int index)
const;
114 if (index >= getCoefficientCount()) {
115 throw std::out_of_range(
"The index is out of range");
118 return static_cast<gsoap_eml2_2::prodml21__AbstractPvtModel*
>(gsoapProxy)->PvtModelParameterSet->Coefficient[index]->name !=
nullptr;
132 if (!hasCoefficientName(index)) {
133 throw std::invalid_argument(
"Ther is no coefficient name at this index");
136 return *
static_cast<gsoap_eml2_2::prodml21__AbstractPvtModel*
>(gsoapProxy)->PvtModelParameterSet->Coefficient[index]->name;
146 DLL_IMPORT_OR_EXPORT
void pushBackCoefficient(
double value, gsoap_eml2_2::prodml21__PvtModelParameterKind kind,
const std::string & name =
"");
Definition: PvtSpecification.h:42
std::string getCoefficientName(unsigned int index) const
Definition: PvtSpecification.h:130
void pushBackCoefficient(double value, gsoap_eml2_2::prodml21__PvtModelParameterKind kind, const std::string &name="")
gsoap_eml2_2::prodml21__AbstractPvtModel * gsoapProxy
Definition: PvtSpecification.h:45
virtual ~PvtSpecification()=default
gsoap_eml2_2::prodml21__PvtModelParameterKind getCoefficientKind(unsigned int index) const
unsigned int getCoefficientCount() const
Definition: PvtSpecification.h:64
bool hasCoefficientName(unsigned int index) const
Definition: PvtSpecification.h:112
PvtSpecification(gsoap_eml2_2::prodml21__AbstractPvtModel *fromGsoap)
Definition: PvtSpecification.h:52
double getCoefficientValue(unsigned int index) const
Definition: PvtSpecification.h:85