@@ -80,29 +80,29 @@ WsjcppDtoInteger::WsjcppDtoInteger(const std::string &sName, const std::string &
8080}
8181
8282// ---------------------------------------------------------------------
83- // WsjcppDefineDto
83+ // WsjcppDto
8484
85- WsjcppDefineDto::WsjcppDefineDto (const std::string &sTypeName , const std::string &sDescription ) {
85+ WsjcppDto::WsjcppDto (const std::string &sTypeName , const std::string &sDescription ) {
8686 TAG = " DTO-" + sTypeName ;
8787 m_sTypeName = sTypeName ;
8888 m_sDescription = sDescription ;
8989}
9090
9191// ---------------------------------------------------------------------
9292
93- const std::string &WsjcppDefineDto ::getTypeName () {
93+ const std::string &WsjcppDto ::getTypeName () {
9494 return m_sTypeName;
9595}
9696
9797// ---------------------------------------------------------------------
9898
99- const std::string &WsjcppDefineDto ::getDescription () {
99+ const std::string &WsjcppDto ::getDescription () {
100100 return m_sDescription;
101101}
102102
103103// ---------------------------------------------------------------------
104104
105- bool WsjcppDefineDto ::setFieldStringValue (const std::string &sFieldName , const std::string &sFieldValue ) {
105+ bool WsjcppDto ::setFieldStringValue (const std::string &sFieldName , const std::string &sFieldValue ) {
106106 WsjcppDefineFieldDto *pField = this ->findFieldByName (sFieldName );
107107 if (pField == nullptr ) {
108108 WsjcppLog::throw_err (TAG, " Object '" + m_sTypeName + " ' has not field '" + sFieldName + " '" );
@@ -117,7 +117,7 @@ bool WsjcppDefineDto::setFieldStringValue(const std::string &sFieldName, const s
117117
118118// ---------------------------------------------------------------------
119119
120- bool WsjcppDefineDto ::setFieldIntegerValue (const std::string &sFieldName , int nValue) {
120+ bool WsjcppDto ::setFieldIntegerValue (const std::string &sFieldName , int nValue) {
121121 WsjcppDefineFieldDto *pField = this ->findFieldByName (sFieldName );
122122 if (pField == nullptr ) {
123123 WsjcppLog::throw_err (TAG, " Object '" + m_sTypeName + " ' has not field '" + sFieldName + " '" );
@@ -130,7 +130,7 @@ bool WsjcppDefineDto::setFieldIntegerValue(const std::string &sFieldName, int nV
130130
131131// ---------------------------------------------------------------------
132132
133- bool WsjcppDefineDto ::setFieldBooleanValue (const std::string &sFieldName , bool bValue) {
133+ bool WsjcppDto ::setFieldBooleanValue (const std::string &sFieldName , bool bValue) {
134134 WsjcppDefineFieldDto *pField = this ->findFieldByName (sFieldName );
135135 if (pField == nullptr ) {
136136 WsjcppLog::throw_err (TAG, " Object '" + m_sTypeName + " ' has not field '" + sFieldName + " '" );
@@ -143,7 +143,7 @@ bool WsjcppDefineDto::setFieldBooleanValue(const std::string &sFieldName, bool b
143143
144144// ---------------------------------------------------------------------
145145
146- bool WsjcppDefineDto ::setFieldJsonValue (const std::string &sFieldName , const nlohmann::json &jsonFieldValue) {
146+ bool WsjcppDto ::setFieldJsonValue (const std::string &sFieldName , const nlohmann::json &jsonFieldValue) {
147147 WsjcppDefineFieldDto *pField = this ->findFieldByName (sFieldName );
148148 if (pField == nullptr ) {
149149 WsjcppLog::throw_err (TAG, " Object '" + m_sTypeName + " ' has not field '" + sFieldName + " '" );
@@ -156,19 +156,19 @@ bool WsjcppDefineDto::setFieldJsonValue(const std::string &sFieldName, const nlo
156156
157157// ---------------------------------------------------------------------
158158
159- bool WsjcppDefineDto ::fillFromJson (nlohmann::json &jsonData, std::string &sError ) {
159+ bool WsjcppDto ::fillFromJson (nlohmann::json &jsonData, std::string &sError ) {
160160 return false ;
161161}
162162
163163// ---------------------------------------------------------------------
164164
165- nlohmann::json WsjcppDefineDto ::toJson () {
165+ nlohmann::json WsjcppDto ::toJson () {
166166 return m_jsonReadyObject;
167167}
168168
169169// ---------------------------------------------------------------------
170170
171- WsjcppDefineFieldDto *WsjcppDefineDto ::findFieldByName (const std::string &sFieldName ) {
171+ WsjcppDefineFieldDto *WsjcppDto ::findFieldByName (const std::string &sFieldName ) {
172172 for (int i = 0 ; i < m_vFields.size (); i++) {
173173 if (m_vFields[i]->getFieldName () == sFieldName ) {
174174 return m_vFields[i];
0 commit comments