@@ -80,29 +80,29 @@ WsjcppDtoInteger::WsjcppDtoInteger(const std::string &sName, const std::string &
80
80
}
81
81
82
82
// ---------------------------------------------------------------------
83
- // WsjcppDefineDto
83
+ // WsjcppDto
84
84
85
- WsjcppDefineDto::WsjcppDefineDto (const std::string &sTypeName , const std::string &sDescription ) {
85
+ WsjcppDto::WsjcppDto (const std::string &sTypeName , const std::string &sDescription ) {
86
86
TAG = " DTO-" + sTypeName ;
87
87
m_sTypeName = sTypeName ;
88
88
m_sDescription = sDescription ;
89
89
}
90
90
91
91
// ---------------------------------------------------------------------
92
92
93
- const std::string &WsjcppDefineDto ::getTypeName () {
93
+ const std::string &WsjcppDto ::getTypeName () {
94
94
return m_sTypeName;
95
95
}
96
96
97
97
// ---------------------------------------------------------------------
98
98
99
- const std::string &WsjcppDefineDto ::getDescription () {
99
+ const std::string &WsjcppDto ::getDescription () {
100
100
return m_sDescription;
101
101
}
102
102
103
103
// ---------------------------------------------------------------------
104
104
105
- bool WsjcppDefineDto ::setFieldStringValue (const std::string &sFieldName , const std::string &sFieldValue ) {
105
+ bool WsjcppDto ::setFieldStringValue (const std::string &sFieldName , const std::string &sFieldValue ) {
106
106
WsjcppDefineFieldDto *pField = this ->findFieldByName (sFieldName );
107
107
if (pField == nullptr ) {
108
108
WsjcppLog::throw_err (TAG, " Object '" + m_sTypeName + " ' has not field '" + sFieldName + " '" );
@@ -117,7 +117,7 @@ bool WsjcppDefineDto::setFieldStringValue(const std::string &sFieldName, const s
117
117
118
118
// ---------------------------------------------------------------------
119
119
120
- bool WsjcppDefineDto ::setFieldIntegerValue (const std::string &sFieldName , int nValue) {
120
+ bool WsjcppDto ::setFieldIntegerValue (const std::string &sFieldName , int nValue) {
121
121
WsjcppDefineFieldDto *pField = this ->findFieldByName (sFieldName );
122
122
if (pField == nullptr ) {
123
123
WsjcppLog::throw_err (TAG, " Object '" + m_sTypeName + " ' has not field '" + sFieldName + " '" );
@@ -130,7 +130,7 @@ bool WsjcppDefineDto::setFieldIntegerValue(const std::string &sFieldName, int nV
130
130
131
131
// ---------------------------------------------------------------------
132
132
133
- bool WsjcppDefineDto ::setFieldBooleanValue (const std::string &sFieldName , bool bValue) {
133
+ bool WsjcppDto ::setFieldBooleanValue (const std::string &sFieldName , bool bValue) {
134
134
WsjcppDefineFieldDto *pField = this ->findFieldByName (sFieldName );
135
135
if (pField == nullptr ) {
136
136
WsjcppLog::throw_err (TAG, " Object '" + m_sTypeName + " ' has not field '" + sFieldName + " '" );
@@ -143,7 +143,7 @@ bool WsjcppDefineDto::setFieldBooleanValue(const std::string &sFieldName, bool b
143
143
144
144
// ---------------------------------------------------------------------
145
145
146
- bool WsjcppDefineDto ::setFieldJsonValue (const std::string &sFieldName , const nlohmann::json &jsonFieldValue) {
146
+ bool WsjcppDto ::setFieldJsonValue (const std::string &sFieldName , const nlohmann::json &jsonFieldValue) {
147
147
WsjcppDefineFieldDto *pField = this ->findFieldByName (sFieldName );
148
148
if (pField == nullptr ) {
149
149
WsjcppLog::throw_err (TAG, " Object '" + m_sTypeName + " ' has not field '" + sFieldName + " '" );
@@ -156,19 +156,19 @@ bool WsjcppDefineDto::setFieldJsonValue(const std::string &sFieldName, const nlo
156
156
157
157
// ---------------------------------------------------------------------
158
158
159
- bool WsjcppDefineDto ::fillFromJson (nlohmann::json &jsonData, std::string &sError ) {
159
+ bool WsjcppDto ::fillFromJson (nlohmann::json &jsonData, std::string &sError ) {
160
160
return false ;
161
161
}
162
162
163
163
// ---------------------------------------------------------------------
164
164
165
- nlohmann::json WsjcppDefineDto ::toJson () {
165
+ nlohmann::json WsjcppDto ::toJson () {
166
166
return m_jsonReadyObject;
167
167
}
168
168
169
169
// ---------------------------------------------------------------------
170
170
171
- WsjcppDefineFieldDto *WsjcppDefineDto ::findFieldByName (const std::string &sFieldName ) {
171
+ WsjcppDefineFieldDto *WsjcppDto ::findFieldByName (const std::string &sFieldName ) {
172
172
for (int i = 0 ; i < m_vFields.size (); i++) {
173
173
if (m_vFields[i]->getFieldName () == sFieldName ) {
174
174
return m_vFields[i];
0 commit comments