@@ -894,8 +894,8 @@ void AbstractObject::readArrayNdOfFloatValues(gsoap_resqml2_0_1::resqml20__Abstr
894894 else if (soapType == SOAP_TYPE_gsoap_resqml2_0_1_resqml20__DoubleLatticeArray)
895895 {
896896 gsoap_resqml2_0_1::resqml20__DoubleLatticeArray const * latticeArray = static_cast <gsoap_resqml2_0_1::resqml20__DoubleLatticeArray const *>(arrayInput);
897- if (latticeArray->Offset .size () > 1 ) {
898- throw invalid_argument (" The integer lattice array contains more than one offset." );
897+ if (latticeArray->Offset .size () != 1 ) {
898+ throw invalid_argument (" The double lattice array contains zero or more than one offset." );
899899 }
900900 if (latticeArray->StartValue < (std::numeric_limits<float >::min)() || latticeArray->StartValue > (std::numeric_limits<float >::max)()) {
901901 throw out_of_range (" The double start value of the lattice array " + std::to_string (latticeArray->StartValue ) + " is out of float range value" );
@@ -938,7 +938,7 @@ void AbstractObject::readArrayNdOfFloatValues(gsoap_eml2_3::eml23__AbstractFloat
938938 {
939939 gsoap_eml2_3::eml23__FloatingPointLatticeArray const * latticeArray = static_cast <gsoap_eml2_3::eml23__FloatingPointLatticeArray const *>(arrayInput);
940940 if (latticeArray->Offset .empty () || latticeArray->Offset .size () > 1 ) {
941- throw invalid_argument (" The integer lattice array of UUID " + getUuid () + " contains zero or more than one offset." );
941+ throw invalid_argument (" The floating point lattice array of UUID " + getUuid () + " contains zero or more than one offset." );
942942 }
943943 if (latticeArray->StartValue < (std::numeric_limits<float >::min)() || latticeArray->StartValue >(std::numeric_limits<float >::max)()) {
944944 throw out_of_range (" The double start value of the lattice array " + std::to_string (latticeArray->StartValue ) + " is out of float range value" );
@@ -998,8 +998,8 @@ void AbstractObject::readArrayNdOfDoubleValues(gsoap_resqml2_0_1::resqml20__Abst
998998 else if (soapType == SOAP_TYPE_gsoap_resqml2_0_1_resqml20__DoubleLatticeArray)
999999 {
10001000 gsoap_resqml2_0_1::resqml20__DoubleLatticeArray const * latticeArray = static_cast <gsoap_resqml2_0_1::resqml20__DoubleLatticeArray const *>(arrayInput);
1001- if (latticeArray->Offset .size () > 1 ) {
1002- throw invalid_argument (" The integer lattice array contains more than one offset." );
1001+ if (latticeArray->Offset .size () != 1 ) {
1002+ throw invalid_argument (" The double lattice array contains zero or more than one offset." );
10031003 }
10041004
10051005 const double start = latticeArray->StartValue ;
@@ -1035,8 +1035,8 @@ void AbstractObject::readArrayNdOfDoubleValues(gsoap_eml2_3::eml23__AbstractFloa
10351035 case SOAP_TYPE_gsoap_eml2_3_eml23__FloatingPointLatticeArray:
10361036 {
10371037 gsoap_eml2_3::eml23__FloatingPointLatticeArray const * latticeArray = static_cast <gsoap_eml2_3::eml23__FloatingPointLatticeArray const *>(arrayInput);
1038- if (latticeArray->Offset .size () > 1 ) {
1039- throw invalid_argument (" The integer lattice array contains more than one offset." );
1038+ if (latticeArray->Offset .size () != 1 ) {
1039+ throw invalid_argument (" The floating point lattice array contains zero or more than one offset." );
10401040 }
10411041 const double start = latticeArray->StartValue ;
10421042 const double step = latticeArray->Offset [0 ]->Value ;
@@ -1410,8 +1410,8 @@ uint64_t AbstractObject::getCountOfArray(gsoap_resqml2_0_1::resqml20__AbstractVa
14101410 else if (soapType == SOAP_TYPE_gsoap_resqml2_0_1_resqml20__IntegerLatticeArray)
14111411 {
14121412 gsoap_resqml2_0_1::resqml20__IntegerLatticeArray const * latticeArray = static_cast <gsoap_resqml2_0_1::resqml20__IntegerLatticeArray const *>(arrayInput);
1413- if (latticeArray->Offset .size () > 1 ) {
1414- throw invalid_argument (" The integer lattice array contains more than one offset." );
1413+ if (latticeArray->Offset .size () != 1 ) {
1414+ throw invalid_argument (" The integer lattice array contains zero or more than one offset." );
14151415 }
14161416 return latticeArray->Offset [0 ]->Count + 1 ;
14171417 }
@@ -1431,8 +1431,8 @@ uint64_t AbstractObject::getCountOfArray(gsoap_resqml2_0_1::resqml20__AbstractVa
14311431 else if (soapType == SOAP_TYPE_gsoap_resqml2_0_1_resqml20__DoubleLatticeArray)
14321432 {
14331433 gsoap_resqml2_0_1::resqml20__DoubleLatticeArray const * latticeArray = static_cast <gsoap_resqml2_0_1::resqml20__DoubleLatticeArray const *>(arrayInput);
1434- if (latticeArray->Offset .size () > 1 ) {
1435- throw invalid_argument (" The lattice array contains more than one offset." );
1434+ if (latticeArray->Offset .size () != 1 ) {
1435+ throw invalid_argument (" The double lattice array contains zero or more than one offset." );
14361436 }
14371437 return static_cast <gsoap_resqml2_0_1::resqml20__DoubleLatticeArray const *>(arrayInput)->Offset [0 ]->Count + 1 ;
14381438 }
@@ -1481,8 +1481,8 @@ uint64_t AbstractObject::getCountOfArray(gsoap_eml2_3::eml23__AbstractValueArray
14811481 else if (soapType == SOAP_TYPE_gsoap_eml2_3_eml23__IntegerLatticeArray)
14821482 {
14831483 gsoap_eml2_3::eml23__IntegerLatticeArray const * latticeArray = static_cast <gsoap_eml2_3::eml23__IntegerLatticeArray const *>(arrayInput);
1484- if (latticeArray->Offset .size () > 1 ) {
1485- throw invalid_argument (" The lattice array contains more than one offset." );
1484+ if (latticeArray->Offset .size () != 1 ) {
1485+ throw invalid_argument (" The integer lattice array contains zero or more than one offset." );
14861486 }
14871487 return latticeArray->Offset [0 ]->Count + 1ull ;
14881488 }
@@ -1507,8 +1507,8 @@ uint64_t AbstractObject::getCountOfArray(gsoap_eml2_3::eml23__AbstractValueArray
15071507 else if (soapType == SOAP_TYPE_gsoap_eml2_3_eml23__FloatingPointLatticeArray)
15081508 {
15091509 gsoap_eml2_3::eml23__FloatingPointLatticeArray const * latticeArray = static_cast <gsoap_eml2_3::eml23__FloatingPointLatticeArray const *>(arrayInput);
1510- if (latticeArray->Offset .size () > 1 ) {
1511- throw invalid_argument (" The lattice array contains more than one offset." );
1510+ if (latticeArray->Offset .size () != 1 ) {
1511+ throw invalid_argument (" The floating point lattice array contains zero or more than one offset." );
15121512 }
15131513 return static_cast <gsoap_eml2_3::eml23__FloatingPointLatticeArray const *>(arrayInput)->Offset [0 ]->Count + 1 ;
15141514 }
0 commit comments