Changeset 74425 in vbox
- Timestamp:
- Sep 23, 2018 3:41:48 PM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 125260
- Location:
- trunk
- Files:
-
- 23 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/cpp/restanyobject.h
r74402 r74425 53 53 public: 54 54 /** Default constructor. */ 55 RTCRestAnyObject() ;55 RTCRestAnyObject() RT_NOEXCEPT; 56 56 /** Destructor. */ 57 57 virtual ~RTCRestAnyObject(); … … 63 63 64 64 /** Safe copy assignment method. */ 65 int assignCopy(RTCRestAnyObject const &a_rThat) ;65 int assignCopy(RTCRestAnyObject const &a_rThat) RT_NOEXCEPT; 66 66 /** Safe copy assignment method, boolean variant. */ 67 int assignCopy(RTCRestBool const &a_rThat) ;67 int assignCopy(RTCRestBool const &a_rThat) RT_NOEXCEPT; 68 68 /** Safe copy assignment method, int64_t variant. */ 69 int assignCopy(RTCRestInt64 const &a_rThat) ;69 int assignCopy(RTCRestInt64 const &a_rThat) RT_NOEXCEPT; 70 70 /** Safe copy assignment method, int32_t variant. */ 71 int assignCopy(RTCRestInt32 const &a_rThat) ;71 int assignCopy(RTCRestInt32 const &a_rThat) RT_NOEXCEPT; 72 72 /** Safe copy assignment method, int16_t variant. */ 73 int assignCopy(RTCRestInt16 const &a_rThat) ;73 int assignCopy(RTCRestInt16 const &a_rThat) RT_NOEXCEPT; 74 74 /** Safe copy assignment method, double variant. */ 75 int assignCopy(RTCRestDouble const &a_rThat) ;75 int assignCopy(RTCRestDouble const &a_rThat) RT_NOEXCEPT; 76 76 /** Safe copy assignment method, string variant. */ 77 int assignCopy(RTCRestString const &a_rThat) ;77 int assignCopy(RTCRestString const &a_rThat) RT_NOEXCEPT; 78 78 /** Safe copy assignment method, array variant. */ 79 int assignCopy(RTCRestArray<RTCRestAnyObject> const &a_rThat) ;79 int assignCopy(RTCRestArray<RTCRestAnyObject> const &a_rThat) RT_NOEXCEPT; 80 80 /** Safe copy assignment method, string map variant. */ 81 int assignCopy(RTCRestStringMap<RTCRestAnyObject> const &a_rThat) ;81 int assignCopy(RTCRestStringMap<RTCRestAnyObject> const &a_rThat) RT_NOEXCEPT; 82 82 83 83 /** Safe value assignment method, boolean variant. */ 84 int assignValue(bool a_fValue) ;84 int assignValue(bool a_fValue) RT_NOEXCEPT; 85 85 /** Safe value assignment method, int64_t variant. */ 86 int assignValue(int64_t a_iValue) ;86 int assignValue(int64_t a_iValue) RT_NOEXCEPT; 87 87 /** Safe value assignment method, int32_t variant. */ 88 int assignValue(int32_t a_iValue) ;88 int assignValue(int32_t a_iValue) RT_NOEXCEPT; 89 89 /** Safe value assignment method, int16_t variant. */ 90 int assignValue(int16_t a_iValue) ;90 int assignValue(int16_t a_iValue) RT_NOEXCEPT; 91 91 /** Safe value assignment method, double variant. */ 92 int assignValue(double a_iValue) ;92 int assignValue(double a_iValue) RT_NOEXCEPT; 93 93 /** Safe value assignment method, string variant. */ 94 int assignValue(RTCString const &a_rValue) ;94 int assignValue(RTCString const &a_rValue) RT_NOEXCEPT; 95 95 /** Safe value assignment method, C-string variant. */ 96 int assignValue(const char *a_pszValue) ;96 int assignValue(const char *a_pszValue) RT_NOEXCEPT; 97 97 98 98 /** Make a clone of this object. */ 99 inline RTCRestAnyObject *clone() const { return (RTCRestAnyObject *)baseClone(); }99 inline RTCRestAnyObject *clone() const RT_NOEXCEPT { return (RTCRestAnyObject *)baseClone(); } 100 100 101 101 /* Overridden methods: */ 102 virtual RTCRestObjectBase *baseClone() const RT_ OVERRIDE;103 virtual int setNull(void) RT_ OVERRIDE;104 virtual int resetToDefault() RT_ OVERRIDE;105 virtual RTCRestOutputBase &serializeAsJson(RTCRestOutputBase &a_rDst) const RT_ OVERRIDE;106 virtual int deserializeFromJson(RTCRestJsonCursor const &a_rCursor) RT_ OVERRIDE;107 virtual int toString(RTCString *a_pDst, uint32_t a_fFlags = kCollectionFormat_Unspecified) const RT_ OVERRIDE;102 virtual RTCRestObjectBase *baseClone() const RT_NOEXCEPT RT_OVERRIDE; 103 virtual int setNull(void) RT_NOEXCEPT RT_OVERRIDE; 104 virtual int resetToDefault() RT_NOEXCEPT RT_OVERRIDE; 105 virtual RTCRestOutputBase &serializeAsJson(RTCRestOutputBase &a_rDst) const RT_NOEXCEPT RT_OVERRIDE; 106 virtual int deserializeFromJson(RTCRestJsonCursor const &a_rCursor) RT_NOEXCEPT RT_OVERRIDE; 107 virtual int toString(RTCString *a_pDst, uint32_t a_fFlags = kCollectionFormat_Unspecified) const RT_NOEXCEPT RT_OVERRIDE; 108 108 virtual int fromString(RTCString const &a_rValue, const char *a_pszName, PRTERRINFO a_pErrInfo = NULL, 109 uint32_t a_fFlags = kCollectionFormat_Unspecified) RT_ OVERRIDE;110 virtual kTypeClass typeClass(void) const RT_ OVERRIDE;111 virtual const char *typeName(void) const RT_ OVERRIDE;109 uint32_t a_fFlags = kCollectionFormat_Unspecified) RT_NOEXCEPT RT_OVERRIDE; 110 virtual kTypeClass typeClass(void) const RT_NOEXCEPT RT_OVERRIDE; 111 virtual const char *typeName(void) const RT_NOEXCEPT RT_OVERRIDE; 112 112 113 113 /** Factory method. */ 114 static DECLCALLBACK(RTCRestObjectBase *) createInstance(void) ;114 static DECLCALLBACK(RTCRestObjectBase *) createInstance(void) RT_NOEXCEPT; 115 115 /** Deserialization w/ instantiation. */ 116 116 static FNDESERIALIZEINSTANCEFROMJSON deserializeInstanceFromJson; -
trunk/include/iprt/cpp/restarray.h
r74402 r74425 42 42 public: 43 43 /** Default destructor. */ 44 RTCRestArrayBase() ;44 RTCRestArrayBase() RT_NOEXCEPT; 45 45 /** Destructor. */ 46 46 virtual ~RTCRestArrayBase(); 47 47 48 48 /* Overridden methods: */ 49 virtual RTCRestObjectBase *baseClone() const RT_ OVERRIDE;50 virtual int resetToDefault() RT_ OVERRIDE;51 virtual RTCRestOutputBase &serializeAsJson(RTCRestOutputBase &a_rDst) const RT_ OVERRIDE;52 virtual int deserializeFromJson(RTCRestJsonCursor const &a_rCursor) RT_ OVERRIDE;53 virtual int toString(RTCString *a_pDst, uint32_t a_fFlags = kCollectionFormat_Unspecified) const RT_ OVERRIDE;49 virtual RTCRestObjectBase *baseClone() const RT_NOEXCEPT RT_OVERRIDE; 50 virtual int resetToDefault() RT_NOEXCEPT RT_OVERRIDE; 51 virtual RTCRestOutputBase &serializeAsJson(RTCRestOutputBase &a_rDst) const RT_NOEXCEPT RT_OVERRIDE; 52 virtual int deserializeFromJson(RTCRestJsonCursor const &a_rCursor) RT_NOEXCEPT RT_OVERRIDE; 53 virtual int toString(RTCString *a_pDst, uint32_t a_fFlags = kCollectionFormat_Unspecified) const RT_NOEXCEPT RT_OVERRIDE; 54 54 virtual int fromString(RTCString const &a_rValue, const char *a_pszName, PRTERRINFO a_pErrInfo = NULL, 55 uint32_t a_fFlags = kCollectionFormat_Unspecified) RT_ OVERRIDE;56 virtual kTypeClass typeClass(void) const RT_ OVERRIDE;57 virtual const char *typeName(void) const RT_ OVERRIDE;55 uint32_t a_fFlags = kCollectionFormat_Unspecified) RT_NOEXCEPT RT_OVERRIDE; 56 virtual kTypeClass typeClass(void) const RT_NOEXCEPT RT_OVERRIDE; 57 virtual const char *typeName(void) const RT_NOEXCEPT RT_OVERRIDE; 58 58 59 59 /** 60 60 * Clear the content of the map. 61 61 */ 62 void clear() ;62 void clear() RT_NOEXCEPT; 63 63 64 64 /** … … 67 67 * @return True if there is more than zero items, false otherwise. 68 68 */ 69 inline bool isEmpty() const 69 inline bool isEmpty() const RT_NOEXCEPT 70 70 { 71 71 return m_cElements == 0; … … 75 75 * Gets the number of entries in the map. 76 76 */ 77 inline size_t size() const 77 inline size_t size() const RT_NOEXCEPT 78 78 { 79 79 return m_cElements; … … 86 86 * @param a_idx The array index. 87 87 */ 88 inline RTCRestObjectBase *atBase(size_t a_idx) 88 inline RTCRestObjectBase *atBase(size_t a_idx) RT_NOEXCEPT 89 89 { 90 90 if (a_idx < m_cElements) … … 99 99 * @param a_idx The array index. 100 100 */ 101 inline RTCRestObjectBase const *atBase(size_t a_idx) const 101 inline RTCRestObjectBase const *atBase(size_t a_idx) const RT_NOEXCEPT 102 102 { 103 103 if (a_idx < m_cElements) … … 112 112 * The value ~(size_t)0 is an alias for the final element. 113 113 */ 114 bool removeAt(size_t a_idx) ;114 bool removeAt(size_t a_idx) RT_NOEXCEPT; 115 115 116 116 /** … … 120 120 * @param a_cEnsureCapacity The number of elements to ensure capacity to hold. 121 121 */ 122 int ensureCapacity(size_t a_cEnsureCapacity) ;122 int ensureCapacity(size_t a_cEnsureCapacity) RT_NOEXCEPT; 123 123 124 124 … … 137 137 * @returns Pointer to new array on success, NULL if out of memory. 138 138 */ 139 virtual RTCRestArrayBase *createClone(void) const = 0;139 virtual RTCRestArrayBase *createClone(void) const RT_NOEXCEPT = 0; 140 140 141 141 /** … … 144 144 * @returns Pointer to new value object on success, NULL if out of memory. 145 145 */ 146 virtual RTCRestObjectBase *createValue(void) = 0;146 virtual RTCRestObjectBase *createValue(void) RT_NOEXCEPT = 0; 147 147 148 148 /** 149 149 * For accessing the static deserializeInstanceFromJson() method of the value. 150 150 */ 151 virtual int deserializeValueInstanceFromJson(RTCRestJsonCursor const &a_rCursor, RTCRestObjectBase **a_ppInstance) = 0;152 153 /** 154 * Worker for the copy constructor and the assignment operator.151 virtual int deserializeValueInstanceFromJson(RTCRestJsonCursor const &a_rCursor, RTCRestObjectBase **a_ppInstance) RT_NOEXCEPT = 0; 152 153 /** 154 * Worker for the copy assignment method and copyArrayWorkerMayThrow(). 155 155 * 156 156 * This will use createEntryCopy to do the copying. … … 159 159 * @param a_rThat The array to copy. Caller makes 100% sure the it has 160 160 * the same type as the destination. 161 * @param a_fThrow Whether to throw error. 162 */ 163 int copyArrayWorker(RTCRestArrayBase const &a_rThat, bool a_fThrow); 161 */ 162 int copyArrayWorkerNoThrow(RTCRestArrayBase const &a_rThat) RT_NOEXCEPT; 163 164 /** 165 * Wrapper around copyArrayWorkerNoThrow for the copy constructor and the 166 * assignment operator. 167 */ 168 void copyArrayWorkerMayThrow(RTCRestArrayBase const &a_rThat); 164 169 165 170 /** … … 172 177 * @param a_fReplace Whether to replace existing entry rather than insert. 173 178 */ 174 int insertWorker(size_t a_idx, RTCRestObjectBase *a_pValue, bool a_fReplace) ;179 int insertWorker(size_t a_idx, RTCRestObjectBase *a_pValue, bool a_fReplace) RT_NOEXCEPT; 175 180 176 181 /** … … 183 188 * @param a_fReplace Whether to replace existing key-value pair with matching key. 184 189 */ 185 int insertCopyWorker(size_t a_idx, RTCRestObjectBase const &a_rValue, bool a_fReplace) ;190 int insertCopyWorker(size_t a_idx, RTCRestObjectBase const &a_rValue, bool a_fReplace) RT_NOEXCEPT; 186 191 187 192 private: … … 201 206 public: 202 207 /** Default constructor - empty array. */ 203 RTCRestArray() 208 RTCRestArray() RT_NOEXCEPT 204 209 : RTCRestArrayBase() 205 210 { … … 215 220 : RTCRestArrayBase() 216 221 { 217 copyArrayWorker (a_rThat, true /*fThrow*/);222 copyArrayWorkerMayThrow(a_rThat); 218 223 } 219 224 … … 221 226 inline RTCRestArray &operator=(RTCRestArray const &a_rThat) 222 227 { 223 copyArrayWorker (a_rThat, true /*fThrow*/);228 copyArrayWorkerMayThrow(a_rThat); 224 229 return *this; 225 230 } 226 231 227 232 /** Safe copy assignment method. */ 228 inline int assignCopy(RTCRestArray const &a_rThat) 229 { 230 return copyArrayWorker (a_rThat, false /*fThrow*/);233 inline int assignCopy(RTCRestArray const &a_rThat) RT_NOEXCEPT 234 { 235 return copyArrayWorkerNoThrow(a_rThat); 231 236 } 232 237 233 238 /** Make a clone of this object. */ 234 inline RTCRestArray *clone() const 239 inline RTCRestArray *clone() const RT_NOEXCEPT 235 240 { 236 241 return (RTCRestArray *)baseClone(); … … 238 243 239 244 /** Factory method. */ 240 static DECLCALLBACK(RTCRestObjectBase *) createInstance(void) 245 static DECLCALLBACK(RTCRestObjectBase *) createInstance(void) RT_NOEXCEPT 241 246 { 242 247 return new (std::nothrow) RTCRestArray<ElementType>(); … … 244 249 245 250 /** Factory method for elements. */ 246 static DECLCALLBACK(RTCRestObjectBase *) createElementInstance(void) 251 static DECLCALLBACK(RTCRestObjectBase *) createElementInstance(void) RT_NOEXCEPT 247 252 { 248 253 return new (std::nothrow) ElementType(); … … 250 255 251 256 /** @copydoc RTCRestObjectBase::FNDESERIALIZEINSTANCEFROMJSON */ 252 static DECLCALLBACK(int) deserializeInstanceFromJson(RTCRestJsonCursor const &a_rCursor, RTCRestObjectBase **a_ppInstance) 257 static DECLCALLBACK(int) deserializeInstanceFromJson(RTCRestJsonCursor const &a_rCursor, RTCRestObjectBase **a_ppInstance) RT_NOEXCEPT 253 258 { 254 259 *a_ppInstance = new (std::nothrow) RTCRestArray<ElementType>(); … … 267 272 * @param a_pThat The object to insert. The array takes ownership of the object on success. 268 273 */ 269 inline int insert(size_t a_idx, ElementType *a_pThat) 274 inline int insert(size_t a_idx, ElementType *a_pThat) RT_NOEXCEPT 270 275 { 271 276 return insertWorker(a_idx, a_pThat, false /*a_fReplace*/); … … 280 285 * @param a_rThat The object to insert a copy of. 281 286 */ 282 inline int insertCopy(size_t a_idx, ElementType const &a_rThat) 287 inline int insertCopy(size_t a_idx, ElementType const &a_rThat) RT_NOEXCEPT 283 288 { 284 289 return insertCopyWorker(a_idx, a_rThat, false /*a_fReplace*/); … … 292 297 * @param a_pThat The object to insert. The array takes ownership of the object on success. 293 298 */ 294 inline int append(ElementType *a_pThat) 299 inline int append(ElementType *a_pThat) RT_NOEXCEPT 295 300 { 296 301 return insertWorker(~(size_t)0, a_pThat, false /*a_fReplace*/); … … 304 309 * @param a_rThat The object to insert a copy of. 305 310 */ 306 inline int appendCopy(ElementType const &a_rThat) 311 inline int appendCopy(ElementType const &a_rThat) RT_NOEXCEPT 307 312 { 308 313 return insertCopyWorker(~(size_t)0, a_rThat, false /*a_fReplace*/); … … 316 321 * @param a_pThat The object to insert. The array takes ownership of the object on success. 317 322 */ 318 inline int prepend(ElementType *a_pThat) 323 inline int prepend(ElementType *a_pThat) RT_NOEXCEPT 319 324 { 320 325 return insertWorker(0, a_pThat, false /*a_fReplace*/); … … 328 333 * @param a_rThat The object to insert a copy of. 329 334 */ 330 inline int prependCopy(ElementType const &a_rThat) 335 inline int prependCopy(ElementType const &a_rThat) RT_NOEXCEPT 331 336 { 332 337 return insertCopyWorker(0, a_rThat, false /*a_fReplace*/); … … 341 346 * @param a_pThat The replacement object. The array takes ownership of the object on success. 342 347 */ 343 inline int replace(size_t a_idx, ElementType *a_pThat) 348 inline int replace(size_t a_idx, ElementType *a_pThat) RT_NOEXCEPT 344 349 { 345 350 return insertWorker(a_idx, a_pThat, true /*a_fReplace*/); … … 354 359 * @param a_rThat The object to insert a copy of. 355 360 */ 356 inline int replaceCopy(size_t a_idx, ElementType const &a_rThat) 361 inline int replaceCopy(size_t a_idx, ElementType const &a_rThat) RT_NOEXCEPT 357 362 { 358 363 return insertCopyWorker(a_idx, a_rThat, true /*a_fReplace*/); … … 365 370 * @param a_idx The array index. 366 371 */ 367 inline ElementType *at(size_t a_idx) 372 inline ElementType *at(size_t a_idx) RT_NOEXCEPT 368 373 { 369 374 if (a_idx < m_cElements) … … 378 383 * @param a_idx The array index. 379 384 */ 380 inline ElementType const *at(size_t a_idx) const 385 inline ElementType const *at(size_t a_idx) const RT_NOEXCEPT 381 386 { 382 387 if (a_idx < m_cElements) … … 389 394 * @returns The first object, NULL if empty. 390 395 */ 391 inline ElementType *first() 396 inline ElementType *first() RT_NOEXCEPT 392 397 { 393 398 return at(0); … … 398 403 * @returns The first object, NULL if empty. 399 404 */ 400 inline ElementType const *first() const 405 inline ElementType const *first() const RT_NOEXCEPT 401 406 { 402 407 return at(0); … … 407 412 * @returns The last object, NULL if empty. 408 413 */ 409 inline ElementType *last() 414 inline ElementType *last() RT_NOEXCEPT 410 415 { 411 416 return at(m_cElements - 1); … … 416 421 * @returns The last object, NULL if empty. 417 422 */ 418 inline ElementType const *last() const 423 inline ElementType const *last() const RT_NOEXCEPT 419 424 { 420 425 return at(m_cElements - 1); … … 423 428 424 429 protected: 425 virtual RTCRestArrayBase *createClone(void) const RT_ OVERRIDE430 virtual RTCRestArrayBase *createClone(void) const RT_NOEXCEPT RT_OVERRIDE 426 431 { 427 432 return new (std::nothrow) RTCRestArray(); 428 433 } 429 434 430 virtual RTCRestObjectBase *createValue(void) RT_ OVERRIDE435 virtual RTCRestObjectBase *createValue(void) RT_NOEXCEPT RT_OVERRIDE 431 436 { 432 437 return new (std::nothrow) ElementType(); 433 438 } 434 439 435 virtual int deserializeValueInstanceFromJson(RTCRestJsonCursor const &a_rCursor, RTCRestObjectBase **a_ppInstance) RT_ OVERRIDE440 virtual int deserializeValueInstanceFromJson(RTCRestJsonCursor const &a_rCursor, RTCRestObjectBase **a_ppInstance) RT_NOEXCEPT RT_OVERRIDE 436 441 { 437 442 return ElementType::deserializeInstanceFromJson(a_rCursor, a_ppInstance); -
trunk/include/iprt/cpp/restbase.h
r74414 r74425 61 61 RTCRestJsonPrimaryCursor *m_pPrimary; 62 62 63 RTCRestJsonCursor(struct RTCRestJsonCursor const &a_rParent) 63 RTCRestJsonCursor(struct RTCRestJsonCursor const &a_rParent) RT_NOEXCEPT 64 64 : m_hValue(NIL_RTJSONVAL), m_pszName(NULL), m_pParent(&a_rParent), m_pPrimary(a_rParent.m_pPrimary) 65 65 { } 66 66 67 RTCRestJsonCursor(RTJSONVAL hValue, const char *pszName, struct RTCRestJsonCursor *pParent) 67 RTCRestJsonCursor(RTJSONVAL hValue, const char *pszName, struct RTCRestJsonCursor *pParent) RT_NOEXCEPT 68 68 : m_hValue(hValue), m_pszName(pszName), m_pParent(pParent), m_pPrimary(pParent->m_pPrimary) 69 69 { } 70 70 71 RTCRestJsonCursor(RTJSONVAL hValue, const char *pszName) 71 RTCRestJsonCursor(RTJSONVAL hValue, const char *pszName) RT_NOEXCEPT 72 72 : m_hValue(hValue), m_pszName(pszName), m_pParent(NULL), m_pPrimary(NULL) 73 73 { } … … 96 96 97 97 /** Creates a primary json cursor with optiona error info. */ 98 RTCRestJsonPrimaryCursor(RTJSONVAL hValue, const char *pszName, PRTERRINFO pErrInfo = NULL) 98 RTCRestJsonPrimaryCursor(RTJSONVAL hValue, const char *pszName, PRTERRINFO pErrInfo = NULL) RT_NOEXCEPT 99 99 : m_Cursor(hValue, pszName) 100 100 , m_pErrInfo(pErrInfo) … … 115 115 * @param ... Format string arguments. 116 116 */ 117 virtual int addError(RTCRestJsonCursor const &a_rCursor, int a_rc, const char *a_pszFormat, ...) ;117 virtual int addError(RTCRestJsonCursor const &a_rCursor, int a_rc, const char *a_pszFormat, ...) RT_NOEXCEPT; 118 118 119 119 /** … … 123 123 * @param a_rCursor The cursor for the field. 124 124 */ 125 virtual int unknownField(RTCRestJsonCursor const &a_rCursor) ;125 virtual int unknownField(RTCRestJsonCursor const &a_rCursor) RT_NOEXCEPT; 126 126 127 127 /** … … 133 133 * @param a_cbDst Size of the destination buffer. 134 134 */ 135 virtual char *getPath(RTCRestJsonCursor const &a_rCursor, char *a_pszDst, size_t a_cbDst) const ;135 virtual char *getPath(RTCRestJsonCursor const &a_rCursor, char *a_pszDst, size_t a_cbDst) const RT_NOEXCEPT; 136 136 }; 137 137 … … 146 146 { 147 147 public: 148 RTCRestObjectBase() ;149 RTCRestObjectBase(RTCRestObjectBase const &a_rThat) ;148 RTCRestObjectBase() RT_NOEXCEPT; 149 RTCRestObjectBase(RTCRestObjectBase const &a_rThat) RT_NOEXCEPT; 150 150 virtual ~RTCRestObjectBase(); 151 151 … … 155 155 * @returns Pointer to copy. 156 156 */ 157 virtual RTCRestObjectBase *baseClone() const = 0;157 virtual RTCRestObjectBase *baseClone() const RT_NOEXCEPT = 0; 158 158 159 159 /** … … 161 161 * @returns true if null, false if not. 162 162 */ 163 inline bool isNull(void) const { return m_fNullIndicator; };163 inline bool isNull(void) const RT_NOEXCEPT { return m_fNullIndicator; }; 164 164 165 165 /** … … 167 167 * @returns IPRT status code (from resetToDefault). 168 168 */ 169 virtual int setNull(void) ;169 virtual int setNull(void) RT_NOEXCEPT; 170 170 171 171 /** … … 173 173 * @remarks Only really important for strings. 174 174 */ 175 virtual void setNotNull(void) ;175 virtual void setNotNull(void) RT_NOEXCEPT; 176 176 177 177 /** … … 179 179 * @returns IPRT status code. 180 180 */ 181 virtual int resetToDefault() = 0;181 virtual int resetToDefault() RT_NOEXCEPT = 0; 182 182 183 183 /** … … 187 187 * @param a_rDst The destination for the serialization. 188 188 */ 189 virtual RTCRestOutputBase &serializeAsJson(RTCRestOutputBase &a_rDst) const = 0;189 virtual RTCRestOutputBase &serializeAsJson(RTCRestOutputBase &a_rDst) const RT_NOEXCEPT = 0; 190 190 191 191 /** … … 195 195 * @param a_rCursor The JSON cursor. 196 196 */ 197 virtual int deserializeFromJson(RTCRestJsonCursor const &a_rCursor) = 0;197 virtual int deserializeFromJson(RTCRestJsonCursor const &a_rCursor) RT_NOEXCEPT = 0; 198 198 199 199 /** … … 242 242 * @param a_fFlags kCollectionFormat_xxx. 243 243 */ 244 virtual int toString(RTCString *a_pDst, uint32_t a_fFlags = kCollectionFormat_Unspecified) const ;244 virtual int toString(RTCString *a_pDst, uint32_t a_fFlags = kCollectionFormat_Unspecified) const RT_NOEXCEPT; 245 245 246 246 /** … … 263 263 */ 264 264 virtual int fromString(RTCString const &a_rValue, const char *a_pszName, PRTERRINFO a_pErrInfo = NULL, 265 uint32_t a_fFlags = kCollectionFormat_Unspecified) ;265 uint32_t a_fFlags = kCollectionFormat_Unspecified) RT_NOEXCEPT; 266 266 267 267 /** Type classification */ … … 288 288 * Returns the object type class. 289 289 */ 290 virtual kTypeClass typeClass(void) const = 0;290 virtual kTypeClass typeClass(void) const RT_NOEXCEPT = 0; 291 291 292 292 /** 293 293 * Returns the object type name. 294 294 */ 295 virtual const char *typeName(void) const = 0;295 virtual const char *typeName(void) const RT_NOEXCEPT = 0; 296 296 297 297 protected: … … 314 314 public: 315 315 /** Default constructor. */ 316 RTCRestBool() ;316 RTCRestBool() RT_NOEXCEPT; 317 317 /** Copy constructor. */ 318 RTCRestBool(RTCRestBool const &a_rThat) ;318 RTCRestBool(RTCRestBool const &a_rThat) RT_NOEXCEPT; 319 319 /** From value constructor. */ 320 RTCRestBool(bool fValue) ;320 RTCRestBool(bool fValue) RT_NOEXCEPT; 321 321 /** Destructor. */ 322 322 virtual ~RTCRestBool(); 323 323 /** Copy assignment operator. */ 324 RTCRestBool &operator=(RTCRestBool const &a_rThat) ;325 /** Safe copy assignment method. */ 326 int assignCopy(RTCRestBool const &a_rThat) ;324 RTCRestBool &operator=(RTCRestBool const &a_rThat) RT_NOEXCEPT; 325 /** Safe copy assignment method. */ 326 int assignCopy(RTCRestBool const &a_rThat) RT_NOEXCEPT; 327 327 /** Assign value and clear null indicator. */ 328 void assignValue(bool a_fValue) ;328 void assignValue(bool a_fValue) RT_NOEXCEPT; 329 329 /** Make a clone of this object. */ 330 inline RTCRestBool *clone() const { return (RTCRestBool *)baseClone(); }330 inline RTCRestBool *clone() const RT_NOEXCEPT { return (RTCRestBool *)baseClone(); } 331 331 332 332 /* Overridden methods: */ 333 virtual RTCRestObjectBase *baseClone() const RT_ OVERRIDE;334 virtual int resetToDefault() RT_ OVERRIDE;335 virtual RTCRestOutputBase &serializeAsJson(RTCRestOutputBase &a_rDst) const RT_ OVERRIDE;336 virtual int deserializeFromJson(RTCRestJsonCursor const &a_rCursor) RT_ OVERRIDE;337 virtual int toString(RTCString *a_pDst, uint32_t a_fFlags = 0) const RT_ OVERRIDE;333 virtual RTCRestObjectBase *baseClone() const RT_NOEXCEPT RT_OVERRIDE; 334 virtual int resetToDefault() RT_NOEXCEPT RT_OVERRIDE; 335 virtual RTCRestOutputBase &serializeAsJson(RTCRestOutputBase &a_rDst) const RT_NOEXCEPT RT_OVERRIDE; 336 virtual int deserializeFromJson(RTCRestJsonCursor const &a_rCursor) RT_NOEXCEPT RT_OVERRIDE; 337 virtual int toString(RTCString *a_pDst, uint32_t a_fFlags = 0) const RT_NOEXCEPT RT_OVERRIDE; 338 338 virtual int fromString(RTCString const &a_rValue, const char *a_pszName, PRTERRINFO a_pErrInfo = NULL, 339 uint32_t a_fFlags = kCollectionFormat_Unspecified) RT_ OVERRIDE;340 virtual kTypeClass typeClass(void) const RT_ OVERRIDE;341 virtual const char *typeName(void) const RT_ OVERRIDE;339 uint32_t a_fFlags = kCollectionFormat_Unspecified) RT_NOEXCEPT RT_OVERRIDE; 340 virtual kTypeClass typeClass(void) const RT_NOEXCEPT RT_OVERRIDE; 341 virtual const char *typeName(void) const RT_NOEXCEPT RT_OVERRIDE; 342 342 343 343 /** Factory method. */ 344 static DECLCALLBACK(RTCRestObjectBase *) createInstance(void) ;345 /** Deserialization w/ instantiation.*/346 static FNDESERIALIZEINSTANCEFROMJSON deserializeInstanceFromJson;344 static DECLCALLBACK(RTCRestObjectBase *) createInstance(void) RT_NOEXCEPT; 345 /** @copydoc RTCRestObjectBase::FNDESERIALIZEINSTANCEFROMJSON */ 346 static DECLCALLBACK(int) deserializeInstanceFromJson(RTCRestJsonCursor const &a_rCursor, RTCRestObjectBase **a_ppInstance) RT_NOEXCEPT; 347 347 348 348 public: … … 359 359 public: 360 360 /** Default constructor. */ 361 RTCRestInt64() ;361 RTCRestInt64() RT_NOEXCEPT; 362 362 /** Copy constructor. */ 363 RTCRestInt64(RTCRestInt64 const &a_rThat) ;363 RTCRestInt64(RTCRestInt64 const &a_rThat) RT_NOEXCEPT; 364 364 /** From value constructor. */ 365 RTCRestInt64(int64_t a_iValue) ;365 RTCRestInt64(int64_t a_iValue) RT_NOEXCEPT; 366 366 /** Destructor. */ 367 367 virtual ~RTCRestInt64(); 368 368 /** Copy assignment operator. */ 369 RTCRestInt64 &operator=(RTCRestInt64 const &a_rThat) ;370 /** Safe copy assignment method. */ 371 int assignCopy(RTCRestInt64 const &a_rThat) ;369 RTCRestInt64 &operator=(RTCRestInt64 const &a_rThat) RT_NOEXCEPT; 370 /** Safe copy assignment method. */ 371 int assignCopy(RTCRestInt64 const &a_rThat) RT_NOEXCEPT; 372 372 /** Assign value and clear null indicator. */ 373 void assignValue(int64_t a_iValue) ;373 void assignValue(int64_t a_iValue) RT_NOEXCEPT; 374 374 /** Make a clone of this object. */ 375 inline RTCRestInt64 *clone() const { return (RTCRestInt64 *)baseClone(); }375 inline RTCRestInt64 *clone() const RT_NOEXCEPT { return (RTCRestInt64 *)baseClone(); } 376 376 377 377 /* Overridden methods: */ 378 virtual RTCRestObjectBase *baseClone() const RT_ OVERRIDE;379 virtual int resetToDefault() RT_ OVERRIDE;380 virtual RTCRestOutputBase &serializeAsJson(RTCRestOutputBase &a_rDst) const RT_ OVERRIDE;381 virtual int deserializeFromJson(RTCRestJsonCursor const &a_rCursor) RT_ OVERRIDE;382 virtual int toString(RTCString *a_pDst, uint32_t a_fFlags = 0) const RT_ OVERRIDE;378 virtual RTCRestObjectBase *baseClone() const RT_NOEXCEPT RT_OVERRIDE; 379 virtual int resetToDefault() RT_NOEXCEPT RT_OVERRIDE; 380 virtual RTCRestOutputBase &serializeAsJson(RTCRestOutputBase &a_rDst) const RT_NOEXCEPT RT_OVERRIDE; 381 virtual int deserializeFromJson(RTCRestJsonCursor const &a_rCursor) RT_NOEXCEPT RT_OVERRIDE; 382 virtual int toString(RTCString *a_pDst, uint32_t a_fFlags = 0) const RT_NOEXCEPT RT_OVERRIDE; 383 383 virtual int fromString(RTCString const &a_rValue, const char *a_pszName, PRTERRINFO a_pErrInfo = NULL, 384 uint32_t a_fFlags = kCollectionFormat_Unspecified) RT_ OVERRIDE;385 virtual kTypeClass typeClass(void) const RT_ OVERRIDE;386 virtual const char *typeName(void) const RT_ OVERRIDE;384 uint32_t a_fFlags = kCollectionFormat_Unspecified) RT_NOEXCEPT RT_OVERRIDE; 385 virtual kTypeClass typeClass(void) const RT_NOEXCEPT RT_OVERRIDE; 386 virtual const char *typeName(void) const RT_NOEXCEPT RT_OVERRIDE; 387 387 388 388 /** Factory method. */ 389 static DECLCALLBACK(RTCRestObjectBase *) createInstance(void) ;390 /** Deserialization w/ instantiation.*/391 static FNDESERIALIZEINSTANCEFROMJSON deserializeInstanceFromJson;389 static DECLCALLBACK(RTCRestObjectBase *) createInstance(void) RT_NOEXCEPT; 390 /** @copydoc RTCRestObjectBase::FNDESERIALIZEINSTANCEFROMJSON */ 391 static DECLCALLBACK(int) deserializeInstanceFromJson(RTCRestJsonCursor const &a_rCursor, RTCRestObjectBase **a_ppInstance) RT_NOEXCEPT; 392 392 393 393 public: … … 404 404 public: 405 405 /** Default constructor. */ 406 RTCRestInt32() ;406 RTCRestInt32() RT_NOEXCEPT; 407 407 /** Copy constructor. */ 408 RTCRestInt32(RTCRestInt32 const &a_rThat) ;408 RTCRestInt32(RTCRestInt32 const &a_rThat) RT_NOEXCEPT; 409 409 /** From value constructor. */ 410 RTCRestInt32(int32_t iValue) ;410 RTCRestInt32(int32_t iValue) RT_NOEXCEPT; 411 411 /** Destructor. */ 412 virtual ~RTCRestInt32() ;412 virtual ~RTCRestInt32() RT_NOEXCEPT; 413 413 /** Copy assignment operator. */ 414 RTCRestInt32 &operator=(RTCRestInt32 const &a_rThat) ;415 /** Safe copy assignment method. */ 416 int assignCopy(RTCRestInt32 const &a_rThat) ;414 RTCRestInt32 &operator=(RTCRestInt32 const &a_rThat) RT_NOEXCEPT; 415 /** Safe copy assignment method. */ 416 int assignCopy(RTCRestInt32 const &a_rThat) RT_NOEXCEPT; 417 417 /** Assign value and clear null indicator. */ 418 void assignValue(int32_t a_iValue) ;418 void assignValue(int32_t a_iValue) RT_NOEXCEPT; 419 419 /** Make a clone of this object. */ 420 420 inline RTCRestInt32 *clone() const { return (RTCRestInt32 *)baseClone(); } 421 421 422 422 /* Overridden methods: */ 423 virtual RTCRestObjectBase *baseClone() const RT_ OVERRIDE;424 virtual int resetToDefault() RT_ OVERRIDE;425 virtual RTCRestOutputBase &serializeAsJson(RTCRestOutputBase &a_rDst) const RT_ OVERRIDE;426 virtual int deserializeFromJson(RTCRestJsonCursor const &a_rCursor) RT_ OVERRIDE;427 virtual int toString(RTCString *a_pDst, uint32_t a_fFlags = 0) const RT_ OVERRIDE;423 virtual RTCRestObjectBase *baseClone() const RT_NOEXCEPT RT_OVERRIDE; 424 virtual int resetToDefault() RT_NOEXCEPT RT_OVERRIDE; 425 virtual RTCRestOutputBase &serializeAsJson(RTCRestOutputBase &a_rDst) const RT_NOEXCEPT RT_OVERRIDE; 426 virtual int deserializeFromJson(RTCRestJsonCursor const &a_rCursor) RT_NOEXCEPT RT_OVERRIDE; 427 virtual int toString(RTCString *a_pDst, uint32_t a_fFlags = 0) const RT_NOEXCEPT RT_OVERRIDE; 428 428 virtual int fromString(RTCString const &a_rValue, const char *a_pszName, PRTERRINFO a_pErrInfo = NULL, 429 uint32_t a_fFlags = kCollectionFormat_Unspecified) RT_ OVERRIDE;430 virtual kTypeClass typeClass(void) const RT_ OVERRIDE;431 virtual const char *typeName(void) const RT_ OVERRIDE;429 uint32_t a_fFlags = kCollectionFormat_Unspecified) RT_NOEXCEPT RT_OVERRIDE; 430 virtual kTypeClass typeClass(void) const RT_NOEXCEPT RT_OVERRIDE; 431 virtual const char *typeName(void) const RT_NOEXCEPT RT_OVERRIDE; 432 432 433 433 /** Factory method. */ 434 static DECLCALLBACK(RTCRestObjectBase *) createInstance(void) ;435 /** Deserialization w/ instantiation.*/436 static FNDESERIALIZEINSTANCEFROMJSON deserializeInstanceFromJson;434 static DECLCALLBACK(RTCRestObjectBase *) createInstance(void) RT_NOEXCEPT; 435 /** @copydoc RTCRestObjectBase::FNDESERIALIZEINSTANCEFROMJSON */ 436 static DECLCALLBACK(int) deserializeInstanceFromJson(RTCRestJsonCursor const &a_rCursor, RTCRestObjectBase **a_ppInstance) RT_NOEXCEPT; 437 437 438 438 public: … … 449 449 public: 450 450 /** Default constructor. */ 451 RTCRestInt16() ;451 RTCRestInt16() RT_NOEXCEPT; 452 452 /** Copy constructor. */ 453 RTCRestInt16(RTCRestInt16 const &a_rThat) ;453 RTCRestInt16(RTCRestInt16 const &a_rThat) RT_NOEXCEPT; 454 454 /** From value constructor. */ 455 RTCRestInt16(int16_t iValue) ;455 RTCRestInt16(int16_t iValue) RT_NOEXCEPT; 456 456 /** Destructor. */ 457 457 virtual ~RTCRestInt16(); 458 458 /** Copy assignment operator. */ 459 RTCRestInt16 &operator=(RTCRestInt16 const &a_rThat) ;460 /** Safe copy assignment method. */ 461 int assignCopy(RTCRestInt16 const &a_rThat) ;459 RTCRestInt16 &operator=(RTCRestInt16 const &a_rThat) RT_NOEXCEPT; 460 /** Safe copy assignment method. */ 461 int assignCopy(RTCRestInt16 const &a_rThat) RT_NOEXCEPT; 462 462 /** Assign value and clear null indicator. */ 463 void assignValue(int16_t a_iValue) ;463 void assignValue(int16_t a_iValue) RT_NOEXCEPT; 464 464 /** Make a clone of this object. */ 465 inline RTCRestInt16 *clone() const { return (RTCRestInt16 *)baseClone(); }465 inline RTCRestInt16 *clone() const RT_NOEXCEPT { return (RTCRestInt16 *)baseClone(); } 466 466 467 467 /* Overridden methods: */ 468 virtual RTCRestObjectBase *baseClone() const RT_ OVERRIDE;469 virtual int resetToDefault() RT_ OVERRIDE;470 virtual RTCRestOutputBase &serializeAsJson(RTCRestOutputBase &a_rDst) const RT_ OVERRIDE;471 virtual int deserializeFromJson(RTCRestJsonCursor const &a_rCursor) RT_ OVERRIDE;472 virtual int toString(RTCString *a_pDst, uint32_t a_fFlags = 0) const RT_ OVERRIDE;468 virtual RTCRestObjectBase *baseClone() const RT_NOEXCEPT RT_OVERRIDE; 469 virtual int resetToDefault() RT_NOEXCEPT RT_OVERRIDE; 470 virtual RTCRestOutputBase &serializeAsJson(RTCRestOutputBase &a_rDst) const RT_NOEXCEPT RT_OVERRIDE; 471 virtual int deserializeFromJson(RTCRestJsonCursor const &a_rCursor) RT_NOEXCEPT RT_OVERRIDE; 472 virtual int toString(RTCString *a_pDst, uint32_t a_fFlags = 0) const RT_NOEXCEPT RT_OVERRIDE; 473 473 virtual int fromString(RTCString const &a_rValue, const char *a_pszName, PRTERRINFO a_pErrInfo = NULL, 474 uint32_t a_fFlags = kCollectionFormat_Unspecified) RT_ OVERRIDE;475 virtual kTypeClass typeClass(void) const RT_ OVERRIDE;476 virtual const char *typeName(void) const RT_ OVERRIDE;474 uint32_t a_fFlags = kCollectionFormat_Unspecified) RT_NOEXCEPT RT_OVERRIDE; 475 virtual kTypeClass typeClass(void) const RT_NOEXCEPT RT_OVERRIDE; 476 virtual const char *typeName(void) const RT_NOEXCEPT RT_OVERRIDE; 477 477 478 478 /** Factory method. */ 479 static DECLCALLBACK(RTCRestObjectBase *) createInstance(void) ;480 /** Deserialization w/ instantiation.*/481 static FNDESERIALIZEINSTANCEFROMJSON deserializeInstanceFromJson;479 static DECLCALLBACK(RTCRestObjectBase *) createInstance(void) RT_NOEXCEPT; 480 /** @copydoc RTCRestObjectBase::FNDESERIALIZEINSTANCEFROMJSON */ 481 static DECLCALLBACK(int) deserializeInstanceFromJson(RTCRestJsonCursor const &a_rCursor, RTCRestObjectBase **a_ppInstance) RT_NOEXCEPT; 482 482 483 483 public: … … 494 494 public: 495 495 /** Default constructor. */ 496 RTCRestDouble() ;496 RTCRestDouble() RT_NOEXCEPT; 497 497 /** Copy constructor. */ 498 RTCRestDouble(RTCRestDouble const &a_rThat) ;498 RTCRestDouble(RTCRestDouble const &a_rThat) RT_NOEXCEPT; 499 499 /** From value constructor. */ 500 RTCRestDouble(double rdValue) ;500 RTCRestDouble(double rdValue) RT_NOEXCEPT; 501 501 /** Destructor. */ 502 502 virtual ~RTCRestDouble(); 503 503 /** Copy assignment operator. */ 504 RTCRestDouble &operator=(RTCRestDouble const &a_rThat) ;505 /** Safe copy assignment method. */ 506 int assignCopy(RTCRestDouble const &a_rThat) ;504 RTCRestDouble &operator=(RTCRestDouble const &a_rThat) RT_NOEXCEPT; 505 /** Safe copy assignment method. */ 506 int assignCopy(RTCRestDouble const &a_rThat) RT_NOEXCEPT; 507 507 /** Assign value and clear null indicator. */ 508 void assignValue(double a_rdValue) ;508 void assignValue(double a_rdValue) RT_NOEXCEPT; 509 509 /** Make a clone of this object. */ 510 inline RTCRestDouble *clone() const { return (RTCRestDouble *)baseClone(); }510 inline RTCRestDouble *clone() const RT_NOEXCEPT { return (RTCRestDouble *)baseClone(); } 511 511 512 512 /* Overridden methods: */ 513 virtual RTCRestObjectBase *baseClone() const RT_ OVERRIDE;514 virtual int resetToDefault() RT_ OVERRIDE;515 virtual RTCRestOutputBase &serializeAsJson(RTCRestOutputBase &a_rDst) const RT_ OVERRIDE;516 virtual int deserializeFromJson(RTCRestJsonCursor const &a_rCursor) RT_ OVERRIDE;517 virtual int toString(RTCString *a_pDst, uint32_t a_fFlags = 0) const RT_ OVERRIDE;513 virtual RTCRestObjectBase *baseClone() const RT_NOEXCEPT RT_OVERRIDE; 514 virtual int resetToDefault() RT_NOEXCEPT RT_OVERRIDE; 515 virtual RTCRestOutputBase &serializeAsJson(RTCRestOutputBase &a_rDst) const RT_NOEXCEPT RT_OVERRIDE; 516 virtual int deserializeFromJson(RTCRestJsonCursor const &a_rCursor) RT_NOEXCEPT RT_OVERRIDE; 517 virtual int toString(RTCString *a_pDst, uint32_t a_fFlags = 0) const RT_NOEXCEPT RT_OVERRIDE; 518 518 virtual int fromString(RTCString const &a_rValue, const char *a_pszName, PRTERRINFO a_pErrInfo = NULL, 519 uint32_t a_fFlags = kCollectionFormat_Unspecified) RT_ OVERRIDE;520 virtual kTypeClass typeClass(void) const RT_ OVERRIDE;521 virtual const char *typeName(void) const RT_ OVERRIDE;519 uint32_t a_fFlags = kCollectionFormat_Unspecified) RT_NOEXCEPT RT_OVERRIDE; 520 virtual kTypeClass typeClass(void) const RT_NOEXCEPT RT_OVERRIDE; 521 virtual const char *typeName(void) const RT_NOEXCEPT RT_OVERRIDE; 522 522 523 523 /** Factory method. */ 524 static DECLCALLBACK(RTCRestObjectBase *) createInstance(void) ;525 /** Deserialization w/ instantiation.*/526 static FNDESERIALIZEINSTANCEFROMJSON deserializeInstanceFromJson;524 static DECLCALLBACK(RTCRestObjectBase *) createInstance(void) RT_NOEXCEPT; 525 /** @copydoc RTCRestObjectBase::FNDESERIALIZEINSTANCEFROMJSON */ 526 static DECLCALLBACK(int) deserializeInstanceFromJson(RTCRestJsonCursor const &a_rCursor, RTCRestObjectBase **a_ppInstance) RT_NOEXCEPT; 527 527 528 528 public: … … 539 539 public: 540 540 /** Default constructor. */ 541 RTCRestString() ;541 RTCRestString() RT_NOEXCEPT; 542 542 /** Destructor. */ 543 543 virtual ~RTCRestString(); … … 550 550 RTCRestString(const char *a_pszSrc); 551 551 /** Safe copy assignment method. */ 552 int assignCopy(RTCRestString const &a_rThat) ;553 /** Safe copy assignment method. */ 554 int assignCopy(RTCString const &a_rThat) ;555 /** Safe copy assignment method. */ 556 int assignCopy(const char *a_pszThat) ;552 int assignCopy(RTCRestString const &a_rThat) RT_NOEXCEPT; 553 /** Safe copy assignment method. */ 554 int assignCopy(RTCString const &a_rThat) RT_NOEXCEPT; 555 /** Safe copy assignment method. */ 556 int assignCopy(const char *a_pszThat) RT_NOEXCEPT; 557 557 /** Make a clone of this object. */ 558 inline RTCRestString *clone() const { return (RTCRestString *)baseClone(); }558 inline RTCRestString *clone() const RT_NOEXCEPT { return (RTCRestString *)baseClone(); } 559 559 560 560 /* Overridden methods: */ 561 virtual RTCRestObjectBase *baseClone() const RT_ OVERRIDE;562 virtual int setNull(void) RT_ OVERRIDE; /* (ambigious, so overrider it to make sure.) */563 virtual int resetToDefault() RT_ OVERRIDE;564 virtual RTCRestOutputBase &serializeAsJson(RTCRestOutputBase &a_rDst) const RT_ OVERRIDE;565 virtual int deserializeFromJson(RTCRestJsonCursor const &a_rCursor) RT_ OVERRIDE;566 virtual int toString(RTCString *a_pDst, uint32_t a_fFlags = kCollectionFormat_Unspecified) const RT_ OVERRIDE;561 virtual RTCRestObjectBase *baseClone() const RT_NOEXCEPT RT_OVERRIDE; 562 virtual int setNull(void) RT_NOEXCEPT RT_OVERRIDE; /* (ambigious, so overrider it to make sure.) */ 563 virtual int resetToDefault() RT_NOEXCEPT RT_OVERRIDE; 564 virtual RTCRestOutputBase &serializeAsJson(RTCRestOutputBase &a_rDst) const RT_NOEXCEPT RT_OVERRIDE; 565 virtual int deserializeFromJson(RTCRestJsonCursor const &a_rCursor) RT_NOEXCEPT RT_OVERRIDE; 566 virtual int toString(RTCString *a_pDst, uint32_t a_fFlags = kCollectionFormat_Unspecified) const RT_NOEXCEPT RT_OVERRIDE; 567 567 virtual int fromString(RTCString const &a_rValue, const char *a_pszName, PRTERRINFO a_pErrInfo = NULL, 568 uint32_t a_fFlags = kCollectionFormat_Unspecified) RT_ OVERRIDE;569 virtual kTypeClass typeClass(void) const RT_ OVERRIDE;570 virtual const char *typeName(void) const RT_ OVERRIDE;568 uint32_t a_fFlags = kCollectionFormat_Unspecified) RT_NOEXCEPT RT_OVERRIDE; 569 virtual kTypeClass typeClass(void) const RT_NOEXCEPT RT_OVERRIDE; 570 virtual const char *typeName(void) const RT_NOEXCEPT RT_OVERRIDE; 571 571 572 572 /** Factory method. */ 573 static DECLCALLBACK(RTCRestObjectBase *) createInstance(void) ;574 /** Deserialization w/ instantiation.*/575 static FNDESERIALIZEINSTANCEFROMJSON deserializeInstanceFromJson;573 static DECLCALLBACK(RTCRestObjectBase *) createInstance(void) RT_NOEXCEPT; 574 /** @copydoc RTCRestObjectBase::FNDESERIALIZEINSTANCEFROMJSON */ 575 static DECLCALLBACK(int) deserializeInstanceFromJson(RTCRestJsonCursor const &a_rCursor, RTCRestObjectBase **a_ppInstance) RT_NOEXCEPT; 576 576 577 577 /** @name RTCString assignment methods we need to replace to manage the null indicator … … 615 615 /** Default constructor. 616 616 * @note The result is a null-object. */ 617 RTCRestDate() ;617 RTCRestDate() RT_NOEXCEPT; 618 618 /** Copy constructor. */ 619 619 RTCRestDate(RTCRestDate const &a_rThat); … … 623 623 RTCRestDate &operator=(RTCRestDate const &a_rThat); 624 624 /** Safe copy assignment method. */ 625 int assignCopy(RTCRestDate const &a_rThat) ;625 int assignCopy(RTCRestDate const &a_rThat) RT_NOEXCEPT; 626 626 /** Make a clone of this object. */ 627 inline RTCRestDate *clone() const { return (RTCRestDate *)baseClone(); }627 inline RTCRestDate *clone() const RT_NOEXCEPT{ return (RTCRestDate *)baseClone(); } 628 628 629 629 /* Overridden methods: */ 630 virtual RTCRestObjectBase *baseClone() const RT_ OVERRIDE;631 virtual int resetToDefault() RT_ OVERRIDE;632 virtual RTCRestOutputBase &serializeAsJson(RTCRestOutputBase &a_rDst) const RT_ OVERRIDE;633 virtual int deserializeFromJson(RTCRestJsonCursor const &a_rCursor) RT_ OVERRIDE;634 virtual int toString(RTCString *a_pDst, uint32_t a_fFlags = 0) const RT_ OVERRIDE;630 virtual RTCRestObjectBase *baseClone() const RT_NOEXCEPT RT_OVERRIDE; 631 virtual int resetToDefault() RT_NOEXCEPT RT_OVERRIDE; 632 virtual RTCRestOutputBase &serializeAsJson(RTCRestOutputBase &a_rDst) const RT_NOEXCEPT RT_OVERRIDE; 633 virtual int deserializeFromJson(RTCRestJsonCursor const &a_rCursor) RT_NOEXCEPT RT_OVERRIDE; 634 virtual int toString(RTCString *a_pDst, uint32_t a_fFlags = 0) const RT_NOEXCEPT RT_OVERRIDE; 635 635 virtual int fromString(RTCString const &a_rValue, const char *a_pszName, PRTERRINFO a_pErrInfo = NULL, 636 uint32_t a_fFlags = kCollectionFormat_Unspecified) RT_ OVERRIDE;637 virtual kTypeClass typeClass(void) const RT_ OVERRIDE;638 virtual const char *typeName(void) const RT_ OVERRIDE;636 uint32_t a_fFlags = kCollectionFormat_Unspecified) RT_NOEXCEPT RT_OVERRIDE; 637 virtual kTypeClass typeClass(void) const RT_NOEXCEPT RT_OVERRIDE; 638 virtual const char *typeName(void) const RT_NOEXCEPT RT_OVERRIDE; 639 639 640 640 /** Factory method. */ 641 static DECLCALLBACK(RTCRestObjectBase *) createInstance(void) ;642 /** Deserialization w/ instantiation.*/643 static FNDESERIALIZEINSTANCEFROMJSON deserializeInstanceFromJson;641 static DECLCALLBACK(RTCRestObjectBase *) createInstance(void) RT_NOEXCEPT; 642 /** @copydoc RTCRestObjectBase::FNDESERIALIZEINSTANCEFROMJSON */ 643 static DECLCALLBACK(int) deserializeInstanceFromJson(RTCRestJsonCursor const &a_rCursor, RTCRestObjectBase **a_ppInstance) RT_NOEXCEPT; 644 644 645 645 /** Date formats. */ … … 664 664 * @param a_enmFormat The date format to use when formatting it. 665 665 */ 666 int assignValue(PCRTTIMESPEC a_pTimeSpec, kFormat a_enmFormat) ;667 int assignValueRfc2822(PCRTTIMESPEC a_pTimeSpec) ; /**< Convenience method for email/whatnot. */668 int assignValueRfc7131(PCRTTIMESPEC a_pTimeSpec) ; /**< Convenience method for HTTP date. */669 int assignValueRfc3339(PCRTTIMESPEC a_pTimeSpec) ; /**< Convenience method for ISO-8601 timstamp. */666 int assignValue(PCRTTIMESPEC a_pTimeSpec, kFormat a_enmFormat) RT_NOEXCEPT; 667 int assignValueRfc2822(PCRTTIMESPEC a_pTimeSpec) RT_NOEXCEPT; /**< Convenience method for email/whatnot. */ 668 int assignValueRfc7131(PCRTTIMESPEC a_pTimeSpec) RT_NOEXCEPT; /**< Convenience method for HTTP date. */ 669 int assignValueRfc3339(PCRTTIMESPEC a_pTimeSpec) RT_NOEXCEPT; /**< Convenience method for ISO-8601 timstamp. */ 670 670 671 671 /** … … 676 676 * @param a_enmFormat The date format to use when formatting it. 677 677 */ 678 int assignNow(kFormat a_enmFormat) ;679 int assignNowRfc2822() ; /**< Convenience method for email/whatnot. */680 int assignNowRfc7131() ; /**< Convenience method for HTTP date. */681 int assignNowRfc3339() ; /**< Convenience method for ISO-8601 timstamp. */678 int assignNow(kFormat a_enmFormat) RT_NOEXCEPT; 679 int assignNowRfc2822() RT_NOEXCEPT; /**< Convenience method for email/whatnot. */ 680 int assignNowRfc7131() RT_NOEXCEPT; /**< Convenience method for HTTP date. */ 681 int assignNowRfc3339() RT_NOEXCEPT; /**< Convenience method for ISO-8601 timstamp. */ 682 682 683 683 /** … … 688 688 * @param a_enmFormat The date format to try/set. 689 689 */ 690 int setFormat(kFormat a_enmFormat) ;690 int setFormat(kFormat a_enmFormat) RT_NOEXCEPT; 691 691 692 692 /** Check if the value is okay (m_TimeSpec & m_Exploded). */ 693 inline bool isOkay() const 693 inline bool isOkay() const RT_NOEXCEPT { return m_fTimeSpecOkay; } 694 694 /** Get the timespec value. */ 695 inline RTTIMESPEC const &getTimeSpec() const 695 inline RTTIMESPEC const &getTimeSpec() const RT_NOEXCEPT { return m_TimeSpec; } 696 696 /** Get the exploded time. */ 697 inline RTTIME const &getExploded() const 697 inline RTTIME const &getExploded() const RT_NOEXCEPT { return m_Exploded; } 698 698 /** Gets the format. */ 699 inline kFormat getFormat() const 699 inline kFormat getFormat() const RT_NOEXCEPT { return m_enmFormat; } 700 700 /** Get the formatted/raw string value. */ 701 inline RTCString const &getString() const 701 inline RTCString const &getString() const RT_NOEXCEPT { return m_strFormatted; } 702 702 703 703 /** Get nanoseconds since unix epoch. */ 704 inline int64_t getEpochNano() const 704 inline int64_t getEpochNano() const RT_NOEXCEPT { return RTTimeSpecGetNano(&m_TimeSpec); } 705 705 /** Get seconds since unix epoch. */ 706 inline int64_t getEpochSeconds() const 706 inline int64_t getEpochSeconds() const RT_NOEXCEPT { return RTTimeSpecGetSeconds(&m_TimeSpec); } 707 707 /** Checks if UTC time. */ 708 inline bool isUtc() const 708 inline bool isUtc() const RT_NOEXCEPT { return (m_Exploded.fFlags & RTTIME_FLAGS_TYPE_MASK) != RTTIME_FLAGS_TYPE_LOCAL; } 709 709 /** Checks if local time. */ 710 inline bool isLocal() const 710 inline bool isLocal() const RT_NOEXCEPT { return (m_Exploded.fFlags & RTTIME_FLAGS_TYPE_MASK) == RTTIME_FLAGS_TYPE_LOCAL; } 711 711 712 712 protected: … … 732 732 * @param a_enmFormat The format to use. 733 733 */ 734 int explodeAndFormat(kFormat a_enmFormat) ;734 int explodeAndFormat(kFormat a_enmFormat) RT_NOEXCEPT; 735 735 736 736 /** … … 742 742 * @param a_enmFormat The format to use. 743 743 */ 744 int format(kFormat a_enmFormat) ;744 int format(kFormat a_enmFormat) RT_NOEXCEPT; 745 745 746 746 /** … … 752 752 * @param enmFormat Specific format to try, kFormat_Invalid (default) to try guess it. 753 753 */ 754 int decodeFormattedString(kFormat enmFormat = kFormat_Invalid) ;754 int decodeFormattedString(kFormat enmFormat = kFormat_Invalid) RT_NOEXCEPT; 755 755 }; 756 756 … … 775 775 776 776 /** Default constructor. */ 777 RTCRestStringEnumBase() ;777 RTCRestStringEnumBase() RT_NOEXCEPT; 778 778 /** Destructor. */ 779 779 virtual ~RTCRestStringEnumBase(); … … 785 785 786 786 /** Safe copy assignment method. */ 787 int assignCopy(RTCRestStringEnumBase const &a_rThat) ;788 /** Safe copy assignment method. */ 789 inline int assignCopy(RTCString const &a_rThat) { return setByString(a_rThat); }790 /** Safe copy assignment method. */ 791 inline int assignCopy(const char *a_pszThat) { return setByString(a_pszThat); }787 int assignCopy(RTCRestStringEnumBase const &a_rThat) RT_NOEXCEPT; 788 /** Safe copy assignment method. */ 789 inline int assignCopy(RTCString const &a_rThat) RT_NOEXCEPT { return setByString(a_rThat); } 790 /** Safe copy assignment method. */ 791 inline int assignCopy(const char *a_pszThat) RT_NOEXCEPT { return setByString(a_pszThat); } 792 792 793 793 /* Overridden methods: */ 794 virtual int resetToDefault() RT_ OVERRIDE;795 virtual RTCRestOutputBase &serializeAsJson(RTCRestOutputBase &a_rDst) const RT_ OVERRIDE;796 virtual int deserializeFromJson(RTCRestJsonCursor const &a_rCursor) RT_ OVERRIDE;797 virtual int toString(RTCString *a_pDst, uint32_t a_fFlags = kCollectionFormat_Unspecified) const RT_ OVERRIDE;794 virtual int resetToDefault() RT_NOEXCEPT RT_OVERRIDE; 795 virtual RTCRestOutputBase &serializeAsJson(RTCRestOutputBase &a_rDst) const RT_NOEXCEPT RT_OVERRIDE; 796 virtual int deserializeFromJson(RTCRestJsonCursor const &a_rCursor) RT_NOEXCEPT RT_OVERRIDE; 797 virtual int toString(RTCString *a_pDst, uint32_t a_fFlags = kCollectionFormat_Unspecified) const RT_NOEXCEPT RT_OVERRIDE; 798 798 virtual int fromString(RTCString const &a_rValue, const char *a_pszName, PRTERRINFO a_pErrInfo = NULL, 799 uint32_t a_fFlags = kCollectionFormat_Unspecified) RT_ OVERRIDE;800 virtual kTypeClass typeClass(void) const RT_ OVERRIDE;799 uint32_t a_fFlags = kCollectionFormat_Unspecified) RT_NOEXCEPT RT_OVERRIDE; 800 virtual kTypeClass typeClass(void) const RT_NOEXCEPT RT_OVERRIDE; 801 801 802 802 /** … … 809 809 * @param a_cchValue The string value length. Optional. 810 810 */ 811 int setByString(const char *a_pszValue, size_t a_cchValue = RTSTR_MAX) ;811 int setByString(const char *a_pszValue, size_t a_cchValue = RTSTR_MAX) RT_NOEXCEPT; 812 812 813 813 /** … … 819 819 * @param a_rValue The string value. 820 820 */ 821 int setByString(RTCString const &a_rValue) ;821 int setByString(RTCString const &a_rValue) RT_NOEXCEPT; 822 822 823 823 /** 824 824 * Gets the string value. 825 825 */ 826 const char *getString() const ;826 const char *getString() const RT_NOEXCEPT; 827 827 828 828 /** Maps the given string value to an enum. */ 829 int stringToEnum(const char *a_pszValue, size_t a_cchValue = RTSTR_MAX) ;829 int stringToEnum(const char *a_pszValue, size_t a_cchValue = RTSTR_MAX) RT_NOEXCEPT; 830 830 /** Maps the given string value to an enum. */ 831 int stringToEnum(RTCString const &a_rStrValue) ;831 int stringToEnum(RTCString const &a_rStrValue) RT_NOEXCEPT; 832 832 /** Maps the given string value to an enum. */ 833 const char *enumToString(int a_iEnumValue, size_t *a_pcchString) ;833 const char *enumToString(int a_iEnumValue, size_t *a_pcchString) RT_NOEXCEPT; 834 834 835 835 … … 847 847 * @param a_iEnumValue The enum value to set. 848 848 */ 849 bool setWorker(int a_iEnumValue) ;849 bool setWorker(int a_iEnumValue) RT_NOEXCEPT; 850 850 851 851 /** Helper for implementing RTCRestObjectBase::clone(). */ 852 RTCRestObjectBase *cloneWorker(RTCRestStringEnumBase *a_pDst) const ;852 RTCRestObjectBase *cloneWorker(RTCRestStringEnumBase *a_pDst) const RT_NOEXCEPT; 853 853 854 854 /** … … 858 858 * @param pcEntries Where to return the translation table size. 859 859 */ 860 virtual ENUMMAPENTRY const *getMappingTable(size_t *pcEntries) const = 0;860 virtual ENUMMAPENTRY const *getMappingTable(size_t *pcEntries) const RT_NOEXCEPT = 0; 861 861 }; 862 862 … … 874 874 875 875 /** Default constructor */ 876 RTCRestStringEnum() : RTCRestStringEnumBase() { }876 RTCRestStringEnum() RT_NOEXCEPT : RTCRestStringEnumBase() { } 877 877 /** Constructor with initial enum value. */ 878 RTCRestStringEnum(Type a_enmValue) : RTCRestStringEnumBase() { set(a_enmValue); }878 RTCRestStringEnum(Type a_enmValue) RT_NOEXCEPT : RTCRestStringEnumBase() { set(a_enmValue); } 879 879 /** Constructor with string default. */ 880 880 RTCRestStringEnum(const char *a_pszDefault) : RTCRestStringEnumBase() { setByString(a_pszDefault); } … … 882 882 RTCRestStringEnum(RTCRestStringEnum const &a_rThat) : RTCRestStringEnumBase(a_rThat) { } 883 883 /** Make a clone of this object. */ 884 inline RTCRestStringEnum *clone() const { return (RTCRestStringEnum *)baseClone(); } 885 886 virtual RTCRestObjectBase *baseClone() const RT_OVERRIDE { return cloneWorker(new (std::nothrow) RTCRestStringEnum()); } 884 inline RTCRestStringEnum *clone() const RT_NOEXCEPT { return (RTCRestStringEnum *)baseClone(); } 885 886 virtual RTCRestObjectBase *baseClone() const RT_NOEXCEPT RT_OVERRIDE 887 { 888 return cloneWorker(new (std::nothrow) RTCRestStringEnum()); 889 } 887 890 888 891 /** … … 892 895 * no value has been assigned yet. 893 896 */ 894 Type get() const { return (Type)m_iEnumValue; }897 Type get() const RT_NOEXCEPT { return (Type)m_iEnumValue; } 895 898 896 899 /** … … 900 903 * @param a_enmType The new value. 901 904 */ 902 bool set(Type a_enmType) { return setWorker((int)a_enmType); }903 904 virtual const char *typeName(void) const RT_ OVERRIDE { return "RTCRestStringEnum<EnumType>"; }905 bool set(Type a_enmType) RT_NOEXCEPT { return setWorker((int)a_enmType); } 906 907 virtual const char *typeName(void) const RT_NOEXCEPT RT_OVERRIDE { return "RTCRestStringEnum<EnumType>"; } 905 908 906 909 /** Factory method. */ 907 static DECLCALLBACK(RTCRestObjectBase *) createInstance(void) 910 static DECLCALLBACK(RTCRestObjectBase *) createInstance(void) RT_NOEXCEPT 908 911 { 909 912 return new (std::nothrow) RTCRestStringEnum(); … … 911 914 912 915 /** @copydoc RTCRestObjectBase::FNDESERIALIZEINSTANCEFROMJSON */ 913 static DECLCALLBACK(int) deserializeInstanceFromJson(RTCRestJsonCursor const &a_rCursor, RTCRestObjectBase **a_ppInstance) 916 static DECLCALLBACK(int) deserializeInstanceFromJson(RTCRestJsonCursor const &a_rCursor, RTCRestObjectBase **a_ppInstance) RT_NOEXCEPT 914 917 { 915 918 *a_ppInstance = new (std::nothrow) RTCRestStringEnum(); … … 925 928 static const size_t s_cMappingTable; 926 929 927 virtual ENUMMAPENTRY const *getMappingTable(size_t *pcEntries) const RT_ OVERRIDE930 virtual ENUMMAPENTRY const *getMappingTable(size_t *pcEntries) const RT_NOEXCEPT RT_OVERRIDE 928 931 { 929 932 *pcEntries = s_cMappingTable; … … 943 946 public: 944 947 /** Default constructor. */ 945 RTCRestBinary() ;948 RTCRestBinary() RT_NOEXCEPT; 946 949 /** Destructor. */ 947 950 virtual ~RTCRestBinary(); 948 951 949 952 /** Safe copy assignment method. */ 950 virtual int assignCopy(RTCRestBinary const &a_rThat) ;953 virtual int assignCopy(RTCRestBinary const &a_rThat) RT_NOEXCEPT; 951 954 /** Safe buffer copy method. */ 952 virtual int assignCopy(void const *a_pvData, size_t a_cbData) ;955 virtual int assignCopy(void const *a_pvData, size_t a_cbData) RT_NOEXCEPT; 953 956 954 957 /** Use the specified data buffer directly. */ 955 virtual int assignReadOnly(void const *a_pvData, size_t a_cbData) ;958 virtual int assignReadOnly(void const *a_pvData, size_t a_cbData) RT_NOEXCEPT; 956 959 /** Use the specified data buffer directly. */ 957 virtual int assignWriteable(void *a_pvBuf, size_t a_cbBuf) ;960 virtual int assignWriteable(void *a_pvBuf, size_t a_cbBuf) RT_NOEXCEPT; 958 961 /** Frees the data held by the object and resets it default state. */ 959 virtual void freeData() ;962 virtual void freeData() RT_NOEXCEPT; 960 963 961 964 /** Returns a pointer to the data blob. */ 962 inline const uint8_t *getPtr() const { return m_pbData; }965 inline const uint8_t *getPtr() const RT_NOEXCEPT { return m_pbData; } 963 966 /** Gets the size of the data. */ 964 inline size_t getSize() const { return m_cbData; }967 inline size_t getSize() const RT_NOEXCEPT { return m_cbData; } 965 968 966 969 /** Make a clone of this object. */ 967 inline RTCRestBinary *clone() const { return (RTCRestBinary *)baseClone(); }970 inline RTCRestBinary *clone() const RT_NOEXCEPT { return (RTCRestBinary *)baseClone(); } 968 971 969 972 /* Overridden methods: */ 970 virtual RTCRestObjectBase *baseClone() const RT_ OVERRIDE;971 virtual int setNull(void) RT_ OVERRIDE;972 virtual int resetToDefault(void) RT_ OVERRIDE;973 virtual RTCRestOutputBase &serializeAsJson(RTCRestOutputBase &a_rDst) const RT_ OVERRIDE;974 virtual int deserializeFromJson(RTCRestJsonCursor const &a_rCursor) RT_ OVERRIDE;975 virtual int toString(RTCString *a_pDst, uint32_t a_fFlags = kCollectionFormat_Unspecified) const RT_ OVERRIDE;973 virtual RTCRestObjectBase *baseClone() const RT_NOEXCEPT RT_OVERRIDE; 974 virtual int setNull(void) RT_NOEXCEPT RT_OVERRIDE; 975 virtual int resetToDefault(void) RT_NOEXCEPT RT_OVERRIDE; 976 virtual RTCRestOutputBase &serializeAsJson(RTCRestOutputBase &a_rDst) const RT_NOEXCEPT RT_OVERRIDE; 977 virtual int deserializeFromJson(RTCRestJsonCursor const &a_rCursor) RT_NOEXCEPT RT_OVERRIDE; 978 virtual int toString(RTCString *a_pDst, uint32_t a_fFlags = kCollectionFormat_Unspecified) const RT_NOEXCEPT RT_OVERRIDE; 976 979 virtual int fromString(RTCString const &a_rValue, const char *a_pszName, PRTERRINFO a_pErrInfo = NULL, 977 uint32_t a_fFlags = kCollectionFormat_Unspecified) RT_ OVERRIDE;978 virtual kTypeClass typeClass(void) const RT_ OVERRIDE;979 virtual const char *typeName(void) const RT_ OVERRIDE;980 uint32_t a_fFlags = kCollectionFormat_Unspecified) RT_NOEXCEPT RT_OVERRIDE; 981 virtual kTypeClass typeClass(void) const RT_NOEXCEPT RT_OVERRIDE; 982 virtual const char *typeName(void) const RT_NOEXCEPT RT_OVERRIDE; 980 983 981 984 /** Factory method. */ 982 static DECLCALLBACK(RTCRestObjectBase *) createInstance(void) ;983 /** Deserialization w/ instantiation.*/984 static FNDESERIALIZEINSTANCEFROMJSON deserializeInstanceFromJson;985 static DECLCALLBACK(RTCRestObjectBase *) createInstance(void) RT_NOEXCEPT; 986 /** @copydoc RTCRestObjectBase::FNDESERIALIZEINSTANCEFROMJSON */ 987 static DECLCALLBACK(int) deserializeInstanceFromJson(RTCRestJsonCursor const &a_rCursor, RTCRestObjectBase **a_ppInstance) RT_NOEXCEPT; 985 988 986 989 protected: … … 1009 1012 { 1010 1013 public: 1011 RTCRestDataObject() ;1012 RTCRestDataObject(RTCRestDataObject const &a_rThat) ;1014 RTCRestDataObject() RT_NOEXCEPT; 1015 RTCRestDataObject(RTCRestDataObject const &a_rThat) RT_NOEXCEPT; 1013 1016 virtual ~RTCRestDataObject(); 1014 1017 1015 1018 /* Overridden methods:*/ 1016 virtual int resetToDefault() RT_ OVERRIDE;1017 virtual RTCRestOutputBase &serializeAsJson(RTCRestOutputBase &a_rDst) const RT_ OVERRIDE;1018 virtual int deserializeFromJson(RTCRestJsonCursor const &a_rCursor) RT_ OVERRIDE;1019 virtual kTypeClass typeClass(void) const RT_ OVERRIDE;1019 virtual int resetToDefault() RT_NOEXCEPT RT_OVERRIDE; 1020 virtual RTCRestOutputBase &serializeAsJson(RTCRestOutputBase &a_rDst) const RT_NOEXCEPT RT_OVERRIDE; 1021 virtual int deserializeFromJson(RTCRestJsonCursor const &a_rCursor) RT_NOEXCEPT RT_OVERRIDE; 1022 virtual kTypeClass typeClass(void) const RT_NOEXCEPT RT_OVERRIDE; 1020 1023 1021 1024 /** … … 1025 1028 * @param a_rDst The destination for the serialization. 1026 1029 */ 1027 virtual RTCRestOutputBase &serializeMembersAsJson(RTCRestOutputBase &a_rDst) const ;1030 virtual RTCRestOutputBase &serializeMembersAsJson(RTCRestOutputBase &a_rDst) const RT_NOEXCEPT; 1028 1031 1029 1032 /** … … 1037 1040 * @param a_cchName The length of a_rCursor.m_pszName. 1038 1041 */ 1039 virtual int deserializeMemberFromJson(RTCRestJsonCursor const &a_rCursor, size_t a_cchName) ;1042 virtual int deserializeMemberFromJson(RTCRestJsonCursor const &a_rCursor, size_t a_cchName) RT_NOEXCEPT; 1040 1043 1041 1044 protected: … … 1044 1047 1045 1048 /** Copy assignment operator. */ 1046 RTCRestDataObject &operator=(RTCRestDataObject const &a_rThat) ;1047 1048 /** Safe copy assignment method. */ 1049 virtual int assignCopy(RTCRestDataObject const &a_rThat) ;1049 RTCRestDataObject &operator=(RTCRestDataObject const &a_rThat) RT_NOEXCEPT; 1050 1051 /** Safe copy assignment method. */ 1052 virtual int assignCopy(RTCRestDataObject const &a_rThat) RT_NOEXCEPT; 1050 1053 }; 1051 1054 … … 1057 1060 { 1058 1061 public: 1059 RTCRestPolyDataObject() ;1060 RTCRestPolyDataObject(RTCRestPolyDataObject const &a_rThat) ;1062 RTCRestPolyDataObject() RT_NOEXCEPT; 1063 RTCRestPolyDataObject(RTCRestPolyDataObject const &a_rThat) RT_NOEXCEPT; 1061 1064 virtual ~RTCRestPolyDataObject(); 1062 1065 1063 1066 /* Overridden methods:*/ 1064 virtual int resetToDefault() RT_ OVERRIDE;1067 virtual int resetToDefault() RT_NOEXCEPT RT_OVERRIDE; 1065 1068 1066 1069 /** Checks if the instance is of a child class (@c true) or of the parent (@c false). */ 1067 virtual bool isChild() const ;1070 virtual bool isChild() const RT_NOEXCEPT; 1068 1071 1069 1072 protected: 1070 1073 1071 1074 /** Copy assignment operator. */ 1072 RTCRestPolyDataObject &operator=(RTCRestPolyDataObject const &a_rThat) ;1075 RTCRestPolyDataObject &operator=(RTCRestPolyDataObject const &a_rThat) RT_NOEXCEPT; 1073 1076 }; 1074 1077 -
trunk/include/iprt/cpp/restclient.h
r74414 r74425 46 46 public: 47 47 /** Default constructor. */ 48 RTCRestBinaryParameter() ;48 RTCRestBinaryParameter() RT_NOEXCEPT; 49 49 50 50 /** Safe copy assignment method. */ 51 virtual int assignCopy(RTCRestBinaryParameter const &a_rThat) ;51 virtual int assignCopy(RTCRestBinaryParameter const &a_rThat) RT_NOEXCEPT; 52 52 /** Safe copy assignment method. 53 53 * @note Resets callbacks and ASSUMES that @a a_cbData is the content length. */ 54 virtual int assignCopy(RTCRestBinary const &a_rThat) RT_ OVERRIDE;54 virtual int assignCopy(RTCRestBinary const &a_rThat) RT_NOEXCEPT RT_OVERRIDE; 55 55 /** Safe copy assignment method. 56 56 * @note Resets callbacks and ASSUMES that @a a_cbData is the content length. */ 57 virtual int assignCopy(void const *a_pvData, size_t a_cbData) RT_ OVERRIDE;57 virtual int assignCopy(void const *a_pvData, size_t a_cbData) RT_NOEXCEPT RT_OVERRIDE; 58 58 59 59 /** 60 60 * Use the specified data buffer directly. 61 61 * @note Resets callbacks and ASSUMES that @a a_cbData is the content length. */ 62 virtual int assignReadOnly(void const *a_pvData, size_t a_cbData) RT_ OVERRIDE;62 virtual int assignReadOnly(void const *a_pvData, size_t a_cbData) RT_NOEXCEPT RT_OVERRIDE; 63 63 /** 64 64 * Use the specified data buffer directly. 65 65 * @note This will assert and work like assignReadOnly. */ 66 virtual int assignWriteable(void *a_pvBuf, size_t a_cbBuf) RT_ OVERRIDE;66 virtual int assignWriteable(void *a_pvBuf, size_t a_cbBuf) RT_NOEXCEPT RT_OVERRIDE; 67 67 68 68 /** Make a clone of this object. */ 69 inline RTCRestBinaryParameter *clone() const { return (RTCRestBinaryParameter *)baseClone(); }69 inline RTCRestBinaryParameter *clone() const RT_NOEXCEPT { return (RTCRestBinaryParameter *)baseClone(); } 70 70 71 71 /* Overridden methods: */ 72 virtual RTCRestObjectBase *baseClone() const RT_ OVERRIDE;73 virtual int resetToDefault() RT_ OVERRIDE;74 virtual const char *typeName(void) const RT_ OVERRIDE;72 virtual RTCRestObjectBase *baseClone() const RT_NOEXCEPT RT_OVERRIDE; 73 virtual int resetToDefault() RT_NOEXCEPT RT_OVERRIDE; 74 virtual const char *typeName(void) const RT_NOEXCEPT RT_OVERRIDE; 75 75 76 76 /** Factory method. */ 77 static DECLCALLBACK(RTCRestObjectBase *) createInstance(void) ;77 static DECLCALLBACK(RTCRestObjectBase *) createInstance(void) RT_NOEXCEPT; 78 78 79 79 /** 80 80 * Retrieves the callback data. 81 81 */ 82 inline void *getCallbackData() const { return m_pvCallbackData; }82 inline void *getCallbackData() const RT_NOEXCEPT { return m_pvCallbackData; } 83 83 84 84 /** … … 89 89 * If NULL, no content type is set. 90 90 */ 91 int setContentType(const char *a_pszContentType) ;91 int setContentType(const char *a_pszContentType) RT_NOEXCEPT; 92 92 93 93 /** 94 94 * Gets the content type that was set. 95 95 */ 96 inline RTCString const &getContentType() const { return m_strContentType; }96 inline RTCString const &getContentType() const RT_NOEXCEPT { return m_strContentType; } 97 97 98 98 /** 99 99 * Gets the content-length value (UINT64_MAX if not available). 100 100 */ 101 inline uint64_t getContentLength() const { return m_cbContentLength; }101 inline uint64_t getContentLength() const RT_NOEXCEPT { return m_cbContentLength; } 102 102 103 103 /** … … 118 118 */ 119 119 typedef DECLCALLBACK(int) FNPRODUCER(RTCRestBinaryParameter *a_pThis, void *a_pvDst, size_t a_cbDst, 120 uint64_t a_offContent, size_t *a_pcbActual) ;120 uint64_t a_offContent, size_t *a_pcbActual) /*RT_NOEXCEPT*/; 121 121 /** Pointer to a byte producer callback. */ 122 122 typedef FNPRODUCER *PFNPRODUCER; … … 134 134 * @note This will drop any buffer previously registered using setUploadData(). 135 135 */ 136 void setProducerCallback(PFNPRODUCER a_pfnProducer, void *a_pvCallbackData = NULL, uint64_t a_cbContentLength = UINT64_MAX) ;136 void setProducerCallback(PFNPRODUCER a_pfnProducer, void *a_pvCallbackData = NULL, uint64_t a_cbContentLength = UINT64_MAX) RT_NOEXCEPT; 137 137 138 138 /** … … 143 143 * @internal 144 144 */ 145 virtual int xmitPrepare(RTHTTP a_hHttp) const ;145 virtual int xmitPrepare(RTHTTP a_hHttp) const RT_NOEXCEPT; 146 146 147 147 /** … … 151 151 * @internal 152 152 */ 153 virtual void xmitComplete(RTHTTP a_hHttp) const ;153 virtual void xmitComplete(RTHTTP a_hHttp) const RT_NOEXCEPT; 154 154 155 155 protected: … … 164 164 void *m_pvCallbackData; 165 165 166 /** Callback for use with RTHttpSetUploadCallback. */ 167 static FNRTHTTPUPLOADCALLBACK xmitHttpCallback; 166 /** @copydoc FNRTHTTPUPLOADCALLBACK */ 167 static DECLCALLBACK(int) xmitHttpCallback(RTHTTP hHttp, void *pvBuf, size_t cbBuf, uint64_t offContent, 168 size_t *pcbActual, void *pvUser) RT_NOEXCEPT; 168 169 169 170 private: … … 183 184 public: 184 185 /** Default constructor. */ 185 RTCRestBinaryResponse() ;186 RTCRestBinaryResponse() RT_NOEXCEPT; 186 187 187 188 /** Safe copy assignment method. */ 188 virtual int assignCopy(RTCRestBinaryResponse const &a_rThat) ;189 virtual int assignCopy(RTCRestBinaryResponse const &a_rThat) RT_NOEXCEPT; 189 190 /** Safe copy assignment method. */ 190 virtual int assignCopy(RTCRestBinary const &a_rThat) RT_ OVERRIDE;191 virtual int assignCopy(RTCRestBinary const &a_rThat) RT_NOEXCEPT RT_OVERRIDE; 191 192 /** Safe copy assignment method. 192 193 * @note This will assert and fail as it makes no sense for a download. */ 193 virtual int assignCopy(void const *a_pvData, size_t a_cbData) RT_ OVERRIDE;194 virtual int assignCopy(void const *a_pvData, size_t a_cbData) RT_NOEXCEPT RT_OVERRIDE; 194 195 195 196 /** … … 197 198 * @note This will assert and fail as it makes no sense for a download. 198 199 */ 199 virtual int assignReadOnly(void const *a_pvData, size_t a_cbData) RT_ OVERRIDE;200 virtual int assignReadOnly(void const *a_pvData, size_t a_cbData) RT_NOEXCEPT RT_OVERRIDE; 200 201 /** 201 202 * Use the specified data buffer directly. 202 203 * @note This will drop any previously registered producer callback and user data. 203 204 */ 204 virtual int assignWriteable(void *a_pvBuf, size_t a_cbBuf) RT_ OVERRIDE;205 virtual int assignWriteable(void *a_pvBuf, size_t a_cbBuf) RT_NOEXCEPT RT_OVERRIDE; 205 206 206 207 /** Make a clone of this object. */ 207 inline RTCRestBinaryResponse *clone() const { return (RTCRestBinaryResponse *)baseClone(); }208 inline RTCRestBinaryResponse *clone() const RT_NOEXCEPT { return (RTCRestBinaryResponse *)baseClone(); } 208 209 209 210 /* Overridden methods: */ 210 virtual RTCRestObjectBase *baseClone() const RT_ OVERRIDE;211 virtual int resetToDefault() RT_ OVERRIDE;212 virtual const char *typeName(void) const RT_ OVERRIDE;211 virtual RTCRestObjectBase *baseClone() const RT_NOEXCEPT RT_OVERRIDE; 212 virtual int resetToDefault() RT_NOEXCEPT RT_OVERRIDE; 213 virtual const char *typeName(void) const RT_NOEXCEPT RT_OVERRIDE; 213 214 214 215 /** Factory method. */ 215 static DECLCALLBACK(RTCRestObjectBase *) createInstance(void) ;216 static DECLCALLBACK(RTCRestObjectBase *) createInstance(void) RT_NOEXCEPT; 216 217 217 218 /** 218 219 * Retrieves the callback data. 219 220 */ 220 inline void *getCallbackData() const { return m_pvCallbackData; }221 inline void *getCallbackData() const RT_NOEXCEPT { return m_pvCallbackData; } 221 222 222 223 /** … … 230 231 * 32-bit hosts and 128MiB for 64-bit). 231 232 */ 232 void setMaxDownloadSize(size_t a_cbMaxDownload) ;233 void setMaxDownloadSize(size_t a_cbMaxDownload) RT_NOEXCEPT; 233 234 234 235 /** 235 236 * Gets the content-length value (UINT64_MAX if not available). 236 237 */ 237 inline uint64_t getContentLength() const { return m_cbContentLength; }238 inline uint64_t getContentLength() const RT_NOEXCEPT { return m_cbContentLength; } 238 239 239 240 /** … … 255 256 */ 256 257 typedef DECLCALLBACK(int) FNCONSUMER(RTCRestBinaryResponse *a_pThis, const void *a_pvSrc, size_t a_cbSrc, 257 uint32_t a_uHttpStatus, uint64_t a_offContent, uint64_t a_cbContent) ;258 uint32_t a_uHttpStatus, uint64_t a_offContent, uint64_t a_cbContent) /*RT_NOEXCEPT*/; 258 259 /** Pointer to a byte consumer callback. */ 259 260 typedef FNCONSUMER *PFNCONSUMER; … … 267 268 * using getCallbackData(). 268 269 */ 269 void setConsumerCallback(PFNCONSUMER a_pfnConsumer, void *a_pvCallbackData = NULL) ;270 void setConsumerCallback(PFNCONSUMER a_pfnConsumer, void *a_pvCallbackData = NULL) RT_NOEXCEPT; 270 271 271 272 /** … … 277 278 * @internal 278 279 */ 279 virtual int receivePrepare(RTHTTP a_hHttp, uint32_t a_fCallbackFlags) ;280 virtual int receivePrepare(RTHTTP a_hHttp, uint32_t a_fCallbackFlags) RT_NOEXCEPT; 280 281 281 282 /** … … 285 286 * @internal 286 287 */ 287 virtual void receiveComplete(RTHTTP a_hHttp) ;288 virtual void receiveComplete(RTHTTP a_hHttp) RT_NOEXCEPT; 288 289 289 290 protected: … … 300 301 size_t m_cbMaxDownload; 301 302 302 /** Callback for use with RTHttpSetDownloadCallback. */ 303 static FNRTHTTPDOWNLOADCALLBACK receiveHttpCallback; 303 /** @copydoc FNRTHTTPDOWNLOADCALLBACK. */ 304 static DECLCALLBACK(int) receiveHttpCallback(RTHTTP hHttp, void const *pvBuf, size_t cbBuf, uint32_t uHttpStatus, 305 uint64_t offContent, uint64_t cbContent, void *pvUser) RT_NOEXCEPT; 304 306 305 307 private: … … 331 333 { 332 334 public: 333 RTCRestClientRequestBase() ;335 RTCRestClientRequestBase() RT_NOEXCEPT; 334 336 virtual ~RTCRestClientRequestBase(); 335 RTCRestClientRequestBase(RTCRestClientRequestBase const &a_rThat) ;336 RTCRestClientRequestBase &operator=(RTCRestClientRequestBase const &a_rThat) ;337 RTCRestClientRequestBase(RTCRestClientRequestBase const &a_rThat) RT_NOEXCEPT; 338 RTCRestClientRequestBase &operator=(RTCRestClientRequestBase const &a_rThat) RT_NOEXCEPT; 337 339 338 340 /** … … 340 342 * @returns IPRT status code. 341 343 */ 342 virtual int resetToDefault() = 0;344 virtual int resetToDefault() RT_NOEXCEPT = 0; 343 345 344 346 /** … … 351 353 * @param a_pStrBody Where to set body parameters. 352 354 */ 353 virtual int xmitPrepare(RTCString *a_pStrPath, RTCString *a_pStrQuery, RTHTTP a_hHttp, RTCString *a_pStrBody) const = 0;355 virtual int xmitPrepare(RTCString *a_pStrPath, RTCString *a_pStrQuery, RTHTTP a_hHttp, RTCString *a_pStrBody) const RT_NOEXCEPT = 0; 354 356 355 357 /** … … 359 361 * @param a_hHttp The HTTP handle the request was performed on. 360 362 */ 361 virtual void xmitComplete(int a_rcStatus, RTHTTP a_hHttp) const = 0;363 virtual void xmitComplete(int a_rcStatus, RTHTTP a_hHttp) const RT_NOEXCEPT = 0; 362 364 363 365 /** 364 366 * Checks if there are were any assignment errors. 365 367 */ 366 inline bool hasAssignmentErrors() const { return m_fErrorSet != 0; }368 inline bool hasAssignmentErrors() const RT_NOEXCEPT { return m_fErrorSet != 0; } 367 369 368 370 protected: … … 400 402 */ 401 403 int doPathParameters(RTCString *a_pStrPath, const char *a_pszPathTemplate, size_t a_cchPathTemplate, 402 PATHPARAMDESC const *a_paPathParams, PATHPARAMSTATE *a_paPathParamStates, size_t a_cPathParams) const ;404 PATHPARAMDESC const *a_paPathParams, PATHPARAMSTATE *a_paPathParamStates, size_t a_cPathParams) const RT_NOEXCEPT; 403 405 404 406 /** Query parameter descriptor. */ … … 421 423 */ 422 424 int doQueryParameters(RTCString *a_pStrQuery, QUERYPARAMDESC const *a_paQueryParams, 423 RTCRestObjectBase const **a_papQueryParamObjs, size_t a_cQueryParams) const ;425 RTCRestObjectBase const **a_papQueryParamObjs, size_t a_cQueryParams) const RT_NOEXCEPT; 424 426 425 427 /** Header parameter descriptor. */ … … 443 445 */ 444 446 int doHeaderParameters(RTHTTP a_hHttp, HEADERPARAMDESC const *a_paHeaderParams, 445 RTCRestObjectBase const **a_papHeaderParamObjs, size_t a_cHeaderParams) const ;447 RTCRestObjectBase const **a_papHeaderParamObjs, size_t a_cHeaderParams) const RT_NOEXCEPT; 446 448 }; 447 449 … … 454 456 public: 455 457 /** Default constructor. */ 456 RTCRestClientResponseBase() ;458 RTCRestClientResponseBase() RT_NOEXCEPT; 457 459 /** Destructor. */ 458 460 virtual ~RTCRestClientResponseBase(); … … 465 467 * Resets the object state. 466 468 */ 467 virtual void reset(void) ;469 virtual void reset(void) RT_NOEXCEPT; 468 470 469 471 /** … … 477 479 * @param a_hHttp The HTTP handle to prepare for receiving. 478 480 */ 479 virtual int receivePrepare(RTHTTP a_hHttp) ;481 virtual int receivePrepare(RTHTTP a_hHttp) RT_NOEXCEPT; 480 482 481 483 /** … … 489 491 * @note Called before consumeBody() but after consumeHeader(). 490 492 */ 491 virtual void receiveComplete(int a_rcStatus, RTHTTP a_hHttp) ;493 virtual void receiveComplete(int a_rcStatus, RTHTTP a_hHttp) RT_NOEXCEPT; 492 494 493 495 /** … … 499 501 * @note Called after consumeHeader(). 500 502 */ 501 virtual void consumeBody(const char *a_pchData, size_t a_cbData) ;503 virtual void consumeBody(const char *a_pchData, size_t a_cbData) RT_NOEXCEPT; 502 504 503 505 /** … … 506 508 * @returns IPRT status code. 507 509 */ 508 virtual void receiveFinal() ;510 virtual void receiveFinal() RT_NOEXCEPT; 509 511 510 512 /** … … 512 514 * @returns Negative numbers are IPRT errors, positive are HTTP status codes. 513 515 */ 514 inline int getStatus() { return m_rcStatus; }516 inline int getStatus() const RT_NOEXCEPT { return m_rcStatus; } 515 517 516 518 /** … … 518 520 * @returns HTTP status code or VERR_NOT_AVAILABLE. 519 521 */ 520 inline int getHttpStatus() { return m_rcHttp; }522 inline int getHttpStatus() const RT_NOEXCEPT { return m_rcHttp; } 521 523 522 524 /** 523 525 * Getter for m_pErrInfo. 524 526 */ 525 inline PCRTERRINFO getErrInfo(void) const { return m_pErrInfo; }527 inline PCRTERRINFO getErrInfo(void) const RT_NOEXCEPT { return m_pErrInfo; } 526 528 527 529 /** 528 530 * Getter for m_strContentType. 529 531 */ 530 inline RTCString const &getContentType(void) const { return m_strContentType; }532 inline RTCString const &getContentType(void) const RT_NOEXCEPT { return m_strContentType; } 531 533 532 534 … … 541 543 RTCString m_strContentType; 542 544 543 PRTERRINFO getErrInfoInternal(void) ;544 void deleteErrInfo(void) ;545 void copyErrInfo(PCRTERRINFO pErrInfo) ;545 PRTERRINFO getErrInfoInternal(void) RT_NOEXCEPT; 546 void deleteErrInfo(void) RT_NOEXCEPT; 547 void copyErrInfo(PCRTERRINFO pErrInfo) RT_NOEXCEPT; 546 548 547 549 /** … … 556 558 * @param ... Message arguments. 557 559 */ 558 int addError(int a_rc, const char *a_pszFormat, ...) ;560 int addError(int a_rc, const char *a_pszFormat, ...) RT_NOEXCEPT; 559 561 560 562 /** … … 570 572 */ 571 573 int deserializeHeader(RTCRestObjectBase *a_pObj, const char *a_pchValue, size_t a_cchValue, 572 uint32_t a_fFlags, const char *a_pszErrorTag) ;574 uint32_t a_fFlags, const char *a_pszErrorTag) RT_NOEXCEPT; 573 575 574 576 /** … … 587 589 */ 588 590 int deserializeHeaderIntoMap(RTCRestStringMapBase *a_pMap, const char *a_pchField, size_t a_cchField, 589 const char *a_pchValue, size_t a_cchValue, uint32_t a_fFlags, const char *a_pszErrorTag) ;591 const char *a_pchValue, size_t a_cchValue, uint32_t a_fFlags, const char *a_pszErrorTag) RT_NOEXCEPT; 590 592 591 593 /** … … 597 599 * @param a_pszBodyName The name of the body parameter. 598 600 */ 599 void deserializeBody(const char *a_pchData, size_t a_cbData, const char *a_pszBodyName) ;601 void deserializeBody(const char *a_pchData, size_t a_cbData, const char *a_pszBodyName) RT_NOEXCEPT; 600 602 601 603 /** … … 604 606 * @param a_rCursor The JSON cursor. 605 607 */ 606 virtual void deserializeBodyFromJsonCursor(RTCRestJsonCursor const &a_rCursor) ;608 virtual void deserializeBodyFromJsonCursor(RTCRestJsonCursor const &a_rCursor) RT_NOEXCEPT; 607 609 608 610 /** … … 613 615 public: 614 616 RTCRestClientResponseBase *m_pThat; /**< Pointer to response object. */ 615 PrimaryJsonCursorForBody(RTJSONVAL hValue, const char *pszName, RTCRestClientResponseBase *a_pThat) ;616 virtual int addError(RTCRestJsonCursor const &a_rCursor, int a_rc, const char *a_pszFormat, ...) RT_ OVERRIDE;617 virtual int unknownField(RTCRestJsonCursor const &a_rCursor) RT_ OVERRIDE;617 PrimaryJsonCursorForBody(RTJSONVAL hValue, const char *pszName, RTCRestClientResponseBase *a_pThat) RT_NOEXCEPT; 618 virtual int addError(RTCRestJsonCursor const &a_rCursor, int a_rc, const char *a_pszFormat, ...) RT_NOEXCEPT RT_OVERRIDE; 619 virtual int unknownField(RTCRestJsonCursor const &a_rCursor) RT_NOEXCEPT RT_OVERRIDE; 618 620 }; 619 621 … … 634 636 */ 635 637 virtual int consumeHeader(uint32_t a_uMatchWord, const char *a_pchField, size_t a_cchField, 636 const char *a_pchValue, size_t a_cchValue) ;638 const char *a_pchValue, size_t a_cchValue) RT_NOEXCEPT; 637 639 638 640 private: 639 641 /** Callback for use with RTHttpSetHeaderCallback. */ 640 static FNRTHTTPHEADERCALLBACK receiveHttpHeaderCallback; 642 static DECLCALLBACK(int) receiveHttpHeaderCallback(RTHTTP hHttp, uint32_t uMatchWord, const char *pchField, size_t cchField, 643 const char *pchValue, size_t cchValue, void *pvUser) RT_NOEXCEPT; 641 644 }; 642 645 … … 648 651 { 649 652 public: 650 RTCRestClientApiBase() ;653 RTCRestClientApiBase() RT_NOEXCEPT; 651 654 virtual ~RTCRestClientApiBase(); 652 655 … … 656 659 * Gets the server URL. 657 660 */ 658 const char *getServerUrl(void) const ;661 const char *getServerUrl(void) const RT_NOEXCEPT; 659 662 660 663 /** … … 663 666 * @param a_pszUrl The new server URL. NULL/empty to reset to default. 664 667 */ 665 int setServerUrl(const char *a_pszUrl) ;668 int setServerUrl(const char *a_pszUrl) RT_NOEXCEPT; 666 669 667 670 /** … … 670 673 * @param a_pszScheme The new scheme. Does not accept NULL or empty string. 671 674 */ 672 int setServerScheme(const char *a_pszScheme) ;675 int setServerScheme(const char *a_pszScheme) RT_NOEXCEPT; 673 676 674 677 /** … … 677 680 * @param a_pszAuthority The new authority. Does not accept NULL or empty string. 678 681 */ 679 int setServerAuthority(const char *a_pszAuthority) ;682 int setServerAuthority(const char *a_pszAuthority) RT_NOEXCEPT; 680 683 681 684 /** … … 684 687 * @param a_pszBasePath The new base path. Does not accept NULL or empty string. 685 688 */ 686 int setServerBasePath(const char *a_pszBasePath) ;689 int setServerBasePath(const char *a_pszBasePath) RT_NOEXCEPT; 687 690 688 691 /** … … 690 693 * @returns Server URL. 691 694 */ 692 virtual const char *getDefaultServerUrl() const = 0;695 virtual const char *getDefaultServerUrl() const RT_NOEXCEPT = 0; 693 696 694 697 /** … … 696 699 * @returns Host string (start of URL). 697 700 */ 698 virtual const char *getDefaultServerBasePath() const = 0;701 virtual const char *getDefaultServerBasePath() const RT_NOEXCEPT = 0; 699 702 /** @} */ 700 703 … … 720 723 * @returns IPRT status code. 721 724 */ 722 virtual int reinitHttpInstance() ;725 virtual int reinitHttpInstance() RT_NOEXCEPT; 723 726 724 727 /** … … 735 738 */ 736 739 virtual int xmitReady(RTHTTP a_hHttp, RTCString const &a_rStrFullUrl, RTHTTPMETHOD a_enmHttpMethod, 737 RTCString const &a_rStrXmitBody, uint32_t a_fFlags) ;740 RTCString const &a_rStrXmitBody, uint32_t a_fFlags) RT_NOEXCEPT; 738 741 739 742 /** … … 748 751 */ 749 752 virtual int doCall(RTCRestClientRequestBase const &a_rRequest, RTHTTPMETHOD a_enmHttpMethod, 750 RTCRestClientResponseBase *a_pResponse, const char *a_pszMethod, uint32_t a_fFlags) ;753 RTCRestClientResponseBase *a_pResponse, const char *a_pszMethod, uint32_t a_fFlags) RT_NOEXCEPT; 751 754 752 755 /** … … 766 769 */ 767 770 int ociSignRequest(RTHTTP a_hHttp, RTCString const &a_rStrFullUrl, RTHTTPMETHOD a_enmHttpMethod, 768 RTCString const &a_rStrXmitBody, uint32_t a_fFlags, RTCRKEY a_hKey, RTCString const &a_rStrKeyId) ;771 RTCString const &a_rStrXmitBody, uint32_t a_fFlags, RTCRKEY a_hKey, RTCString const &a_rStrKeyId) RT_NOEXCEPT; 769 772 770 773 /** … … 778 781 * @param a_cchSrc The length of the new component. 779 782 */ 780 int setServerUrlPart(const char *a_pszServerUrl, size_t a_offDst, size_t a_cchDst, const char *a_pszSrc, size_t a_cchSrc) ;783 int setServerUrlPart(const char *a_pszServerUrl, size_t a_offDst, size_t a_cchDst, const char *a_pszSrc, size_t a_cchSrc) RT_NOEXCEPT; 781 784 }; 782 785 -
trunk/include/iprt/cpp/restoutput.h
r74415 r74425 45 45 { 46 46 public: 47 RTCRestOutputBase() ;47 RTCRestOutputBase() RT_NOEXCEPT; 48 48 virtual ~RTCRestOutputBase(); 49 49 … … 55 55 * @param a_cchToWrite The length of the string 56 56 */ 57 virtual size_t output(const char *a_pchString, size_t a_cchToWrite) = 0;57 virtual size_t output(const char *a_pchString, size_t a_cchToWrite) RT_NOEXCEPT = 0; 58 58 59 59 /** … … 64 64 * @param ... Argument specfied in @a pszFormat. 65 65 */ 66 inline size_t printf(const char *pszFormat, ...) RT_ IPRT_FORMAT_ATTR(2, 3)66 inline size_t printf(const char *pszFormat, ...) RT_NOEXCEPT RT_IPRT_FORMAT_ATTR(2, 3) 67 67 { 68 68 va_list va; … … 80 80 * @param va Argument specfied in @a pszFormat. 81 81 */ 82 size_t vprintf(const char *pszFormat, va_list va) RT_ IPRT_FORMAT_ATTR(2, 0);82 size_t vprintf(const char *pszFormat, va_list va) RT_NOEXCEPT RT_IPRT_FORMAT_ATTR(2, 0); 83 83 84 84 /** … … 86 86 * @returns Previous output state. Pass to endArray() when done. 87 87 */ 88 virtual uint32_t beginArray() ;88 virtual uint32_t beginArray() RT_NOEXCEPT; 89 89 90 90 /** … … 92 92 * @param a_uOldState Previous output state (returned by beginArray()). 93 93 */ 94 virtual void endArray(uint32_t a_uOldState) ;94 virtual void endArray(uint32_t a_uOldState) RT_NOEXCEPT; 95 95 96 96 /** … … 98 98 * @returns Previous output state. Pass to endObject() when done. 99 99 */ 100 virtual uint32_t beginObject() ;100 virtual uint32_t beginObject() RT_NOEXCEPT; 101 101 102 102 /** … … 104 104 * @param a_uOldState Previous output state (returned by beginObject()). 105 105 */ 106 virtual void endObject(uint32_t a_uOldState) ;106 virtual void endObject(uint32_t a_uOldState) RT_NOEXCEPT; 107 107 108 108 /** … … 110 110 * This is called before a value, not after. 111 111 */ 112 virtual void valueSeparator() ;112 virtual void valueSeparator() RT_NOEXCEPT; 113 113 114 114 /** 115 115 * Outputs a value separator, name and name separator. 116 116 */ 117 virtual void valueSeparatorAndName(const char *a_pszName, size_t a_cchName) ;117 virtual void valueSeparatorAndName(const char *a_pszName, size_t a_cchName) RT_NOEXCEPT; 118 118 119 119 /** Outputs a null-value. */ 120 void nullValue() ;120 void nullValue() RT_NOEXCEPT; 121 121 122 122 protected: … … 125 125 126 126 /** @callback_method_impl{FNRTSTROUTPUT} */ 127 static DECLCALLBACK(size_t) printfOutputCallback(void *pvArg, const char *pachChars, size_t cbChars) ;127 static DECLCALLBACK(size_t) printfOutputCallback(void *pvArg, const char *pachChars, size_t cbChars) RT_NOEXCEPT; 128 128 }; 129 129 … … 135 135 { 136 136 public: 137 RTCRestOutputPrettyBase() ;137 RTCRestOutputPrettyBase() RT_NOEXCEPT; 138 138 virtual ~RTCRestOutputPrettyBase(); 139 139 … … 142 142 * @returns Previous output state. Pass to endArray() when done. 143 143 */ 144 virtual uint32_t beginArray() RT_ OVERRIDE;144 virtual uint32_t beginArray() RT_NOEXCEPT RT_OVERRIDE; 145 145 146 146 /** … … 148 148 * @param a_uOldState Previous output state (returned by beginArray()). 149 149 */ 150 virtual void endArray(uint32_t a_uOldState) RT_ OVERRIDE;150 virtual void endArray(uint32_t a_uOldState) RT_NOEXCEPT RT_OVERRIDE; 151 151 152 152 /** … … 154 154 * @returns Previous output state. Pass to endObject() when done. 155 155 */ 156 virtual uint32_t beginObject() RT_ OVERRIDE;156 virtual uint32_t beginObject() RT_NOEXCEPT RT_OVERRIDE; 157 157 158 158 /** … … 160 160 * @param a_uOldState Previous output state (returned by beginObject()). 161 161 */ 162 virtual void endObject(uint32_t a_uOldState) RT_ OVERRIDE;162 virtual void endObject(uint32_t a_uOldState) RT_NOEXCEPT RT_OVERRIDE; 163 163 164 164 /** … … 166 166 * This is called before a value, not after. 167 167 */ 168 virtual void valueSeparator() RT_ OVERRIDE;168 virtual void valueSeparator() RT_NOEXCEPT RT_OVERRIDE; 169 169 170 170 /** 171 171 * Outputs a value separator, name and name separator. 172 172 */ 173 virtual void valueSeparatorAndName(const char *a_pszName, size_t a_cchName) RT_ OVERRIDE;173 virtual void valueSeparatorAndName(const char *a_pszName, size_t a_cchName) RT_NOEXCEPT RT_OVERRIDE; 174 174 175 175 protected: 176 176 /** Helper for outputting the correct amount of indentation. */ 177 void outputIndentation() ;177 void outputIndentation() RT_NOEXCEPT; 178 178 }; 179 179 … … 192 192 * nuke the string content before starting the output. 193 193 */ 194 RTCRestOutputToString(RTCString *a_pDst, bool a_fAppend = false) ;194 RTCRestOutputToString(RTCString *a_pDst, bool a_fAppend = false) RT_NOEXCEPT; 195 195 virtual ~RTCRestOutputToString(); 196 196 197 virtual size_t output(const char *a_pchString, size_t a_cchToWrite) RT_ OVERRIDE;197 virtual size_t output(const char *a_pchString, size_t a_cchToWrite) RT_NOEXCEPT RT_OVERRIDE; 198 198 199 199 /** … … 206 206 * more output afterwards. 207 207 */ 208 virtual RTCString *finalize() ;208 virtual RTCString *finalize() RT_NOEXCEPT; 209 209 210 210 protected: … … 233 233 * nuke the string content before starting the output. 234 234 */ 235 RTCRestOutputPrettyToString(RTCString *a_pDst, bool a_fAppend = false) ;235 RTCRestOutputPrettyToString(RTCString *a_pDst, bool a_fAppend = false) RT_NOEXCEPT; 236 236 virtual ~RTCRestOutputPrettyToString(); 237 237 238 virtual size_t output(const char *a_pchString, size_t a_cchToWrite) RT_ OVERRIDE;238 virtual size_t output(const char *a_pchString, size_t a_cchToWrite) RT_NOEXCEPT RT_OVERRIDE; 239 239 240 240 /** … … 247 247 * more output afterwards. 248 248 */ 249 virtual RTCString *finalize() ;249 virtual RTCString *finalize() RT_NOEXCEPT; 250 250 251 251 protected: -
trunk/include/iprt/cpp/reststringmap.h
r74402 r74425 44 44 public: 45 45 /** Default destructor. */ 46 RTCRestStringMapBase() ;46 RTCRestStringMapBase() RT_NOEXCEPT; 47 47 /** Copy constructor. */ 48 48 RTCRestStringMapBase(RTCRestStringMapBase const &a_rThat); … … 53 53 54 54 /* Overridden methods: */ 55 virtual RTCRestObjectBase *baseClone() const RT_ OVERRIDE;56 virtual int resetToDefault() RT_ OVERRIDE;57 virtual RTCRestOutputBase &serializeAsJson(RTCRestOutputBase &a_rDst) const RT_ OVERRIDE;58 virtual int deserializeFromJson(RTCRestJsonCursor const &a_rCursor) RT_ OVERRIDE;55 virtual RTCRestObjectBase *baseClone() const RT_NOEXCEPT RT_OVERRIDE; 56 virtual int resetToDefault() RT_NOEXCEPT RT_OVERRIDE; 57 virtual RTCRestOutputBase &serializeAsJson(RTCRestOutputBase &a_rDst) const RT_NOEXCEPT RT_OVERRIDE; 58 virtual int deserializeFromJson(RTCRestJsonCursor const &a_rCursor) RT_NOEXCEPT RT_OVERRIDE; 59 59 // later? 60 //virtual int toString(RTCString *a_pDst, uint32_t a_fFlags = kCollectionFormat_Unspecified) const RT_ OVERRIDE;60 //virtual int toString(RTCString *a_pDst, uint32_t a_fFlags = kCollectionFormat_Unspecified) const RT_NOEXCEPT RT_OVERRIDE; 61 61 //virtual int fromString(RTCString const &a_rValue, const char *a_pszName, PRTERRINFO a_pErrInfo = NULL, 62 // uint32_t a_fFlags = kCollectionFormat_Unspecified) RT_ OVERRIDE;63 virtual kTypeClass typeClass(void) const RT_ OVERRIDE;64 virtual const char *typeName(void) const RT_ OVERRIDE;62 // uint32_t a_fFlags = kCollectionFormat_Unspecified) RT_NOEXCEPT RT_OVERRIDE; 63 virtual kTypeClass typeClass(void) const RT_NOEXCEPT RT_OVERRIDE; 64 virtual const char *typeName(void) const RT_NOEXCEPT RT_OVERRIDE; 65 65 66 66 /** 67 67 * Clear the content of the map. 68 68 */ 69 void clear() ;69 void clear() RT_NOEXCEPT; 70 70 71 71 /** 72 72 * Checks if the map is empty. 73 73 */ 74 inline bool isEmpty() const { return m_cEntries == 0; }74 inline bool isEmpty() const RT_NOEXCEPT { return m_cEntries == 0; } 75 75 76 76 /** 77 77 * Gets the number of entries in the map. 78 78 */ 79 size_t size() const ;79 size_t size() const RT_NOEXCEPT; 80 80 81 81 /** … … 84 84 * @param a_pszKey The key to check fo. 85 85 */ 86 bool containsKey(const char *a_pszKey) const ;86 bool containsKey(const char *a_pszKey) const RT_NOEXCEPT; 87 87 88 88 /** … … 91 91 * @param a_rStrKey The key to check fo. 92 92 */ 93 bool containsKey(RTCString const &a_rStrKey) const ;93 bool containsKey(RTCString const &a_rStrKey) const RT_NOEXCEPT; 94 94 95 95 /** … … 98 98 * @param a_pszKey The key to remove. 99 99 */ 100 bool remove(const char *a_pszKey) ;100 bool remove(const char *a_pszKey) RT_NOEXCEPT; 101 101 102 102 /** … … 105 105 * @param a_rStrKey The key to remove. 106 106 */ 107 bool remove(RTCString const &a_rStrKey) ;107 bool remove(RTCString const &a_rStrKey) RT_NOEXCEPT; 108 108 109 109 /** … … 117 117 * @param a_fReplace Whether to replace or fail on key collision. 118 118 */ 119 int putNewValue(RTCRestObjectBase **a_ppValue, const char *a_pszKey, size_t a_cchKey = RTSTR_MAX, bool a_fReplace = false) ;119 int putNewValue(RTCRestObjectBase **a_ppValue, const char *a_pszKey, size_t a_cchKey = RTSTR_MAX, bool a_fReplace = false) RT_NOEXCEPT; 120 120 121 121 /** … … 128 128 * @param a_fReplace Whether to replace or fail on key collision. 129 129 */ 130 int putNewValue(RTCRestObjectBase **a_ppValue, RTCString const &a_rStrKey, bool a_fReplace = false) ;130 int putNewValue(RTCRestObjectBase **a_ppValue, RTCString const &a_rStrKey, bool a_fReplace = false) RT_NOEXCEPT; 131 131 132 132 protected: … … 159 159 private: 160 160 MapEntry *m_pCur; 161 ConstIterator() ;161 ConstIterator() RT_NOEXCEPT; 162 162 protected: 163 ConstIterator(MapEntry *a_pEntry) : m_pCur(a_pEntry) { }163 ConstIterator(MapEntry *a_pEntry) RT_NOEXCEPT : m_pCur(a_pEntry) { } 164 164 public: 165 ConstIterator(ConstIterator const &a_rThat) : m_pCur(a_rThat.m_pCur) { }165 ConstIterator(ConstIterator const &a_rThat) RT_NOEXCEPT : m_pCur(a_rThat.m_pCur) { } 166 166 167 167 /** Gets the key string. */ 168 inline RTCString const &getKey() { return m_pCur->strKey; }168 inline RTCString const &getKey() RT_NOEXCEPT { return m_pCur->strKey; } 169 169 /** Gets poitner to the value object. */ 170 inline RTCRestObjectBase const *getValue() { return m_pCur->pValue; }170 inline RTCRestObjectBase const *getValue() RT_NOEXCEPT { return m_pCur->pValue; } 171 171 172 172 /** Advance to the next map entry. */ 173 inline ConstIterator &operator++() 173 inline ConstIterator &operator++() RT_NOEXCEPT 174 174 { 175 175 m_pCur = RTListNodeGetNextCpp(&m_pCur->ListEntry, MapEntry, ListEntry); … … 178 178 179 179 /** Advance to the previous map entry. */ 180 inline ConstIterator &operator--() 180 inline ConstIterator &operator--() RT_NOEXCEPT 181 181 { 182 182 m_pCur = RTListNodeGetPrevCpp(&m_pCur->ListEntry, MapEntry, ListEntry); … … 185 185 186 186 /** Compare equal. */ 187 inline bool operator==(ConstIterator const &a_rThat) { return m_pCur == a_rThat.m_pCur; }187 inline bool operator==(ConstIterator const &a_rThat) RT_NOEXCEPT { return m_pCur == a_rThat.m_pCur; } 188 188 /** Compare not equal. */ 189 inline bool operator!=(ConstIterator const &a_rThat) { return m_pCur != a_rThat.m_pCur; }189 inline bool operator!=(ConstIterator const &a_rThat) RT_NOEXCEPT { return m_pCur != a_rThat.m_pCur; } 190 190 191 191 /* Map class must be friend so it can use the MapEntry constructor. */ … … 194 194 195 195 /** Returns iterator for the first map entry (unless it's empty and it's also the end). */ 196 inline ConstIterator begin() const 196 inline ConstIterator begin() const RT_NOEXCEPT 197 197 { 198 198 if (!RTListIsEmpty(&m_ListHead)) … … 201 201 } 202 202 /** Returns iterator for the last map entry (unless it's empty and it's also the end). */ 203 inline ConstIterator last() const 203 inline ConstIterator last() const RT_NOEXCEPT 204 204 { 205 205 if (!RTListIsEmpty(&m_ListHead)) … … 208 208 } 209 209 /** Returns the end iterator. This does not ever refer to an actual map entry. */ 210 inline ConstIterator end() const 210 inline ConstIterator end() const RT_NOEXCEPT 211 211 { 212 212 return ConstIterator(RT_FROM_CPP_MEMBER(&m_ListHead, MapEntry, ListEntry)); … … 221 221 * @returns Pointer to new map object on success, NULL if out of memory. 222 222 */ 223 virtual RTCRestStringMapBase *createClone(void) const = 0;223 virtual RTCRestStringMapBase *createClone(void) const RT_NOEXCEPT = 0; 224 224 225 225 /** … … 228 228 * @returns Pointer to new value object on success, NULL if out of memory. 229 229 */ 230 virtual RTCRestObjectBase *createValue(void) = 0;230 virtual RTCRestObjectBase *createValue(void) RT_NOEXCEPT = 0; 231 231 232 232 /** 233 233 * For accessing the static deserializeInstanceFromJson() method of the value. 234 234 */ 235 virtual int deserializeValueInstanceFromJson(RTCRestJsonCursor const &a_rCursor, RTCRestObjectBase **a_ppInstance) = 0;236 237 /** 238 * Worker for the copy constructor and the assignment operator.235 virtual int deserializeValueInstanceFromJson(RTCRestJsonCursor const &a_rCursor, RTCRestObjectBase **a_ppInstance) RT_NOEXCEPT = 0; 236 237 /** 238 * Worker for the copy assignment method and copyMapWorkerMayThrow. 239 239 * 240 240 * This will use createEntryCopy to do the copying. … … 243 243 * @param a_rThat The map to copy. Caller makes 100% sure the it has 244 244 * the same type as the destination. 245 * @param a_fThrow Whether to throw error. 246 */ 247 int copyMapWorker(RTCRestStringMapBase const &a_rThat, bool a_fThrow); 245 */ 246 int copyMapWorkerNoThrow(RTCRestStringMapBase const &a_rThat) RT_NOEXCEPT; 247 248 /** 249 * Wrapper around copyMapWorkerNoThrow() that throws allocation errors, making 250 * it suitable for copy constructors and assignment operators. 251 */ 252 void copyMapWorkerMayThrow(RTCRestStringMapBase const &a_rThat); 248 253 249 254 /** … … 257 262 * @param a_cchKey The key length, the whole string by default. 258 263 */ 259 int putWorker(const char *a_pszKey, RTCRestObjectBase *a_pValue, bool a_fReplace, size_t a_cchKey = RTSTR_MAX) ;264 int putWorker(const char *a_pszKey, RTCRestObjectBase *a_pValue, bool a_fReplace, size_t a_cchKey = RTSTR_MAX) RT_NOEXCEPT; 260 265 261 266 /** … … 269 274 * @param a_cchKey The key length, the whole string by default. 270 275 */ 271 int putCopyWorker(const char *a_pszKey, RTCRestObjectBase const &a_rValue, bool a_fReplace, size_t a_cchKey = RTSTR_MAX) ;276 int putCopyWorker(const char *a_pszKey, RTCRestObjectBase const &a_rValue, bool a_fReplace, size_t a_cchKey = RTSTR_MAX) RT_NOEXCEPT; 272 277 273 278 /** … … 277 282 * @param a_pszKey The key which value to look up. 278 283 */ 279 RTCRestObjectBase *getWorker(const char *a_pszKey) ;284 RTCRestObjectBase *getWorker(const char *a_pszKey) RT_NOEXCEPT; 280 285 281 286 /** … … 285 290 * @param a_pszKey The key which value to look up. 286 291 */ 287 RTCRestObjectBase const *getWorker(const char *a_pszKey) const ;292 RTCRestObjectBase const *getWorker(const char *a_pszKey) const RT_NOEXCEPT; 288 293 289 294 private: 290 static DECLCALLBACK(int) stringSpaceDestructorCallback(PRTSTRSPACECORE pStr, void *pvUser) ;295 static DECLCALLBACK(int) stringSpaceDestructorCallback(PRTSTRSPACECORE pStr, void *pvUser) RT_NOEXCEPT; 291 296 }; 292 297 … … 299 304 public: 300 305 /** Default constructor, creates emtpy map. */ 301 RTCRestStringMap() 306 RTCRestStringMap() RT_NOEXCEPT 302 307 : RTCRestStringMapBase() 303 308 {} … … 307 312 : RTCRestStringMapBase() 308 313 { 309 copyMapWorker (a_rThat, true /*a_fThrow*/);314 copyMapWorkerMayThrow(a_rThat); 310 315 } 311 316 … … 319 324 RTCRestStringMap &operator=(RTCRestStringMap const &a_rThat) 320 325 { 321 copyMapWorker (a_rThat, true /*a_fThrow*/);326 copyMapWorkerMayThrow(a_rThat); 322 327 return *this; 323 328 } 324 329 325 330 /** Safe copy assignment method. */ 326 int assignCopy(RTCRestStringMap const &a_rThat) 327 { 328 return copyMapWorker (a_rThat, false /*a_fThrow*/);331 int assignCopy(RTCRestStringMap const &a_rThat) RT_NOEXCEPT 332 { 333 return copyMapWorkerNoThrow(a_rThat); 329 334 } 330 335 331 336 /** Make a clone of this object. */ 332 inline RTCRestStringMap *clone() const 337 inline RTCRestStringMap *clone() const RT_NOEXCEPT 333 338 { 334 339 return (RTCRestStringMap *)baseClone(); … … 336 341 337 342 /** Factory method. */ 338 static DECLCALLBACK(RTCRestObjectBase *) createInstance(void) 343 static DECLCALLBACK(RTCRestObjectBase *) createInstance(void) RT_NOEXCEPT 339 344 { 340 345 return new (std::nothrow) RTCRestStringMap<ValueType>(); … … 342 347 343 348 /** Factory method for values. */ 344 static DECLCALLBACK(RTCRestObjectBase *) createValueInstance(void) 349 static DECLCALLBACK(RTCRestObjectBase *) createValueInstance(void) RT_NOEXCEPT 345 350 { 346 351 return new (std::nothrow) ValueType(); … … 348 353 349 354 /** @copydoc RTCRestObjectBase::FNDESERIALIZEINSTANCEFROMJSON */ 350 static DECLCALLBACK(int) deserializeInstanceFromJson(RTCRestJsonCursor const &a_rCursor, RTCRestObjectBase **a_ppInstance) 355 static DECLCALLBACK(int) deserializeInstanceFromJson(RTCRestJsonCursor const &a_rCursor, RTCRestObjectBase **a_ppInstance) RT_NOEXCEPT 351 356 { 352 357 *a_ppInstance = new (std::nothrow) RTCRestStringMap<ValueType>(); … … 365 370 * @param a_fReplace Whether to replace existing key-value pair with matching key. 366 371 */ 367 inline int put(const char *a_pszKey, ValueType *a_pValue, bool a_fReplace = false) 372 inline int put(const char *a_pszKey, ValueType *a_pValue, bool a_fReplace = false) RT_NOEXCEPT 368 373 { 369 374 return putWorker(a_pszKey, a_pValue, a_fReplace); … … 379 384 * @param a_fReplace Whether to replace existing key-value pair with matching key. 380 385 */ 381 inline int put(RTCString const &a_rStrKey, ValueType *a_pValue, bool a_fReplace = false) 386 inline int put(RTCString const &a_rStrKey, ValueType *a_pValue, bool a_fReplace = false) RT_NOEXCEPT 382 387 { 383 388 return putWorker(a_rStrKey.c_str(), a_pValue, a_fReplace, a_rStrKey.length()); … … 393 398 * @param a_fReplace Whether to replace existing key-value pair with matching key. 394 399 */ 395 inline int putCopy(const char *a_pszKey, const ValueType &a_rValue, bool a_fReplace = false) 400 inline int putCopy(const char *a_pszKey, const ValueType &a_rValue, bool a_fReplace = false) RT_NOEXCEPT 396 401 { 397 402 return putCopyWorker(a_pszKey, a_rValue, a_fReplace); … … 407 412 * @param a_fReplace Whether to replace existing key-value pair with matching key. 408 413 */ 409 inline int putCopy(RTCString const &a_rStrKey, const ValueType &a_rValue, bool a_fReplace = false) 414 inline int putCopy(RTCString const &a_rStrKey, const ValueType &a_rValue, bool a_fReplace = false) RT_NOEXCEPT 410 415 { 411 416 return putCopyWorker(a_rStrKey.c_str(), a_rValue, a_fReplace, a_rStrKey.length()); … … 418 423 * @param a_pszKey The key which value to look up. 419 424 */ 420 inline ValueType *get(const char *a_pszKey) 425 inline ValueType *get(const char *a_pszKey) RT_NOEXCEPT 421 426 { 422 427 return (ValueType *)getWorker(a_pszKey); … … 429 434 * @param a_rStrKey The key which value to look up. 430 435 */ 431 inline ValueType *get(RTCString const &a_rStrKey) 436 inline ValueType *get(RTCString const &a_rStrKey) RT_NOEXCEPT 432 437 { 433 438 return (ValueType *)getWorker(a_rStrKey.c_str()); … … 440 445 * @param a_pszKey The key which value to look up. 441 446 */ 442 inline ValueType const *get(const char *a_pszKey) const 447 inline ValueType const *get(const char *a_pszKey) const RT_NOEXCEPT 443 448 { 444 449 return (ValueType const *)getWorker(a_pszKey); … … 451 456 * @param a_rStrKey The key which value to look up. 452 457 */ 453 inline ValueType const *get(RTCString const &a_rStrKey) const 458 inline ValueType const *get(RTCString const &a_rStrKey) const RT_NOEXCEPT 454 459 { 455 460 return (ValueType const *)getWorker(a_rStrKey.c_str()); … … 459 464 460 465 protected: 461 virtual RTCRestStringMapBase *createClone(void) const RT_ OVERRIDE466 virtual RTCRestStringMapBase *createClone(void) const RT_NOEXCEPT RT_OVERRIDE 462 467 { 463 468 return new (std::nothrow) RTCRestStringMap(); 464 469 } 465 470 466 virtual RTCRestObjectBase *createValue(void) RT_ OVERRIDE471 virtual RTCRestObjectBase *createValue(void) RT_NOEXCEPT RT_OVERRIDE 467 472 { 468 473 return new (std::nothrow) ValueType(); 469 474 } 470 475 471 virtual int deserializeValueInstanceFromJson(RTCRestJsonCursor const &a_rCursor, RTCRestObjectBase **a_ppInstance) RT_ OVERRIDE476 virtual int deserializeValueInstanceFromJson(RTCRestJsonCursor const &a_rCursor, RTCRestObjectBase **a_ppInstance) RT_NOEXCEPT RT_OVERRIDE 472 477 { 473 478 return ValueType::deserializeInstanceFromJson(a_rCursor, a_ppInstance); -
trunk/src/VBox/Runtime/Makefile.kmk
r74414 r74425 2348 2348 2349 2349 2350 if1of ($(KBUILD_TARGET),win darwin) # remove later2350 if1of ($(KBUILD_TARGET),win linux darwin) # remove later 2351 2351 if1of (VBoxRT,$(DLLS)) 2352 2352 # -
trunk/src/VBox/Runtime/VBox/VBoxRTImp-gcc.def
r74419 r74425 28 28 ; RTCString & RTCRest classes. 29 29 ; 30 ; Use the following command-line to generate the stuff below: 31 ; nm ../../../out/darwin.amd64/debug/obj/VBoxRT/VBoxRT.dylib -U | kmk_sed -re '/(RTCString|RTCRest)/!d' -e 's/^[0-9a-fA-F]+ //' -e '/^[A-Z]/!d' | sort | kmk_sed -r -e 's/[SDBC] (.+)$/ \1 DATA/' -e 's/^[A-Z] / /' -e 's/ __/ _/' >> VBox/VBoxRTImp-gcc.def 30 ; Use one of the following command-line to generate the stuff below: 31 ; nm ../../../out/darwin.amd64/debug/obj/VBoxRT/VBoxRT.dylib -U | LC_COLLATE=C kmk_sed -re '/(RTCString|RTCRest)/!d' -e 's/^[0-9a-fA-F]+ //' -e '/^[A-Z]/!d' -e 's/[SDBC] (.+)$/ \1 DATA/' -e 's/^[A-Z] / /' -e 's/ __/ _/' | LC_COLLATE=C sort >> VBox/VBoxRTImp-gcc.def 32 ; nm ../../../out/linux.amd64/debug/obj/VBoxRT/VBoxRT.so | LC_COLLATE=C kmk_sed -re '/(RTCString|RTCRest)/!d' -e 's/^[0-9a-fA-F]+ //' -e '/^[A-TV-Z]/!d' -e 's/[SDBCRV] (.+)$/ \1 DATA/' -e 's/^[A-Z] / /' | LC_COLLATE=C sort >> VBox/VBoxRTImp-gcc.def 32 33 ; 33 _ZTI9RTCString DATA34 _ZN9RTCString4nposE DATA35 _ZTI11RTCRestBool DATA36 _ZTI11RTCRestDate DATA37 _ZTI12RTCRestInt16 DATA38 _ZTI12RTCRestInt32 DATA39 _ZTI12RTCRestInt64 DATA40 _ZTI13RTCRestBinary DATA41 _ZTI13RTCRestDouble DATA42 _ZTI13RTCRestString DATA43 _ZTI16RTCRestAnyObject DATA44 _ZTI16RTCRestArrayBase DATA45 _ZTI17RTCRestDataObject DATA46 _ZTI17RTCRestObjectBase DATA47 _ZTI17RTCRestOutputBase DATA48 _ZTI20RTCRestClientApiBase DATA49 _ZTI20RTCRestStringMapBase DATA50 _ZTI21RTCRestBinaryResponse DATA51 _ZTI21RTCRestOutputToString DATA52 _ZTI21RTCRestPolyDataObject DATA53 _ZTI21RTCRestStringEnumBase DATA54 _ZTI22RTCRestBinaryParameter DATA55 _ZTI23RTCRestOutputPrettyBase DATA56 _ZTI24RTCRestClientRequestBase DATA57 _ZTI24RTCRestJsonPrimaryCursor DATA58 _ZTI25RTCRestClientResponseBase DATA59 _ZTI27RTCRestOutputPrettyToString DATA60 _ZTIN25RTCRestClientResponseBase24PrimaryJsonCursorForBodyE DATA61 _ZTS11RTCRestBool DATA62 _ZTS11RTCRestDate DATA63 _ZTS12RTCRestInt16 DATA64 _ZTS12RTCRestInt32 DATA65 _ZTS12RTCRestInt64 DATA66 _ZTS13RTCRestBinary DATA67 _ZTS13RTCRestDouble DATA68 _ZTS13RTCRestString DATA69 _ZTS16RTCRestAnyObject DATA70 _ZTS16RTCRestArrayBase DATA71 _ZTS17RTCRestDataObject DATA72 _ZTS17RTCRestObjectBase DATA73 _ZTS17RTCRestOutputBase DATA74 _ZTS20RTCRestClientApiBase DATA75 _ZTS20RTCRestStringMapBase DATA76 _ZTS21RTCRestBinaryResponse DATA77 _ZTS21RTCRestOutputToString DATA78 _ZTS21RTCRestPolyDataObject DATA79 _ZTS21RTCRestStringEnumBase DATA80 _ZTS22RTCRestBinaryParameter DATA81 _ZTS23RTCRestOutputPrettyBase DATA82 _ZTS24RTCRestClientRequestBase DATA83 _ZTS24RTCRestJsonPrimaryCursor DATA84 _ZTS25RTCRestClientResponseBase DATA85 _ZTS27RTCRestOutputPrettyToString DATA86 _ZTS9RTCString DATA87 _ZTSN25RTCRestClientResponseBase24PrimaryJsonCursorForBodyE DATA88 _ZTV11RTCRestBool DATA89 _ZTV11RTCRestDate DATA90 _ZTV12RTCRestInt16 DATA91 _ZTV12RTCRestInt32 DATA92 _ZTV12RTCRestInt64 DATA93 _ZTV13RTCRestBinary DATA94 _ZTV13RTCRestDouble DATA95 _ZTV13RTCRestString DATA96 _ZTV16RTCRestAnyObject DATA97 _ZTV16RTCRestArrayBase DATA98 _ZTV17RTCRestDataObject DATA99 _ZTV17RTCRestObjectBase DATA100 _ZTV17RTCRestOutputBase DATA101 _ZTV20RTCRestClientApiBase DATA102 _ZTV20RTCRestStringMapBase DATA103 _ZTV21RTCRestBinaryResponse DATA104 _ZTV21RTCRestOutputToString DATA105 _ZTV21RTCRestPolyDataObject DATA106 _ZTV21RTCRestStringEnumBase DATA107 _ZTV22RTCRestBinaryParameter DATA108 _ZTV23RTCRestOutputPrettyBase DATA109 _ZTV24RTCRestClientRequestBase DATA110 _ZTV24RTCRestJsonPrimaryCursor DATA111 _ZTV25RTCRestClientResponseBase DATA112 _ZTV27RTCRestOutputPrettyToString DATA113 _ZTVN25RTCRestClientResponseBase24PrimaryJsonCursorForBodyE DATA114 34 _ZN11RTCRestBool10assignCopyERKS_ 115 35 _ZN11RTCRestBool10fromStringERK9RTCStringPKcP9RTERRINFOj … … 523 443 _ZN9RTCString27printfOutputCallbackNoThrowEPvPKcm 524 444 _ZN9RTCString4joinERK7RTCListIS_PS_ERKS_ 445 _ZN9RTCString4nposE DATA 525 446 _ZN9RTCString5eraseEmm 526 447 _ZN9RTCString5stripEv … … 640 561 _ZNK9RTCString8endsWithERKS_NS_15CaseSensitivityE 641 562 _ZNK9RTCString8substrCPEmm 563 _ZTI11RTCRestBool DATA 564 _ZTI11RTCRestDate DATA 565 _ZTI12RTCRestInt16 DATA 566 _ZTI12RTCRestInt32 DATA 567 _ZTI12RTCRestInt64 DATA 568 _ZTI13RTCRestBinary DATA 569 _ZTI13RTCRestDouble DATA 570 _ZTI13RTCRestString DATA 571 _ZTI16RTCRestAnyObject DATA 572 _ZTI16RTCRestArrayBase DATA 573 _ZTI17RTCRestDataObject DATA 574 _ZTI17RTCRestObjectBase DATA 575 _ZTI17RTCRestOutputBase DATA 576 _ZTI20RTCRestClientApiBase DATA 577 _ZTI20RTCRestStringMapBase DATA 578 _ZTI21RTCRestBinaryResponse DATA 579 _ZTI21RTCRestOutputToString DATA 580 _ZTI21RTCRestPolyDataObject DATA 581 _ZTI21RTCRestStringEnumBase DATA 582 _ZTI22RTCRestBinaryParameter DATA 583 _ZTI23RTCRestOutputPrettyBase DATA 584 _ZTI24RTCRestClientRequestBase DATA 585 _ZTI24RTCRestJsonPrimaryCursor DATA 586 _ZTI25RTCRestClientResponseBase DATA 587 _ZTI27RTCRestOutputPrettyToString DATA 588 _ZTI9RTCString DATA 589 _ZTIN25RTCRestClientResponseBase24PrimaryJsonCursorForBodyE DATA 590 _ZTS11RTCRestBool DATA 591 _ZTS11RTCRestDate DATA 592 _ZTS12RTCRestInt16 DATA 593 _ZTS12RTCRestInt32 DATA 594 _ZTS12RTCRestInt64 DATA 595 _ZTS13RTCRestBinary DATA 596 _ZTS13RTCRestDouble DATA 597 _ZTS13RTCRestString DATA 598 _ZTS16RTCRestAnyObject DATA 599 _ZTS16RTCRestArrayBase DATA 600 _ZTS17RTCRestDataObject DATA 601 _ZTS17RTCRestObjectBase DATA 602 _ZTS17RTCRestOutputBase DATA 603 _ZTS20RTCRestClientApiBase DATA 604 _ZTS20RTCRestStringMapBase DATA 605 _ZTS21RTCRestBinaryResponse DATA 606 _ZTS21RTCRestOutputToString DATA 607 _ZTS21RTCRestPolyDataObject DATA 608 _ZTS21RTCRestStringEnumBase DATA 609 _ZTS22RTCRestBinaryParameter DATA 610 _ZTS23RTCRestOutputPrettyBase DATA 611 _ZTS24RTCRestClientRequestBase DATA 612 _ZTS24RTCRestJsonPrimaryCursor DATA 613 _ZTS25RTCRestClientResponseBase DATA 614 _ZTS27RTCRestOutputPrettyToString DATA 615 _ZTS9RTCString DATA 616 _ZTSN25RTCRestClientResponseBase24PrimaryJsonCursorForBodyE DATA 617 _ZTV11RTCRestBool DATA 618 _ZTV11RTCRestDate DATA 619 _ZTV12RTCRestInt16 DATA 620 _ZTV12RTCRestInt32 DATA 621 _ZTV12RTCRestInt64 DATA 622 _ZTV13RTCRestBinary DATA 623 _ZTV13RTCRestDouble DATA 624 _ZTV13RTCRestString DATA 625 _ZTV16RTCRestAnyObject DATA 626 _ZTV16RTCRestArrayBase DATA 627 _ZTV17RTCRestDataObject DATA 628 _ZTV17RTCRestObjectBase DATA 629 _ZTV17RTCRestOutputBase DATA 630 _ZTV20RTCRestClientApiBase DATA 631 _ZTV20RTCRestStringMapBase DATA 632 _ZTV21RTCRestBinaryResponse DATA 633 _ZTV21RTCRestOutputToString DATA 634 _ZTV21RTCRestPolyDataObject DATA 635 _ZTV21RTCRestStringEnumBase DATA 636 _ZTV22RTCRestBinaryParameter DATA 637 _ZTV23RTCRestOutputPrettyBase DATA 638 _ZTV24RTCRestClientRequestBase DATA 639 _ZTV24RTCRestJsonPrimaryCursor DATA 640 _ZTV25RTCRestClientResponseBase DATA 641 _ZTV27RTCRestOutputPrettyToString DATA 642 _ZTVN25RTCRestClientResponseBase24PrimaryJsonCursorForBodyE DATA 642 643 _ZThn16_N13RTCRestStringD0Ev 643 644 _ZThn16_N13RTCRestStringD1Ev … … 645 646 _ZplRK9RTCStringPKc 646 647 _ZplRK9RTCStringS1_ 648 -
trunk/src/VBox/Runtime/common/rest/RTCRestAnyObject.cpp
r74414 r74425 41 41 * Default constructor. 42 42 */ 43 RTCRestAnyObject::RTCRestAnyObject() 43 RTCRestAnyObject::RTCRestAnyObject() RT_NOEXCEPT 44 44 : RTCRestObjectBase() 45 45 , m_pData(NULL) … … 90 90 * Safe copy assignment method. 91 91 */ 92 int RTCRestAnyObject::assignCopy(RTCRestAnyObject const &a_rThat) 92 int RTCRestAnyObject::assignCopy(RTCRestAnyObject const &a_rThat) RT_NOEXCEPT 93 93 { 94 94 setNull(); … … 126 126 * Safe copy assignment method, boolean variant. 127 127 */ 128 int RTCRestAnyObject::assignCopy(RTCRestBool const &a_rThat) 128 int RTCRestAnyObject::assignCopy(RTCRestBool const &a_rThat) RT_NOEXCEPT 129 129 { 130 130 setNull(); … … 143 143 * Safe copy assignment method, int64_t variant. 144 144 */ 145 int RTCRestAnyObject::assignCopy(RTCRestInt64 const &a_rThat) 145 int RTCRestAnyObject::assignCopy(RTCRestInt64 const &a_rThat) RT_NOEXCEPT 146 146 { 147 147 setNull(); … … 160 160 * Safe copy assignment method, int32_t variant. 161 161 */ 162 int RTCRestAnyObject::assignCopy(RTCRestInt32 const &a_rThat) 162 int RTCRestAnyObject::assignCopy(RTCRestInt32 const &a_rThat) RT_NOEXCEPT 163 163 { 164 164 setNull(); … … 177 177 * Safe copy assignment method, int16_t variant. 178 178 */ 179 int RTCRestAnyObject::assignCopy(RTCRestInt16 const &a_rThat) 179 int RTCRestAnyObject::assignCopy(RTCRestInt16 const &a_rThat) RT_NOEXCEPT 180 180 { 181 181 setNull(); … … 194 194 * Safe copy assignment method, double variant. 195 195 */ 196 int RTCRestAnyObject::assignCopy(RTCRestDouble const &a_rThat) 196 int RTCRestAnyObject::assignCopy(RTCRestDouble const &a_rThat) RT_NOEXCEPT 197 197 { 198 198 setNull(); … … 211 211 * Safe copy assignment method, string variant. 212 212 */ 213 int RTCRestAnyObject::assignCopy(RTCRestString const &a_rThat) 213 int RTCRestAnyObject::assignCopy(RTCRestString const &a_rThat) RT_NOEXCEPT 214 214 { 215 215 setNull(); … … 228 228 * Safe copy assignment method, array variant. 229 229 */ 230 int RTCRestAnyObject::assignCopy(RTCRestArray<RTCRestAnyObject> const &a_rThat) 230 int RTCRestAnyObject::assignCopy(RTCRestArray<RTCRestAnyObject> const &a_rThat) RT_NOEXCEPT 231 231 { 232 232 setNull(); … … 245 245 * Safe copy assignment method, string map variant. 246 246 */ 247 int RTCRestAnyObject::assignCopy(RTCRestStringMap<RTCRestAnyObject> const &a_rThat) 247 int RTCRestAnyObject::assignCopy(RTCRestStringMap<RTCRestAnyObject> const &a_rThat) RT_NOEXCEPT 248 248 { 249 249 setNull(); … … 262 262 * Safe value assignment method, boolean variant. 263 263 */ 264 int RTCRestAnyObject::assignValue(bool a_fValue) 264 int RTCRestAnyObject::assignValue(bool a_fValue) RT_NOEXCEPT 265 265 { 266 266 setNull(); … … 280 280 * Safe value assignment method, int64_t variant. 281 281 */ 282 int RTCRestAnyObject::assignValue(int64_t a_iValue) 282 int RTCRestAnyObject::assignValue(int64_t a_iValue) RT_NOEXCEPT 283 283 { 284 284 setNull(); … … 298 298 * Safe value assignment method, int32_t variant. 299 299 */ 300 int RTCRestAnyObject::assignValue(int32_t a_iValue) 300 int RTCRestAnyObject::assignValue(int32_t a_iValue) RT_NOEXCEPT 301 301 { 302 302 setNull(); … … 316 316 * Safe value assignment method, int16_t variant. 317 317 */ 318 int RTCRestAnyObject::assignValue(int16_t a_iValue) 318 int RTCRestAnyObject::assignValue(int16_t a_iValue) RT_NOEXCEPT 319 319 { 320 320 setNull(); … … 334 334 * Safe value assignment method, double variant. 335 335 */ 336 int RTCRestAnyObject::assignValue(double a_iValue) 336 int RTCRestAnyObject::assignValue(double a_iValue) RT_NOEXCEPT 337 337 { 338 338 setNull(); … … 352 352 * Safe value assignment method, string variant. 353 353 */ 354 int RTCRestAnyObject::assignValue(RTCString const &a_rValue) 354 int RTCRestAnyObject::assignValue(RTCString const &a_rValue) RT_NOEXCEPT 355 355 { 356 356 setNull(); … … 369 369 * Safe value assignment method, C-string variant. 370 370 */ 371 int RTCRestAnyObject::assignValue(const char *a_pszValue) 371 int RTCRestAnyObject::assignValue(const char *a_pszValue) RT_NOEXCEPT 372 372 { 373 373 setNull(); … … 383 383 384 384 385 RTCRestObjectBase *RTCRestAnyObject::baseClone() const 385 RTCRestObjectBase *RTCRestAnyObject::baseClone() const RT_NOEXCEPT 386 386 { 387 387 RTCRestAnyObject *pClone = new (std::nothrow) RTCRestAnyObject(); … … 397 397 398 398 399 int RTCRestAnyObject::setNull(void) 399 int RTCRestAnyObject::setNull(void) RT_NOEXCEPT 400 400 { 401 401 if (m_pData) … … 408 408 409 409 410 int RTCRestAnyObject::resetToDefault() 410 int RTCRestAnyObject::resetToDefault() RT_NOEXCEPT 411 411 { 412 412 if (m_pData) … … 416 416 417 417 418 RTCRestOutputBase &RTCRestAnyObject::serializeAsJson(RTCRestOutputBase &a_rDst) const 418 RTCRestOutputBase &RTCRestAnyObject::serializeAsJson(RTCRestOutputBase &a_rDst) const RT_NOEXCEPT 419 419 { 420 420 if (m_pData) … … 425 425 426 426 427 int RTCRestAnyObject::deserializeFromJson(RTCRestJsonCursor const &a_rCursor) 427 int RTCRestAnyObject::deserializeFromJson(RTCRestJsonCursor const &a_rCursor) RT_NOEXCEPT 428 428 { 429 429 setNull(); … … 519 519 520 520 521 int RTCRestAnyObject::toString(RTCString *a_pDst, uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) const 521 int RTCRestAnyObject::toString(RTCString *a_pDst, uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) const RT_NOEXCEPT 522 522 { 523 523 if (m_pData) … … 530 530 531 531 int RTCRestAnyObject::fromString(RTCString const &a_rValue, const char *a_pszName, PRTERRINFO a_pErrInfo /*= NULL*/, 532 uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) 532 uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) RT_NOEXCEPT 533 533 { 534 534 return RTCRestObjectBase::fromString(a_rValue, a_pszName, a_pErrInfo, a_fFlags); … … 536 536 537 537 538 RTCRestObjectBase::kTypeClass RTCRestAnyObject::typeClass(void) const 538 RTCRestObjectBase::kTypeClass RTCRestAnyObject::typeClass(void) const RT_NOEXCEPT 539 539 { 540 540 return kTypeClass_AnyObject; … … 542 542 543 543 544 const char *RTCRestAnyObject::typeName(void) const 544 const char *RTCRestAnyObject::typeName(void) const RT_NOEXCEPT 545 545 { 546 546 if (m_pData) … … 576 576 * Factory method. 577 577 */ 578 /*static*/ DECLCALLBACK(RTCRestObjectBase *) RTCRestAnyObject::createInstance(void) 578 /*static*/ DECLCALLBACK(RTCRestObjectBase *) RTCRestAnyObject::createInstance(void) RT_NOEXCEPT 579 579 { 580 580 return new (std::nothrow) RTCRestAnyObject(); -
trunk/src/VBox/Runtime/common/rest/RTCRestArrayBase.cpp
r74414 r74425 47 47 * Default destructor. 48 48 */ 49 RTCRestArrayBase::RTCRestArrayBase() 49 RTCRestArrayBase::RTCRestArrayBase() RT_NOEXCEPT 50 50 : RTCRestObjectBase() 51 51 , m_papElements(NULL) … … 91 91 *********************************************************************************************************************************/ 92 92 93 RTCRestObjectBase *RTCRestArrayBase::baseClone() const 93 RTCRestObjectBase *RTCRestArrayBase::baseClone() const RT_NOEXCEPT 94 94 { 95 95 RTCRestArrayBase *pClone = createClone(); 96 96 if (pClone) 97 97 { 98 int rc = pClone->copyArrayWorker (*this, false /*fThrow*/);98 int rc = pClone->copyArrayWorkerNoThrow(*this); 99 99 if (RT_SUCCESS(rc)) 100 100 return pClone; … … 105 105 106 106 107 int RTCRestArrayBase::resetToDefault() 107 int RTCRestArrayBase::resetToDefault() RT_NOEXCEPT 108 108 { 109 109 /* The default state of an array is empty. At least for now. */ … … 114 114 115 115 116 RTCRestOutputBase &RTCRestArrayBase::serializeAsJson(RTCRestOutputBase &a_rDst) const 116 RTCRestOutputBase &RTCRestArrayBase::serializeAsJson(RTCRestOutputBase &a_rDst) const RT_NOEXCEPT 117 117 { 118 118 if (!m_fNullIndicator) … … 132 132 133 133 134 int RTCRestArrayBase::deserializeFromJson(RTCRestJsonCursor const &a_rCursor) 134 int RTCRestArrayBase::deserializeFromJson(RTCRestJsonCursor const &a_rCursor) RT_NOEXCEPT 135 135 { 136 136 /* … … 216 216 217 217 218 int RTCRestArrayBase::toString(RTCString *a_pDst, uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) const 218 int RTCRestArrayBase::toString(RTCString *a_pDst, uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) const RT_NOEXCEPT 219 219 { 220 220 int rc; … … 250 250 251 251 int RTCRestArrayBase::fromString(RTCString const &a_rValue, const char *a_pszName, PRTERRINFO a_pErrInfo /*= NULL*/, 252 uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) 252 uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) RT_NOEXCEPT 253 253 { 254 254 /* … … 312 312 313 313 314 RTCRestObjectBase::kTypeClass RTCRestArrayBase::typeClass(void) const 314 RTCRestObjectBase::kTypeClass RTCRestArrayBase::typeClass(void) const RT_NOEXCEPT 315 315 { 316 316 return kTypeClass_Array; … … 318 318 319 319 320 const char *RTCRestArrayBase::typeName(void) const 320 const char *RTCRestArrayBase::typeName(void) const RT_NOEXCEPT 321 321 { 322 322 return "RTCRestArray<ElementType>"; … … 329 329 *********************************************************************************************************************************/ 330 330 331 void RTCRestArrayBase::clear() 331 void RTCRestArrayBase::clear() RT_NOEXCEPT 332 332 { 333 333 size_t i = m_cElements; … … 342 342 343 343 344 bool RTCRestArrayBase::removeAt(size_t a_idx) 344 bool RTCRestArrayBase::removeAt(size_t a_idx) RT_NOEXCEPT 345 345 { 346 346 if (a_idx == ~(size_t)0) … … 359 359 360 360 361 int RTCRestArrayBase::ensureCapacity(size_t a_cEnsureCapacity) 361 int RTCRestArrayBase::ensureCapacity(size_t a_cEnsureCapacity) RT_NOEXCEPT 362 362 { 363 363 if (m_cCapacity < a_cEnsureCapacity) … … 384 384 385 385 386 int RTCRestArrayBase::copyArrayWorker (RTCRestArrayBase const &a_rThat, bool a_fThrow)386 int RTCRestArrayBase::copyArrayWorkerNoThrow(RTCRestArrayBase const &a_rThat) RT_NOEXCEPT 387 387 { 388 388 int rc; … … 405 405 if (RT_SUCCESS(rc)) 406 406 { /* likely */ } 407 else if (a_fThrow)408 throw std::bad_alloc();409 407 else 410 408 return rc; … … 415 413 } 416 414 417 418 int RTCRestArrayBase::insertWorker(size_t a_idx, RTCRestObjectBase *a_pValue, bool a_fReplace) 415 void RTCRestArrayBase::copyArrayWorkerMayThrow(RTCRestArrayBase const &a_rThat) 416 { 417 int rc = copyArrayWorkerNoThrow(a_rThat); 418 if (RT_SUCCESS(rc)) 419 return; 420 throw std::bad_alloc(); 421 } 422 423 424 int RTCRestArrayBase::insertWorker(size_t a_idx, RTCRestObjectBase *a_pValue, bool a_fReplace) RT_NOEXCEPT 419 425 { 420 426 AssertPtrReturn(a_pValue, VERR_INVALID_POINTER); … … 462 468 463 469 464 int RTCRestArrayBase::insertCopyWorker(size_t a_idx, RTCRestObjectBase const &a_rValue, bool a_fReplace) 470 int RTCRestArrayBase::insertCopyWorker(size_t a_idx, RTCRestObjectBase const &a_rValue, bool a_fReplace) RT_NOEXCEPT 465 471 { 466 472 int rc; -
trunk/src/VBox/Runtime/common/rest/RTCRestClientApiBase.cpp
r74351 r74425 43 43 * Default constructor. 44 44 */ 45 RTCRestClientApiBase::RTCRestClientApiBase() 45 RTCRestClientApiBase::RTCRestClientApiBase() RT_NOEXCEPT 46 46 : m_hHttp(NIL_RTHTTP) 47 47 { … … 63 63 64 64 65 const char *RTCRestClientApiBase::getServerUrl(void) const 65 const char *RTCRestClientApiBase::getServerUrl(void) const RT_NOEXCEPT 66 66 { 67 67 if (m_strServerUrl.isEmpty()) … … 71 71 72 72 73 int RTCRestClientApiBase::setServerUrl(const char *a_pszUrl) 73 int RTCRestClientApiBase::setServerUrl(const char *a_pszUrl) RT_NOEXCEPT 74 74 { 75 75 #ifdef RT_STRICT … … 87 87 88 88 int RTCRestClientApiBase::setServerUrlPart(const char *a_pszServerUrl, size_t a_offDst, size_t a_cchDst, 89 const char *a_pszSrc, size_t a_cchSrc) 89 const char *a_pszSrc, size_t a_cchSrc) RT_NOEXCEPT 90 90 { 91 91 if ( a_cchDst == a_cchSrc … … 102 102 103 103 104 int RTCRestClientApiBase::setServerScheme(const char *a_pszScheme) 104 int RTCRestClientApiBase::setServerScheme(const char *a_pszScheme) RT_NOEXCEPT 105 105 { 106 106 /* … … 127 127 128 128 129 int RTCRestClientApiBase::setServerAuthority(const char *a_pszAuthority) 129 int RTCRestClientApiBase::setServerAuthority(const char *a_pszAuthority) RT_NOEXCEPT 130 130 { 131 131 /* … … 151 151 152 152 153 int RTCRestClientApiBase::setServerBasePath(const char *a_pszBasePath) 153 int RTCRestClientApiBase::setServerBasePath(const char *a_pszBasePath) RT_NOEXCEPT 154 154 { 155 155 /* … … 173 173 174 174 175 int RTCRestClientApiBase::reinitHttpInstance() 175 int RTCRestClientApiBase::reinitHttpInstance() RT_NOEXCEPT 176 176 { 177 177 if (m_hHttp != NIL_RTHTTP) … … 193 193 194 194 int RTCRestClientApiBase::xmitReady(RTHTTP a_hHttp, RTCString const &a_rStrFullUrl, RTHTTPMETHOD a_enmHttpMethod, 195 RTCString const &a_rStrXmitBody, uint32_t a_fFlags) 195 RTCString const &a_rStrXmitBody, uint32_t a_fFlags) RT_NOEXCEPT 196 196 { 197 197 RT_NOREF(a_hHttp, a_rStrFullUrl, a_enmHttpMethod, a_rStrXmitBody, a_fFlags); … … 201 201 202 202 int RTCRestClientApiBase::doCall(RTCRestClientRequestBase const &a_rRequest, RTHTTPMETHOD a_enmHttpMethod, 203 RTCRestClientResponseBase *a_pResponse, const char *a_pszMethod, uint32_t a_fFlags) 203 RTCRestClientResponseBase *a_pResponse, const char *a_pszMethod, uint32_t a_fFlags) RT_NOEXCEPT 204 204 { 205 205 LogFlow(("doCall: %s %s\n", a_pszMethod, RTHttpMethodName(a_enmHttpMethod))); -
trunk/src/VBox/Runtime/common/rest/RTCRestClientApiBaseOci.cpp
r74149 r74425 50 50 * @param pvContent 51 51 */ 52 static int ociSignRequestEnsureDateOrXDate(RTHTTP hHttp) 52 static int ociSignRequestEnsureDateOrXDate(RTHTTP hHttp) RT_NOEXCEPT 53 53 { 54 54 if (RTHttpGetHeader(hHttp, RT_STR_TUPLE("x-date"))) … … 74 74 * @param pvContent 75 75 */ 76 static int ociSignRequestEnsureXContentSha256(RTHTTP hHttp, void const *pvContent, size_t cbContent) 76 static int ociSignRequestEnsureXContentSha256(RTHTTP hHttp, void const *pvContent, size_t cbContent) RT_NOEXCEPT 77 77 { 78 78 if (RTHttpGetHeader(hHttp, RT_STR_TUPLE("x-content-sha256"))) … … 103 103 * @param cbContent The content length. 104 104 */ 105 static int ociSignRequestEnsureContentLength(RTHTTP hHttp, uint64_t cbContent) 105 static int ociSignRequestEnsureContentLength(RTHTTP hHttp, uint64_t cbContent) RT_NOEXCEPT 106 106 { 107 107 if (RTHttpGetHeader(hHttp, RT_STR_TUPLE("Content-Length"))) … … 121 121 * @param pszUrl The URL. 122 122 */ 123 static int ociSignRequestEnsureHost(RTHTTP hHttp, const char *pszUrl) 123 static int ociSignRequestEnsureHost(RTHTTP hHttp, const char *pszUrl) RT_NOEXCEPT 124 124 { 125 125 if (RTHttpGetHeader(hHttp, RT_STR_TUPLE("host"))) … … 136 136 int RTCRestClientApiBase::ociSignRequest(RTHTTP a_hHttp, RTCString const &a_rStrFullUrl, RTHTTPMETHOD a_enmHttpMethod, 137 137 RTCString const &a_rStrXmitBody, uint32_t a_fFlags, 138 RTCRKEY a_hKey, RTCString const &a_rStrKeyId) 138 RTCRKEY a_hKey, RTCString const &a_rStrKeyId) RT_NOEXCEPT 139 139 { 140 140 /* -
trunk/src/VBox/Runtime/common/rest/RTCRestClientRequestBase.cpp
r74395 r74425 41 41 * Default constructor. 42 42 */ 43 RTCRestClientRequestBase::RTCRestClientRequestBase() 43 RTCRestClientRequestBase::RTCRestClientRequestBase() RT_NOEXCEPT 44 44 : m_fIsSet(0) 45 45 , m_fErrorSet(0) … … 51 51 * Copy constructor. 52 52 */ 53 RTCRestClientRequestBase::RTCRestClientRequestBase(RTCRestClientRequestBase const &a_rThat) 53 RTCRestClientRequestBase::RTCRestClientRequestBase(RTCRestClientRequestBase const &a_rThat) RT_NOEXCEPT 54 54 : m_fIsSet(a_rThat.m_fIsSet) 55 55 , m_fErrorSet(a_rThat.m_fErrorSet) … … 70 70 * Copy assignment operator. 71 71 */ 72 RTCRestClientRequestBase &RTCRestClientRequestBase::operator=(RTCRestClientRequestBase const &a_rThat) 72 RTCRestClientRequestBase &RTCRestClientRequestBase::operator=(RTCRestClientRequestBase const &a_rThat) RT_NOEXCEPT 73 73 { 74 74 m_fIsSet = a_rThat.m_fIsSet; … … 80 80 int RTCRestClientRequestBase::doPathParameters(RTCString *a_pStrPath, const char *a_pszPathTemplate, size_t a_cchPathTemplate, 81 81 PATHPARAMDESC const *a_paPathParams, PATHPARAMSTATE *a_paPathParamStates, 82 size_t a_cPathParams) const 82 size_t a_cPathParams) const RT_NOEXCEPT 83 83 { 84 84 int rc = a_pStrPath->assignNoThrow(a_pszPathTemplate, a_cchPathTemplate); … … 127 127 128 128 int RTCRestClientRequestBase::doQueryParameters(RTCString *a_pStrQuery, QUERYPARAMDESC const *a_paQueryParams, 129 RTCRestObjectBase const **a_papQueryParamObjs, size_t a_cQueryParams) const 129 RTCRestObjectBase const **a_papQueryParamObjs, size_t a_cQueryParams) const RT_NOEXCEPT 130 130 { 131 131 RTCString strTmpVal; … … 181 181 182 182 int RTCRestClientRequestBase::doHeaderParameters(RTHTTP a_hHttp, HEADERPARAMDESC const *a_paHeaderParams, 183 RTCRestObjectBase const **a_papHeaderParamObjs, size_t a_cHeaderParams) const 183 RTCRestObjectBase const **a_papHeaderParamObjs, size_t a_cHeaderParams) const RT_NOEXCEPT 184 184 { 185 185 RTCString strTmpVal; -
trunk/src/VBox/Runtime/common/rest/RTCRestClientResponseBase.cpp
r74396 r74425 40 40 * Default constructor. 41 41 */ 42 RTCRestClientResponseBase::RTCRestClientResponseBase() 42 RTCRestClientResponseBase::RTCRestClientResponseBase() RT_NOEXCEPT 43 43 : m_rcStatus(VERR_WRONG_ORDER) 44 44 , m_rcHttp(VERR_NOT_AVAILABLE) … … 88 88 89 89 90 void RTCRestClientResponseBase::reset() 90 void RTCRestClientResponseBase::reset() RT_NOEXCEPT 91 91 { 92 92 /* Return to default constructor state. */ … … 99 99 100 100 101 int RTCRestClientResponseBase::receivePrepare(RTHTTP a_hHttp) 101 int RTCRestClientResponseBase::receivePrepare(RTHTTP a_hHttp) RT_NOEXCEPT 102 102 { 103 103 int rc = RTHttpSetHeaderCallback(a_hHttp, receiveHttpHeaderCallback, this); … … 108 108 109 109 110 void RTCRestClientResponseBase::receiveComplete(int a_rcStatus, RTHTTP a_hHttp) 110 void RTCRestClientResponseBase::receiveComplete(int a_rcStatus, RTHTTP a_hHttp) RT_NOEXCEPT 111 111 { 112 112 RT_NOREF_PV(a_hHttp); … … 121 121 122 122 int RTCRestClientResponseBase::consumeHeader(uint32_t a_uMatchWord, const char *a_pchField, size_t a_cchField, 123 const char *a_pchValue, size_t a_cchValue) 123 const char *a_pchValue, size_t a_cchValue) RT_NOEXCEPT 124 124 { 125 125 if ( a_uMatchWord == RTHTTP_MAKE_HDR_MATCH_WORD(sizeof("Content-Type") - 1, 'c', 'o', 'n') … … 138 138 /*static*/ DECLCALLBACK(int) 139 139 RTCRestClientResponseBase::receiveHttpHeaderCallback(RTHTTP hHttp, uint32_t uMatchWord, const char *pchField, size_t cchField, 140 const char *pchValue, size_t cchValue, void *pvUser) 140 const char *pchValue, size_t cchValue, void *pvUser) RT_NOEXCEPT 141 141 { 142 142 RTCRestClientResponseBase *pThis = (RTCRestClientResponseBase *)pvUser; … … 146 146 147 147 148 void RTCRestClientResponseBase::consumeBody(const char *a_pchData, size_t a_cbData) 148 void RTCRestClientResponseBase::consumeBody(const char *a_pchData, size_t a_cbData) RT_NOEXCEPT 149 149 { 150 150 RT_NOREF(a_pchData, a_cbData); … … 152 152 153 153 154 void RTCRestClientResponseBase::receiveFinal() 155 { 156 } 157 158 159 PRTERRINFO RTCRestClientResponseBase::getErrInfoInternal(void) 154 void RTCRestClientResponseBase::receiveFinal() RT_NOEXCEPT 155 { 156 } 157 158 159 PRTERRINFO RTCRestClientResponseBase::getErrInfoInternal(void) RT_NOEXCEPT 160 160 { 161 161 if (m_pErrInfo) … … 169 169 170 170 171 void RTCRestClientResponseBase::deleteErrInfo(void) 171 void RTCRestClientResponseBase::deleteErrInfo(void) RT_NOEXCEPT 172 172 { 173 173 if (m_pErrInfo) … … 179 179 180 180 181 void RTCRestClientResponseBase::copyErrInfo(PCRTERRINFO pErrInfo) 181 void RTCRestClientResponseBase::copyErrInfo(PCRTERRINFO pErrInfo) RT_NOEXCEPT 182 182 { 183 183 deleteErrInfo(); … … 192 192 193 193 194 int RTCRestClientResponseBase::addError(int rc, const char *pszFormat, ...) 194 int RTCRestClientResponseBase::addError(int rc, const char *pszFormat, ...) RT_NOEXCEPT 195 195 { 196 196 PRTERRINFO pErrInfo = getErrInfoInternal(); … … 214 214 215 215 RTCRestClientResponseBase::PrimaryJsonCursorForBody::PrimaryJsonCursorForBody(RTJSONVAL hValue, const char *pszName, 216 RTCRestClientResponseBase *a_pThat) 216 RTCRestClientResponseBase *a_pThat) RT_NOEXCEPT 217 217 : RTCRestJsonPrimaryCursor(hValue, pszName, a_pThat->getErrInfoInternal()) 218 218 , m_pThat(a_pThat) … … 222 222 223 223 int RTCRestClientResponseBase::PrimaryJsonCursorForBody::addError(RTCRestJsonCursor const &a_rCursor, int a_rc, 224 const char *a_pszFormat, ...) 224 const char *a_pszFormat, ...) RT_NOEXCEPT 225 225 { 226 226 va_list va; … … 233 233 234 234 235 int RTCRestClientResponseBase::PrimaryJsonCursorForBody::unknownField(RTCRestJsonCursor const &a_rCursor) 235 int RTCRestClientResponseBase::PrimaryJsonCursorForBody::unknownField(RTCRestJsonCursor const &a_rCursor) RT_NOEXCEPT 236 236 { 237 237 char szPath[256]; … … 243 243 244 244 int RTCRestClientResponseBase::deserializeHeader(RTCRestObjectBase *a_pObj, const char *a_pchValue, size_t a_cchValue, 245 uint32_t a_fFlags, const char *a_pszErrorTag) 245 uint32_t a_fFlags, const char *a_pszErrorTag) RT_NOEXCEPT 246 246 { 247 247 /* … … 280 280 int RTCRestClientResponseBase::deserializeHeaderIntoMap(RTCRestStringMapBase *a_pMap, const char *a_pchField, size_t a_cchField, 281 281 const char *a_pchValue, size_t a_cchValue, uint32_t a_fFlags, 282 const char *a_pszErrorTag) 282 const char *a_pszErrorTag) RT_NOEXCEPT 283 283 { 284 284 /* … … 336 336 337 337 338 void RTCRestClientResponseBase::deserializeBody(const char *a_pchData, size_t a_cbData, const char *a_pszBodyName) 338 void RTCRestClientResponseBase::deserializeBody(const char *a_pchData, size_t a_cbData, const char *a_pszBodyName) RT_NOEXCEPT 339 339 { 340 340 if (m_strContentType.startsWith("application/json")) … … 373 373 374 374 375 void RTCRestClientResponseBase::deserializeBodyFromJsonCursor(RTCRestJsonCursor const &a_rCursor) 375 void RTCRestClientResponseBase::deserializeBodyFromJsonCursor(RTCRestJsonCursor const &a_rCursor) RT_NOEXCEPT 376 376 { 377 377 a_rCursor.m_pPrimary->addError(a_rCursor, VERR_REST_INTERNAL_ERROR_8, "deserializeBodyFromJsonCursor must be overridden!"); -
trunk/src/VBox/Runtime/common/rest/RTCRestJsonPrimaryCursor.cpp
r73977 r74425 36 36 37 37 38 char *RTCRestJsonPrimaryCursor::getPath(RTCRestJsonCursor const &a_rCursor, char *pszDst, size_t cbDst) const 38 char *RTCRestJsonPrimaryCursor::getPath(RTCRestJsonCursor const &a_rCursor, char *pszDst, size_t cbDst) const RT_NOEXCEPT 39 39 { 40 40 AssertReturn(cbDst > 0, NULL); … … 90 90 91 91 92 int RTCRestJsonPrimaryCursor::addError(RTCRestJsonCursor const &a_rCursor, int a_rc, const char *a_pszFormat, ...) 92 int RTCRestJsonPrimaryCursor::addError(RTCRestJsonCursor const &a_rCursor, int a_rc, const char *a_pszFormat, ...) RT_NOEXCEPT 93 93 { 94 94 va_list va; … … 101 101 102 102 103 int RTCRestJsonPrimaryCursor::unknownField(RTCRestJsonCursor const &a_rCursor) 103 int RTCRestJsonPrimaryCursor::unknownField(RTCRestJsonCursor const &a_rCursor) RT_NOEXCEPT 104 104 { 105 105 char szPath[128]; -
trunk/src/VBox/Runtime/common/rest/RTCRestOutputBase.cpp
r74417 r74425 36 36 37 37 38 RTCRestOutputBase::RTCRestOutputBase() 38 RTCRestOutputBase::RTCRestOutputBase() RT_NOEXCEPT 39 39 : m_uState(0) 40 40 { … … 47 47 48 48 49 size_t RTCRestOutputBase::vprintf(const char *pszFormat, va_list va) 49 size_t RTCRestOutputBase::vprintf(const char *pszFormat, va_list va) RT_NOEXCEPT 50 50 { 51 51 return RTStrFormatV(printfOutputCallback, this, NULL, NULL, pszFormat, va); … … 53 53 54 54 55 /*static*/ DECLCALLBACK(size_t) RTCRestOutputBase::printfOutputCallback(void *pvArg, const char *pachChars, size_t cbChars) 55 /*static*/ DECLCALLBACK(size_t) RTCRestOutputBase::printfOutputCallback(void *pvArg, const char *pachChars, size_t cbChars) RT_NOEXCEPT 56 56 { 57 57 return ((RTCRestOutputBase *)pvArg)->output(pachChars, cbChars); … … 59 59 60 60 61 uint32_t RTCRestOutputBase::beginArray() 61 uint32_t RTCRestOutputBase::beginArray() RT_NOEXCEPT 62 62 { 63 63 output(RT_STR_TUPLE("[")); … … 68 68 69 69 70 void RTCRestOutputBase::endArray(uint32_t a_uOldState) 70 void RTCRestOutputBase::endArray(uint32_t a_uOldState) RT_NOEXCEPT 71 71 { 72 72 m_uState = a_uOldState; … … 75 75 76 76 77 uint32_t RTCRestOutputBase::beginObject() 77 uint32_t RTCRestOutputBase::beginObject() RT_NOEXCEPT 78 78 { 79 79 output(RT_STR_TUPLE("{")); … … 84 84 85 85 86 void RTCRestOutputBase::endObject(uint32_t a_uOldState) 86 void RTCRestOutputBase::endObject(uint32_t a_uOldState) RT_NOEXCEPT 87 87 { 88 88 m_uState = a_uOldState; … … 91 91 92 92 93 void RTCRestOutputBase::valueSeparator() 93 void RTCRestOutputBase::valueSeparator() RT_NOEXCEPT 94 94 { 95 95 if (m_uState & RT_BIT_32(31)) … … 100 100 101 101 102 void RTCRestOutputBase::valueSeparatorAndName(const char *a_pszName, size_t a_cchName) 102 void RTCRestOutputBase::valueSeparatorAndName(const char *a_pszName, size_t a_cchName) RT_NOEXCEPT 103 103 { 104 104 RT_NOREF(a_cchName); … … 113 113 114 114 115 void RTCRestOutputBase::nullValue() 115 void RTCRestOutputBase::nullValue() RT_NOEXCEPT 116 116 { 117 117 output(RT_STR_TUPLE("null")); -
trunk/src/VBox/Runtime/common/rest/RTCRestOutputPrettyBase.cpp
r74414 r74425 36 36 37 37 38 RTCRestOutputPrettyBase::RTCRestOutputPrettyBase() 38 RTCRestOutputPrettyBase::RTCRestOutputPrettyBase() RT_NOEXCEPT 39 39 : RTCRestOutputBase() 40 40 { … … 47 47 48 48 49 uint32_t RTCRestOutputPrettyBase::beginArray() 49 uint32_t RTCRestOutputPrettyBase::beginArray() RT_NOEXCEPT 50 50 { 51 51 output(RT_STR_TUPLE("[")); … … 56 56 57 57 58 void RTCRestOutputPrettyBase::endArray(uint32_t a_uOldState) 58 void RTCRestOutputPrettyBase::endArray(uint32_t a_uOldState) RT_NOEXCEPT 59 59 { 60 60 m_uState = a_uOldState; … … 65 65 66 66 67 uint32_t RTCRestOutputPrettyBase::beginObject() 67 uint32_t RTCRestOutputPrettyBase::beginObject() RT_NOEXCEPT 68 68 { 69 69 output(RT_STR_TUPLE("{")); … … 74 74 75 75 76 void RTCRestOutputPrettyBase::endObject(uint32_t a_uOldState) 76 void RTCRestOutputPrettyBase::endObject(uint32_t a_uOldState) RT_NOEXCEPT 77 77 { 78 78 m_uState = a_uOldState; … … 83 83 84 84 85 void RTCRestOutputPrettyBase::valueSeparator() 85 void RTCRestOutputPrettyBase::valueSeparator() RT_NOEXCEPT 86 86 { 87 87 if (m_uState & RT_BIT_32(31)) … … 96 96 97 97 98 void RTCRestOutputPrettyBase::valueSeparatorAndName(const char *a_pszName, size_t a_cchName) 98 void RTCRestOutputPrettyBase::valueSeparatorAndName(const char *a_pszName, size_t a_cchName) RT_NOEXCEPT 99 99 { 100 100 RT_NOREF(a_cchName); … … 111 111 112 112 113 void RTCRestOutputPrettyBase::outputIndentation() 113 void RTCRestOutputPrettyBase::outputIndentation() RT_NOEXCEPT 114 114 { 115 115 static char const s_szSpaces[] = " "; -
trunk/src/VBox/Runtime/common/rest/RTCRestOutputPrettyToString.cpp
r74414 r74425 36 36 37 37 38 RTCRestOutputPrettyToString::RTCRestOutputPrettyToString(RTCString *a_pDst, bool a_fAppend /*= false*/) 38 RTCRestOutputPrettyToString::RTCRestOutputPrettyToString(RTCString *a_pDst, bool a_fAppend /*= false*/) RT_NOEXCEPT 39 39 : RTCRestOutputPrettyBase() 40 40 , m_pDst(a_pDst) … … 53 53 54 54 55 size_t RTCRestOutputPrettyToString::output(const char *a_pchString, size_t a_cchToWrite) 55 size_t RTCRestOutputPrettyToString::output(const char *a_pchString, size_t a_cchToWrite) RT_NOEXCEPT 56 56 { 57 57 if (a_cchToWrite) … … 108 108 109 109 110 RTCString *RTCRestOutputPrettyToString::finalize() 110 RTCString *RTCRestOutputPrettyToString::finalize() RT_NOEXCEPT 111 111 { 112 112 RTCString *pRet; -
trunk/src/VBox/Runtime/common/rest/RTCRestOutputToString.cpp
r74414 r74425 36 36 37 37 38 RTCRestOutputToString::RTCRestOutputToString(RTCString *a_pDst, bool a_fAppend /*= false*/) 38 RTCRestOutputToString::RTCRestOutputToString(RTCString *a_pDst, bool a_fAppend /*= false*/) RT_NOEXCEPT 39 39 : RTCRestOutputBase() 40 40 , m_pDst(a_pDst) … … 53 53 54 54 55 size_t RTCRestOutputToString::output(const char *a_pchString, size_t a_cchToWrite) 55 size_t RTCRestOutputToString::output(const char *a_pchString, size_t a_cchToWrite) RT_NOEXCEPT 56 56 { 57 57 if (a_cchToWrite) … … 108 108 109 109 110 RTCString *RTCRestOutputToString::finalize() 110 RTCString *RTCRestOutputToString::finalize() RT_NOEXCEPT 111 111 { 112 112 RTCString *pRet; -
trunk/src/VBox/Runtime/common/rest/RTCRestStringMapBase.cpp
r74414 r74425 40 40 * Default destructor. 41 41 */ 42 RTCRestStringMapBase::RTCRestStringMapBase() 42 RTCRestStringMapBase::RTCRestStringMapBase() RT_NOEXCEPT 43 43 : RTCRestObjectBase() 44 44 , m_Map(NULL) … … 75 75 *********************************************************************************************************************************/ 76 76 77 RTCRestObjectBase *RTCRestStringMapBase::baseClone() const 77 RTCRestObjectBase *RTCRestStringMapBase::baseClone() const RT_NOEXCEPT 78 78 { 79 79 RTCRestStringMapBase *pClone = createClone(); 80 80 if (pClone) 81 81 { 82 int rc = pClone->copyMapWorker (*this, false /*fThrow*/);82 int rc = pClone->copyMapWorkerNoThrow(*this); 83 83 if (RT_SUCCESS(rc)) 84 84 return pClone; … … 89 89 90 90 91 int RTCRestStringMapBase::resetToDefault() 91 int RTCRestStringMapBase::resetToDefault() RT_NOEXCEPT 92 92 { 93 93 /* Default is an empty map. */ … … 98 98 99 99 100 RTCRestOutputBase &RTCRestStringMapBase::serializeAsJson(RTCRestOutputBase &a_rDst) const 100 RTCRestOutputBase &RTCRestStringMapBase::serializeAsJson(RTCRestOutputBase &a_rDst) const RT_NOEXCEPT 101 101 { 102 102 if (!m_fNullIndicator) … … 117 117 118 118 119 int RTCRestStringMapBase::deserializeFromJson(RTCRestJsonCursor const &a_rCursor) 119 int RTCRestStringMapBase::deserializeFromJson(RTCRestJsonCursor const &a_rCursor) RT_NOEXCEPT 120 120 { 121 121 /* … … 209 209 210 210 211 RTCRestObjectBase::kTypeClass RTCRestStringMapBase::typeClass(void) const 211 RTCRestObjectBase::kTypeClass RTCRestStringMapBase::typeClass(void) const RT_NOEXCEPT 212 212 { 213 213 return kTypeClass_StringMap; … … 215 215 216 216 217 const char *RTCRestStringMapBase::typeName(void) const 217 const char *RTCRestStringMapBase::typeName(void) const RT_NOEXCEPT 218 218 { 219 219 return "RTCRestStringMap<ValueType>"; … … 228 228 * @callback_method_impl{FNRTSTRSPACECALLBACK} 229 229 */ 230 /*static*/ DECLCALLBACK(int) RTCRestStringMapBase::stringSpaceDestructorCallback(PRTSTRSPACECORE pStr, void *pvUser) 230 /*static*/ DECLCALLBACK(int) RTCRestStringMapBase::stringSpaceDestructorCallback(PRTSTRSPACECORE pStr, void *pvUser) RT_NOEXCEPT 231 231 { 232 232 MapEntry *pNode = (MapEntry *)pStr; … … 244 244 245 245 246 void RTCRestStringMapBase::clear() 246 void RTCRestStringMapBase::clear() RT_NOEXCEPT 247 247 { 248 248 RTStrSpaceDestroy(&m_Map, stringSpaceDestructorCallback, NULL); … … 253 253 254 254 255 size_t RTCRestStringMapBase::size() const 255 size_t RTCRestStringMapBase::size() const RT_NOEXCEPT 256 256 { 257 257 return m_cEntries; … … 259 259 260 260 261 bool RTCRestStringMapBase::containsKey(const char *a_pszKey) const 261 bool RTCRestStringMapBase::containsKey(const char *a_pszKey) const RT_NOEXCEPT 262 262 { 263 263 return RTStrSpaceGet((PRTSTRSPACE)&m_Map, a_pszKey) != NULL; … … 265 265 266 266 267 bool RTCRestStringMapBase::containsKey(RTCString const &a_rStrKey) const 267 bool RTCRestStringMapBase::containsKey(RTCString const &a_rStrKey) const RT_NOEXCEPT 268 268 { 269 269 return containsKey(a_rStrKey.c_str()); … … 271 271 272 272 273 bool RTCRestStringMapBase::remove(const char *a_pszKey) 273 bool RTCRestStringMapBase::remove(const char *a_pszKey) RT_NOEXCEPT 274 274 { 275 275 MapEntry *pRemoved = (MapEntry *)RTStrSpaceRemove(&m_Map, a_pszKey); … … 285 285 286 286 287 bool RTCRestStringMapBase::remove(RTCString const &a_rStrKey) 287 bool RTCRestStringMapBase::remove(RTCString const &a_rStrKey) RT_NOEXCEPT 288 288 { 289 289 return remove(a_rStrKey.c_str()); … … 292 292 293 293 int RTCRestStringMapBase::putNewValue(RTCRestObjectBase **a_ppValue, const char *a_pszKey, size_t a_cchKey /*= RTSTR_MAX*/, 294 bool a_fReplace /*= false*/) 294 bool a_fReplace /*= false*/) RT_NOEXCEPT 295 295 { 296 296 RTCRestObjectBase *pValue = createValue(); … … 312 312 313 313 314 int RTCRestStringMapBase::putNewValue(RTCRestObjectBase **a_ppValue, RTCString const &a_rStrKey, bool a_fReplace /*= false*/) 314 int RTCRestStringMapBase::putNewValue(RTCRestObjectBase **a_ppValue, RTCString const &a_rStrKey, bool a_fReplace /*= false*/) RT_NOEXCEPT 315 315 { 316 316 return putNewValue(a_ppValue, a_rStrKey.c_str(), a_rStrKey.length(), a_fReplace); … … 322 322 *********************************************************************************************************************************/ 323 323 324 int RTCRestStringMapBase::copyMapWorker (RTCRestStringMapBase const &a_rThat, bool a_fThrow)324 int RTCRestStringMapBase::copyMapWorkerNoThrow(RTCRestStringMapBase const &a_rThat) RT_NOEXCEPT 325 325 { 326 326 Assert(this != &a_rThat); … … 336 336 if (RT_SUCCESS(rc)) 337 337 { /* likely */ } 338 else if (a_fThrow)339 throw std::bad_alloc();340 338 else 341 339 return rc; … … 347 345 348 346 347 void RTCRestStringMapBase::copyMapWorkerMayThrow(RTCRestStringMapBase const &a_rThat) 348 { 349 int rc = copyMapWorkerNoThrow(a_rThat); 350 if (RT_SUCCESS(rc)) 351 return; 352 throw std::bad_alloc(); 353 } 354 355 349 356 int RTCRestStringMapBase::putWorker(const char *a_pszKey, RTCRestObjectBase *a_pValue, bool a_fReplace, 350 size_t a_cchKey /*= RTSTR_MAX*/) 357 size_t a_cchKey /*= RTSTR_MAX*/) RT_NOEXCEPT 351 358 { 352 359 int rc; … … 396 403 397 404 int RTCRestStringMapBase::putCopyWorker(const char *a_pszKey, RTCRestObjectBase const &a_rValue, bool a_fReplace, 398 size_t a_cchKey /*= RTSTR_MAX*/) 405 size_t a_cchKey /*= RTSTR_MAX*/) RT_NOEXCEPT 399 406 { 400 407 int rc; … … 414 421 415 422 416 RTCRestObjectBase *RTCRestStringMapBase::getWorker(const char *a_pszKey) 423 RTCRestObjectBase *RTCRestStringMapBase::getWorker(const char *a_pszKey) RT_NOEXCEPT 417 424 { 418 425 MapEntry *pHit = (MapEntry *)RTStrSpaceGet(&m_Map, a_pszKey); … … 423 430 424 431 425 RTCRestObjectBase const *RTCRestStringMapBase::getWorker(const char *a_pszKey) const 432 RTCRestObjectBase const *RTCRestStringMapBase::getWorker(const char *a_pszKey) const RT_NOEXCEPT 426 433 { 427 434 MapEntry const *pHit = (MapEntry const *)RTStrSpaceGet((PRTSTRSPACE)&m_Map, a_pszKey); -
trunk/src/VBox/Runtime/common/rest/rest-binary.cpp
r74414 r74425 56 56 * Default constructor. 57 57 */ 58 RTCRestBinary::RTCRestBinary() 58 RTCRestBinary::RTCRestBinary() RT_NOEXCEPT 59 59 : m_pbData(NULL) 60 60 , m_cbData(0) … … 77 77 * Safe copy assignment method. 78 78 */ 79 int RTCRestBinary::assignCopy(RTCRestBinary const &a_rThat) 79 int RTCRestBinary::assignCopy(RTCRestBinary const &a_rThat) RT_NOEXCEPT 80 80 { 81 81 freeData(); … … 99 99 * Safe buffer copy method. 100 100 */ 101 int RTCRestBinary::assignCopy(void const *a_pvData, size_t a_cbData) 101 int RTCRestBinary::assignCopy(void const *a_pvData, size_t a_cbData) RT_NOEXCEPT 102 102 { 103 103 if ( m_pbData == NULL … … 126 126 * Use the specified data buffer directly. 127 127 */ 128 int RTCRestBinary::assignReadOnly(void const *a_pvData, size_t a_cbData) 128 int RTCRestBinary::assignReadOnly(void const *a_pvData, size_t a_cbData) RT_NOEXCEPT 129 129 { 130 130 freeData(); … … 145 145 * Use the specified data buffer directly. 146 146 */ 147 int RTCRestBinary::assignWriteable(void *a_pvBuf, size_t a_cbBuf) 147 int RTCRestBinary::assignWriteable(void *a_pvBuf, size_t a_cbBuf) RT_NOEXCEPT 148 148 { 149 149 freeData(); … … 164 164 * Frees the data held by the object and resets it default state. 165 165 */ 166 void RTCRestBinary::freeData() 166 void RTCRestBinary::freeData() RT_NOEXCEPT 167 167 { 168 168 if (m_fFreeable) … … 178 178 /* Overridden methods: */ 179 179 180 RTCRestObjectBase *RTCRestBinary::baseClone() const 180 RTCRestObjectBase *RTCRestBinary::baseClone() const RT_NOEXCEPT 181 181 { 182 182 RTCRestBinary *pClone = new (std::nothrow) RTCRestBinary(); … … 192 192 193 193 194 int RTCRestBinary::setNull(void) 194 int RTCRestBinary::setNull(void) RT_NOEXCEPT 195 195 { 196 196 freeData(); … … 200 200 201 201 202 int RTCRestBinary::resetToDefault(void) 203 { 204 freeData(); 205 return VINF_SUCCESS; 206 } 207 208 209 RTCRestOutputBase &RTCRestBinary::serializeAsJson(RTCRestOutputBase &a_rDst) const 202 int RTCRestBinary::resetToDefault(void) RT_NOEXCEPT 203 { 204 freeData(); 205 return VINF_SUCCESS; 206 } 207 208 209 RTCRestOutputBase &RTCRestBinary::serializeAsJson(RTCRestOutputBase &a_rDst) const RT_NOEXCEPT 210 210 { 211 211 AssertMsgFailed(("We should never get here!\n")); … … 215 215 216 216 217 int RTCRestBinary::deserializeFromJson(RTCRestJsonCursor const &a_rCursor) 217 int RTCRestBinary::deserializeFromJson(RTCRestJsonCursor const &a_rCursor) RT_NOEXCEPT 218 218 { 219 219 return a_rCursor.m_pPrimary->addError(a_rCursor, VERR_NOT_SUPPORTED, "RTCRestBinary does not support deserialization!"); … … 221 221 222 222 223 int RTCRestBinary::toString(RTCString *a_pDst, uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) const 223 int RTCRestBinary::toString(RTCString *a_pDst, uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) const RT_NOEXCEPT 224 224 { 225 225 RT_NOREF(a_pDst, a_fFlags); … … 229 229 230 230 int RTCRestBinary::fromString(RTCString const &a_rValue, const char *a_pszName, PRTERRINFO a_pErrInfo/*= NULL*/, 231 uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) 231 uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) RT_NOEXCEPT 232 232 { 233 233 RT_NOREF(a_rValue, a_pszName, a_fFlags); … … 236 236 237 237 238 RTCRestObjectBase::kTypeClass RTCRestBinary::typeClass(void) const 238 RTCRestObjectBase::kTypeClass RTCRestBinary::typeClass(void) const RT_NOEXCEPT 239 239 { 240 240 return kTypeClass_Binary; … … 242 242 243 243 244 const char *RTCRestBinary::typeName(void) const 244 const char *RTCRestBinary::typeName(void) const RT_NOEXCEPT 245 245 { 246 246 return "RTCRestBinary"; … … 249 249 250 250 /** Factory method. */ 251 /*static*/ DECLCALLBACK(RTCRestObjectBase *) RTCRestBinary::createInstance(void) 251 /*static*/ DECLCALLBACK(RTCRestObjectBase *) RTCRestBinary::createInstance(void) RT_NOEXCEPT 252 252 { 253 253 return new (std::nothrow) RTCRestBinary(); … … 259 259 */ 260 260 /*static*/ DECLCALLBACK(int) 261 RTCRestBinary::deserializeInstanceFromJson(RTCRestJsonCursor const &a_rCursor, RTCRestObjectBase **a_ppInstance) 261 RTCRestBinary::deserializeInstanceFromJson(RTCRestJsonCursor const &a_rCursor, RTCRestObjectBase **a_ppInstance) RT_NOEXCEPT 262 262 { 263 263 RTCRestObjectBase *pObj; … … 277 277 * Default constructor. 278 278 */ 279 RTCRestBinaryParameter::RTCRestBinaryParameter() 279 RTCRestBinaryParameter::RTCRestBinaryParameter() RT_NOEXCEPT 280 280 : RTCRestBinary() 281 281 , m_cbContentLength(UINT64_MAX) … … 287 287 288 288 289 int RTCRestBinaryParameter::assignCopy(RTCRestBinaryParameter const &a_rThat) 289 int RTCRestBinaryParameter::assignCopy(RTCRestBinaryParameter const &a_rThat) RT_NOEXCEPT 290 290 { 291 291 AssertReturn(a_rThat.m_pfnProducer, VERR_INVALID_STATE); … … 300 300 301 301 302 int RTCRestBinaryParameter::assignCopy(RTCRestBinary const &a_rThat) 302 int RTCRestBinaryParameter::assignCopy(RTCRestBinary const &a_rThat) RT_NOEXCEPT 303 303 { 304 304 m_cbContentLength = a_rThat.getSize(); … … 310 310 311 311 312 int RTCRestBinaryParameter::assignCopy(void const *a_pvData, size_t a_cbData) 312 int RTCRestBinaryParameter::assignCopy(void const *a_pvData, size_t a_cbData) RT_NOEXCEPT 313 313 { 314 314 m_cbContentLength = a_cbData; … … 319 319 320 320 321 int RTCRestBinaryParameter::assignReadOnly(void const *a_pvData, size_t a_cbData) 321 int RTCRestBinaryParameter::assignReadOnly(void const *a_pvData, size_t a_cbData) RT_NOEXCEPT 322 322 { 323 323 m_cbContentLength = a_cbData; … … 328 328 329 329 330 int RTCRestBinaryParameter::assignWriteable(void *a_pvBuf, size_t a_cbBuf) 330 int RTCRestBinaryParameter::assignWriteable(void *a_pvBuf, size_t a_cbBuf) RT_NOEXCEPT 331 331 { 332 332 AssertMsgFailed(("Please use assignReadOnly!\n")); … … 335 335 336 336 337 RTCRestObjectBase *RTCRestBinaryParameter::baseClone() const 337 RTCRestObjectBase *RTCRestBinaryParameter::baseClone() const RT_NOEXCEPT 338 338 { 339 339 RTCRestBinaryParameter *pClone = new (std::nothrow) RTCRestBinaryParameter(); … … 349 349 350 350 351 int RTCRestBinaryParameter::resetToDefault() 351 int RTCRestBinaryParameter::resetToDefault() RT_NOEXCEPT 352 352 { 353 353 m_cbContentLength = UINT64_MAX; … … 358 358 359 359 360 const char *RTCRestBinaryParameter::typeName(void) const 360 const char *RTCRestBinaryParameter::typeName(void) const RT_NOEXCEPT 361 361 { 362 362 return "RTCRestBinaryParameter"; … … 364 364 365 365 366 /*static*/ DECLCALLBACK(RTCRestObjectBase *) RTCRestBinaryParameter::createInstance(void) 366 /*static*/ DECLCALLBACK(RTCRestObjectBase *) RTCRestBinaryParameter::createInstance(void) RT_NOEXCEPT 367 367 { 368 368 return new (std::nothrow) RTCRestBinaryParameter(); … … 370 370 371 371 372 int RTCRestBinaryParameter::setContentType(const char *a_pszContentType) 372 int RTCRestBinaryParameter::setContentType(const char *a_pszContentType) RT_NOEXCEPT 373 373 { 374 374 return m_strContentType.assignNoThrow(a_pszContentType); … … 377 377 378 378 void RTCRestBinaryParameter::setProducerCallback(PFNPRODUCER a_pfnProducer, void *a_pvCallbackData /*= NULL*/, 379 uint64_t a_cbContentLength /*= UINT64_MAX*/) 379 uint64_t a_cbContentLength /*= UINT64_MAX*/) RT_NOEXCEPT 380 380 { 381 381 freeData(); … … 387 387 388 388 389 int RTCRestBinaryParameter::xmitPrepare(RTHTTP a_hHttp) const 389 int RTCRestBinaryParameter::xmitPrepare(RTHTTP a_hHttp) const RT_NOEXCEPT 390 390 { 391 391 AssertReturn(m_pbData != NULL || m_pfnProducer != NULL || m_cbContentLength == 0, VERR_INVALID_STATE); … … 434 434 /*static*/ DECLCALLBACK(int) 435 435 RTCRestBinaryParameter::xmitHttpCallback(RTHTTP hHttp, void *pvBuf, size_t cbBuf, 436 uint64_t offContent, size_t *pcbActual, void *pvUser) 436 uint64_t offContent, size_t *pcbActual, void *pvUser) RT_NOEXCEPT 437 437 { 438 438 RTCRestBinaryParameter *pThis = (RTCRestBinaryParameter *)pvUser; … … 462 462 463 463 464 void RTCRestBinaryParameter::xmitComplete(RTHTTP a_hHttp) const 464 void RTCRestBinaryParameter::xmitComplete(RTHTTP a_hHttp) const RT_NOEXCEPT 465 465 { 466 466 /* Unset the callback. */ … … 477 477 * Default constructor. 478 478 */ 479 RTCRestBinaryResponse::RTCRestBinaryResponse() 479 RTCRestBinaryResponse::RTCRestBinaryResponse() RT_NOEXCEPT 480 480 : RTCRestBinary() 481 481 , m_cbContentLength(UINT64_MAX) … … 488 488 489 489 490 int RTCRestBinaryResponse::assignCopy(RTCRestBinaryResponse const &a_rThat) 490 int RTCRestBinaryResponse::assignCopy(RTCRestBinaryResponse const &a_rThat) RT_NOEXCEPT 491 491 { 492 492 AssertReturn(a_rThat.m_pfnConsumer, VERR_INVALID_STATE); … … 499 499 500 500 501 int RTCRestBinaryResponse::assignCopy(RTCRestBinary const &a_rThat) 501 int RTCRestBinaryResponse::assignCopy(RTCRestBinary const &a_rThat) RT_NOEXCEPT 502 502 { 503 503 m_cbContentLength = UINT64_MAX; … … 509 509 510 510 511 int RTCRestBinaryResponse::assignCopy(void const *a_pvData, size_t a_cbData) 511 int RTCRestBinaryResponse::assignCopy(void const *a_pvData, size_t a_cbData) RT_NOEXCEPT 512 512 { 513 513 RT_NOREF(a_pvData, a_cbData); … … 516 516 517 517 518 int RTCRestBinaryResponse::assignReadOnly(void const *a_pvData, size_t a_cbData) 518 int RTCRestBinaryResponse::assignReadOnly(void const *a_pvData, size_t a_cbData) RT_NOEXCEPT 519 519 { 520 520 RT_NOREF(a_pvData, a_cbData); … … 523 523 524 524 525 int RTCRestBinaryResponse::assignWriteable(void *a_pvBuf, size_t a_cbBuf) 525 int RTCRestBinaryResponse::assignWriteable(void *a_pvBuf, size_t a_cbBuf) RT_NOEXCEPT 526 526 { 527 527 m_cbContentLength = UINT64_MAX; … … 534 534 535 535 536 RTCRestObjectBase *RTCRestBinaryResponse::baseClone() const 536 RTCRestObjectBase *RTCRestBinaryResponse::baseClone() const RT_NOEXCEPT 537 537 { 538 538 RTCRestBinaryResponse *pClone = new (std::nothrow) RTCRestBinaryResponse(); … … 548 548 549 549 550 int RTCRestBinaryResponse::resetToDefault() 550 int RTCRestBinaryResponse::resetToDefault() RT_NOEXCEPT 551 551 { 552 552 m_cbContentLength = UINT64_MAX; … … 559 559 560 560 561 const char *RTCRestBinaryResponse::typeName(void) const 561 const char *RTCRestBinaryResponse::typeName(void) const RT_NOEXCEPT 562 562 { 563 563 return "RTCRestBinaryResponse"; … … 565 565 566 566 567 /*static*/ DECLCALLBACK(RTCRestObjectBase *) RTCRestBinaryResponse::createInstance(void) 567 /*static*/ DECLCALLBACK(RTCRestObjectBase *) RTCRestBinaryResponse::createInstance(void) RT_NOEXCEPT 568 568 { 569 569 return new (std::nothrow) RTCRestBinaryResponse(); … … 571 571 572 572 573 void RTCRestBinaryResponse::setMaxDownloadSize(size_t a_cbMaxDownload) 573 void RTCRestBinaryResponse::setMaxDownloadSize(size_t a_cbMaxDownload) RT_NOEXCEPT 574 574 { 575 575 if (a_cbMaxDownload == 0) … … 580 580 581 581 582 void RTCRestBinaryResponse::setConsumerCallback(PFNCONSUMER a_pfnConsumer, void *a_pvCallbackData /*= NULL*/) 582 void RTCRestBinaryResponse::setConsumerCallback(PFNCONSUMER a_pfnConsumer, void *a_pvCallbackData /*= NULL*/) RT_NOEXCEPT 583 583 { 584 584 freeData(); … … 591 591 592 592 593 int RTCRestBinaryResponse::receivePrepare(RTHTTP a_hHttp, uint32_t a_fCallbackFlags) 593 int RTCRestBinaryResponse::receivePrepare(RTHTTP a_hHttp, uint32_t a_fCallbackFlags) RT_NOEXCEPT 594 594 { 595 595 AssertReturn(!m_fReadOnly, VERR_INVALID_STATE); … … 606 606 /*static*/ DECLCALLBACK(int) 607 607 RTCRestBinaryResponse::receiveHttpCallback(RTHTTP hHttp, void const *pvBuf, size_t cbBuf, uint32_t uHttpStatus, 608 uint64_t offContent, uint64_t cbContent, void *pvUser) 608 uint64_t offContent, uint64_t cbContent, void *pvUser) RT_NOEXCEPT 609 609 { 610 610 RTCRestBinaryResponse *pThis = (RTCRestBinaryResponse *)pvUser; … … 687 687 688 688 689 void RTCRestBinaryResponse::receiveComplete(RTHTTP a_hHttp) 689 void RTCRestBinaryResponse::receiveComplete(RTHTTP a_hHttp) RT_NOEXCEPT 690 690 { 691 691 /* Unset the callback. */ -
trunk/src/VBox/Runtime/common/rest/rest-primary-object-types.cpp
r74414 r74425 48 48 49 49 /** Default constructor. */ 50 RTCRestObjectBase::RTCRestObjectBase() 50 RTCRestObjectBase::RTCRestObjectBase() RT_NOEXCEPT 51 51 : m_fNullIndicator(false) 52 52 { … … 55 55 56 56 /** Copy constructor. */ 57 RTCRestObjectBase::RTCRestObjectBase(RTCRestObjectBase const &a_rThat) 57 RTCRestObjectBase::RTCRestObjectBase(RTCRestObjectBase const &a_rThat) RT_NOEXCEPT 58 58 : m_fNullIndicator(a_rThat.m_fNullIndicator) 59 59 { … … 68 68 69 69 70 int RTCRestObjectBase::setNull() 70 int RTCRestObjectBase::setNull() RT_NOEXCEPT 71 71 { 72 72 int rc = resetToDefault(); … … 76 76 77 77 78 void RTCRestObjectBase::setNotNull() 79 { 80 m_fNullIndicator = false; 81 } 82 83 84 int RTCRestObjectBase::toString(RTCString *a_pDst, uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) const 78 void RTCRestObjectBase::setNotNull() RT_NOEXCEPT 79 { 80 m_fNullIndicator = false; 81 } 82 83 84 int RTCRestObjectBase::toString(RTCString *a_pDst, uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) const RT_NOEXCEPT 85 85 { 86 86 /* … … 102 102 103 103 int RTCRestObjectBase::fromString(RTCString const &a_rValue, const char *a_pszName, PRTERRINFO a_pErrInfo /*= NULL*/, 104 uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) 104 uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) RT_NOEXCEPT 105 105 { 106 106 RT_NOREF(a_fFlags); … … 126 126 127 127 /** Factory method. */ 128 /*static*/ DECLCALLBACK(RTCRestObjectBase *) RTCRestBool::createInstance(void) 128 /*static*/ DECLCALLBACK(RTCRestObjectBase *) RTCRestBool::createInstance(void) RT_NOEXCEPT 129 129 { 130 130 return new (std::nothrow) RTCRestBool(); … … 136 136 */ 137 137 /*static*/ DECLCALLBACK(int) 138 RTCRestBool::deserializeInstanceFromJson(RTCRestJsonCursor const &a_rCursor, RTCRestObjectBase **a_ppInstance) 138 RTCRestBool::deserializeInstanceFromJson(RTCRestJsonCursor const &a_rCursor, RTCRestObjectBase **a_ppInstance) RT_NOEXCEPT 139 139 { 140 140 RTCRestObjectBase *pObj = createInstance(); … … 147 147 148 148 /** Default constructor. */ 149 RTCRestBool::RTCRestBool() 149 RTCRestBool::RTCRestBool() RT_NOEXCEPT 150 150 : RTCRestObjectBase() 151 151 , m_fValue(false) … … 155 155 156 156 /** Copy constructor. */ 157 RTCRestBool::RTCRestBool(RTCRestBool const &a_rThat) 157 RTCRestBool::RTCRestBool(RTCRestBool const &a_rThat) RT_NOEXCEPT 158 158 : RTCRestObjectBase(a_rThat) 159 159 , m_fValue(a_rThat.m_fValue) … … 163 163 164 164 /** From value constructor. */ 165 RTCRestBool::RTCRestBool(bool fValue) 165 RTCRestBool::RTCRestBool(bool fValue) RT_NOEXCEPT 166 166 : m_fValue(fValue) 167 167 { … … 177 177 178 178 /** Copy assignment operator. */ 179 RTCRestBool &RTCRestBool::operator=(RTCRestBool const &a_rThat) 179 RTCRestBool &RTCRestBool::operator=(RTCRestBool const &a_rThat) RT_NOEXCEPT 180 180 { 181 181 m_fNullIndicator = a_rThat.m_fNullIndicator; … … 185 185 186 186 187 int RTCRestBool::assignCopy(RTCRestBool const &a_rThat) 187 int RTCRestBool::assignCopy(RTCRestBool const &a_rThat) RT_NOEXCEPT 188 188 { 189 189 m_fNullIndicator = a_rThat.m_fNullIndicator; … … 193 193 194 194 195 void RTCRestBool::assignValue(bool a_fValue) 195 void RTCRestBool::assignValue(bool a_fValue) RT_NOEXCEPT 196 196 { 197 197 m_fValue = a_fValue; … … 200 200 201 201 202 RTCRestObjectBase *RTCRestBool::baseClone() const 202 RTCRestObjectBase *RTCRestBool::baseClone() const RT_NOEXCEPT 203 203 { 204 204 return new (std::nothrow) RTCRestBool(*this); … … 206 206 207 207 208 int RTCRestBool::resetToDefault() 208 int RTCRestBool::resetToDefault() RT_NOEXCEPT 209 209 { 210 210 m_fValue = false; … … 214 214 215 215 216 RTCRestOutputBase &RTCRestBool::serializeAsJson(RTCRestOutputBase &a_rDst) const 216 RTCRestOutputBase &RTCRestBool::serializeAsJson(RTCRestOutputBase &a_rDst) const RT_NOEXCEPT 217 217 { 218 218 a_rDst.printf(!m_fNullIndicator ? m_fValue ? "true" : "false" : "null"); … … 221 221 222 222 223 int RTCRestBool::deserializeFromJson(RTCRestJsonCursor const &a_rCursor) 223 int RTCRestBool::deserializeFromJson(RTCRestJsonCursor const &a_rCursor) RT_NOEXCEPT 224 224 { 225 225 m_fValue = false; … … 248 248 249 249 250 int RTCRestBool::toString(RTCString *a_pDst, uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) const 250 int RTCRestBool::toString(RTCString *a_pDst, uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) const RT_NOEXCEPT 251 251 { 252 252 if (!(a_fFlags & kToString_Append)) … … 272 272 273 273 int RTCRestBool::fromString(RTCString const &a_rValue, const char *a_pszName, PRTERRINFO a_pErrInfo /*= NULL*/, 274 uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) 274 uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) RT_NOEXCEPT 275 275 { 276 276 RT_NOREF(a_fFlags); … … 298 298 299 299 300 RTCRestObjectBase::kTypeClass RTCRestBool::typeClass() const 300 RTCRestObjectBase::kTypeClass RTCRestBool::typeClass() const RT_NOEXCEPT 301 301 { 302 302 return kTypeClass_Bool; … … 304 304 305 305 306 const char *RTCRestBool::typeName() const 306 const char *RTCRestBool::typeName() const RT_NOEXCEPT 307 307 { 308 308 return "bool"; … … 316 316 317 317 /** Factory method. */ 318 /*static*/ DECLCALLBACK(RTCRestObjectBase *) RTCRestInt64::createInstance(void) 318 /*static*/ DECLCALLBACK(RTCRestObjectBase *) RTCRestInt64::createInstance(void) RT_NOEXCEPT 319 319 { 320 320 return new (std::nothrow) RTCRestInt64(); … … 326 326 */ 327 327 /*static*/ DECLCALLBACK(int) 328 RTCRestInt64::deserializeInstanceFromJson(RTCRestJsonCursor const &a_rCursor, RTCRestObjectBase **a_ppInstance) 328 RTCRestInt64::deserializeInstanceFromJson(RTCRestJsonCursor const &a_rCursor, RTCRestObjectBase **a_ppInstance) RT_NOEXCEPT 329 329 { 330 330 RTCRestObjectBase *pObj = createInstance(); … … 337 337 338 338 /** Default constructor. */ 339 RTCRestInt64::RTCRestInt64() 339 RTCRestInt64::RTCRestInt64() RT_NOEXCEPT 340 340 : RTCRestObjectBase() 341 341 , m_iValue(0) … … 345 345 346 346 /** Copy constructor. */ 347 RTCRestInt64::RTCRestInt64(RTCRestInt64 const &a_rThat) 347 RTCRestInt64::RTCRestInt64(RTCRestInt64 const &a_rThat) RT_NOEXCEPT 348 348 : RTCRestObjectBase(a_rThat) 349 349 , m_iValue(a_rThat.m_iValue) … … 353 353 354 354 /** From value constructor. */ 355 RTCRestInt64::RTCRestInt64(int64_t iValue) 355 RTCRestInt64::RTCRestInt64(int64_t iValue) RT_NOEXCEPT 356 356 : RTCRestObjectBase() 357 357 , m_iValue(iValue) … … 368 368 369 369 /** Copy assignment operator. */ 370 RTCRestInt64 &RTCRestInt64::operator=(RTCRestInt64 const &a_rThat) 370 RTCRestInt64 &RTCRestInt64::operator=(RTCRestInt64 const &a_rThat) RT_NOEXCEPT 371 371 { 372 372 m_fNullIndicator = a_rThat.m_fNullIndicator; … … 376 376 377 377 378 int RTCRestInt64::assignCopy(RTCRestInt64 const &a_rThat) 378 int RTCRestInt64::assignCopy(RTCRestInt64 const &a_rThat) RT_NOEXCEPT 379 379 { 380 380 m_fNullIndicator = a_rThat.m_fNullIndicator; … … 384 384 385 385 386 void RTCRestInt64::assignValue(int64_t a_iValue) 386 void RTCRestInt64::assignValue(int64_t a_iValue) RT_NOEXCEPT 387 387 { 388 388 m_iValue = a_iValue; … … 391 391 392 392 393 RTCRestObjectBase *RTCRestInt64::baseClone() const 393 RTCRestObjectBase *RTCRestInt64::baseClone() const RT_NOEXCEPT 394 394 { 395 395 return new (std::nothrow) RTCRestInt64(*this); … … 397 397 398 398 399 int RTCRestInt64::resetToDefault() 399 int RTCRestInt64::resetToDefault() RT_NOEXCEPT 400 400 { 401 401 m_iValue = 0; … … 405 405 406 406 407 RTCRestOutputBase &RTCRestInt64::serializeAsJson(RTCRestOutputBase &a_rDst) const 407 RTCRestOutputBase &RTCRestInt64::serializeAsJson(RTCRestOutputBase &a_rDst) const RT_NOEXCEPT 408 408 { 409 409 if (!m_fNullIndicator) … … 415 415 416 416 417 int RTCRestInt64::deserializeFromJson(RTCRestJsonCursor const &a_rCursor) 417 int RTCRestInt64::deserializeFromJson(RTCRestJsonCursor const &a_rCursor) RT_NOEXCEPT 418 418 { 419 419 m_iValue = 0; … … 444 444 445 445 446 int RTCRestInt64::toString(RTCString *a_pDst, uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) const 446 int RTCRestInt64::toString(RTCString *a_pDst, uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) const RT_NOEXCEPT 447 447 { 448 448 if (!(a_fFlags & kToString_Append)) … … 459 459 460 460 int RTCRestInt64::fromString(RTCString const &a_rValue, const char *a_pszName, PRTERRINFO a_pErrInfo /*= NULL*/, 461 uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) 461 uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) RT_NOEXCEPT 462 462 { 463 463 RT_NOREF(a_fFlags); … … 482 482 483 483 484 RTCRestObjectBase::kTypeClass RTCRestInt64::typeClass() const 484 RTCRestObjectBase::kTypeClass RTCRestInt64::typeClass() const RT_NOEXCEPT 485 485 { 486 486 return kTypeClass_Int64; … … 488 488 489 489 490 const char *RTCRestInt64::typeName() const 490 const char *RTCRestInt64::typeName() const RT_NOEXCEPT 491 491 { 492 492 return "int64_t"; … … 500 500 501 501 /** Factory method. */ 502 /*static*/ DECLCALLBACK(RTCRestObjectBase *) RTCRestInt32::createInstance(void) 502 /*static*/ DECLCALLBACK(RTCRestObjectBase *) RTCRestInt32::createInstance(void) RT_NOEXCEPT 503 503 { 504 504 return new (std::nothrow) RTCRestInt32(); … … 510 510 */ 511 511 /*static*/ DECLCALLBACK(int) 512 RTCRestInt32::deserializeInstanceFromJson(RTCRestJsonCursor const &a_rCursor, RTCRestObjectBase **a_ppInstance) 512 RTCRestInt32::deserializeInstanceFromJson(RTCRestJsonCursor const &a_rCursor, RTCRestObjectBase **a_ppInstance) RT_NOEXCEPT 513 513 { 514 514 RTCRestObjectBase *pObj = createInstance(); … … 521 521 522 522 /** Default constructor. */ 523 RTCRestInt32::RTCRestInt32() 523 RTCRestInt32::RTCRestInt32() RT_NOEXCEPT 524 524 : RTCRestObjectBase() 525 525 , m_iValue(0) … … 529 529 530 530 /** Copy constructor. */ 531 RTCRestInt32::RTCRestInt32(RTCRestInt32 const &a_rThat) 531 RTCRestInt32::RTCRestInt32(RTCRestInt32 const &a_rThat) RT_NOEXCEPT 532 532 : RTCRestObjectBase(a_rThat) 533 533 , m_iValue(a_rThat.m_iValue) … … 537 537 538 538 /** From value constructor. */ 539 RTCRestInt32::RTCRestInt32(int32_t iValue) 539 RTCRestInt32::RTCRestInt32(int32_t iValue) RT_NOEXCEPT 540 540 : RTCRestObjectBase() 541 541 , m_iValue(iValue) … … 552 552 553 553 /** Copy assignment operator. */ 554 RTCRestInt32 &RTCRestInt32::operator=(RTCRestInt32 const &a_rThat) 554 RTCRestInt32 &RTCRestInt32::operator=(RTCRestInt32 const &a_rThat) RT_NOEXCEPT 555 555 { 556 556 m_fNullIndicator = a_rThat.m_fNullIndicator; … … 560 560 561 561 562 int RTCRestInt32::assignCopy(RTCRestInt32 const &a_rThat) 562 int RTCRestInt32::assignCopy(RTCRestInt32 const &a_rThat) RT_NOEXCEPT 563 563 { 564 564 m_fNullIndicator = a_rThat.m_fNullIndicator; … … 568 568 569 569 570 RTCRestObjectBase *RTCRestInt32::baseClone() const 570 RTCRestObjectBase *RTCRestInt32::baseClone() const RT_NOEXCEPT 571 571 { 572 572 return new (std::nothrow) RTCRestInt32(*this); … … 574 574 575 575 576 int RTCRestInt32::resetToDefault() 576 int RTCRestInt32::resetToDefault() RT_NOEXCEPT 577 577 { 578 578 m_iValue = 0; … … 582 582 583 583 584 void RTCRestInt32::assignValue(int32_t a_iValue) 584 void RTCRestInt32::assignValue(int32_t a_iValue) RT_NOEXCEPT 585 585 { 586 586 m_iValue = a_iValue; … … 589 589 590 590 591 RTCRestOutputBase &RTCRestInt32::serializeAsJson(RTCRestOutputBase &a_rDst) const 591 RTCRestOutputBase &RTCRestInt32::serializeAsJson(RTCRestOutputBase &a_rDst) const RT_NOEXCEPT 592 592 { 593 593 if (!m_fNullIndicator) … … 599 599 600 600 601 int RTCRestInt32::deserializeFromJson(RTCRestJsonCursor const &a_rCursor) 601 int RTCRestInt32::deserializeFromJson(RTCRestJsonCursor const &a_rCursor) RT_NOEXCEPT 602 602 { 603 603 m_iValue = 0; … … 634 634 635 635 636 int RTCRestInt32::toString(RTCString *a_pDst, uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) const 636 int RTCRestInt32::toString(RTCString *a_pDst, uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) const RT_NOEXCEPT 637 637 { 638 638 if (!(a_fFlags & kToString_Append)) … … 649 649 650 650 int RTCRestInt32::fromString(RTCString const &a_rValue, const char *a_pszName, PRTERRINFO a_pErrInfo /*= NULL*/, 651 uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) 651 uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) RT_NOEXCEPT 652 652 { 653 653 RT_NOREF(a_fFlags); … … 672 672 673 673 674 RTCRestObjectBase::kTypeClass RTCRestInt32::typeClass() const 674 RTCRestObjectBase::kTypeClass RTCRestInt32::typeClass() const RT_NOEXCEPT 675 675 { 676 676 return kTypeClass_Int32; … … 678 678 679 679 680 const char *RTCRestInt32::typeName() const 680 const char *RTCRestInt32::typeName() const RT_NOEXCEPT 681 681 { 682 682 return "int32_t"; … … 690 690 691 691 /** Factory method. */ 692 /*static*/ DECLCALLBACK(RTCRestObjectBase *) RTCRestInt16::createInstance(void) 692 /*static*/ DECLCALLBACK(RTCRestObjectBase *) RTCRestInt16::createInstance(void) RT_NOEXCEPT 693 693 { 694 694 return new (std::nothrow) RTCRestInt16(); … … 700 700 */ 701 701 /*static*/ DECLCALLBACK(int) 702 RTCRestInt16::deserializeInstanceFromJson(RTCRestJsonCursor const &a_rCursor, RTCRestObjectBase **a_ppInstance) 702 RTCRestInt16::deserializeInstanceFromJson(RTCRestJsonCursor const &a_rCursor, RTCRestObjectBase **a_ppInstance) RT_NOEXCEPT 703 703 { 704 704 RTCRestObjectBase *pObj = createInstance(); … … 711 711 712 712 /** Default constructor. */ 713 RTCRestInt16::RTCRestInt16() 713 RTCRestInt16::RTCRestInt16() RT_NOEXCEPT 714 714 : RTCRestObjectBase() 715 715 , m_iValue(0) … … 719 719 720 720 /** Copy constructor. */ 721 RTCRestInt16::RTCRestInt16(RTCRestInt16 const &a_rThat) 721 RTCRestInt16::RTCRestInt16(RTCRestInt16 const &a_rThat) RT_NOEXCEPT 722 722 : RTCRestObjectBase(a_rThat) 723 723 , m_iValue(a_rThat.m_iValue) … … 727 727 728 728 /** From value constructor. */ 729 RTCRestInt16::RTCRestInt16(int16_t iValue) 729 RTCRestInt16::RTCRestInt16(int16_t iValue) RT_NOEXCEPT 730 730 : RTCRestObjectBase() 731 731 , m_iValue(iValue) … … 742 742 743 743 /** Copy assignment operator. */ 744 RTCRestInt16 &RTCRestInt16::operator=(RTCRestInt16 const &a_rThat) 744 RTCRestInt16 &RTCRestInt16::operator=(RTCRestInt16 const &a_rThat) RT_NOEXCEPT 745 745 { 746 746 m_fNullIndicator = a_rThat.m_fNullIndicator; … … 750 750 751 751 752 int RTCRestInt16::assignCopy(RTCRestInt16 const &a_rThat) 752 int RTCRestInt16::assignCopy(RTCRestInt16 const &a_rThat) RT_NOEXCEPT 753 753 { 754 754 m_fNullIndicator = a_rThat.m_fNullIndicator; … … 758 758 759 759 760 void RTCRestInt16::assignValue(int16_t a_iValue) 760 void RTCRestInt16::assignValue(int16_t a_iValue) RT_NOEXCEPT 761 761 { 762 762 m_iValue = a_iValue; … … 765 765 766 766 767 RTCRestObjectBase *RTCRestInt16::baseClone() const 767 RTCRestObjectBase *RTCRestInt16::baseClone() const RT_NOEXCEPT 768 768 { 769 769 return new (std::nothrow) RTCRestInt16(*this); … … 771 771 772 772 773 int RTCRestInt16::resetToDefault() 773 int RTCRestInt16::resetToDefault() RT_NOEXCEPT 774 774 { 775 775 m_iValue = 0; … … 779 779 780 780 781 RTCRestOutputBase &RTCRestInt16::serializeAsJson(RTCRestOutputBase &a_rDst) const 781 RTCRestOutputBase &RTCRestInt16::serializeAsJson(RTCRestOutputBase &a_rDst) const RT_NOEXCEPT 782 782 { 783 783 if (!m_fNullIndicator) … … 789 789 790 790 791 int RTCRestInt16::deserializeFromJson(RTCRestJsonCursor const &a_rCursor) 791 int RTCRestInt16::deserializeFromJson(RTCRestJsonCursor const &a_rCursor) RT_NOEXCEPT 792 792 { 793 793 m_iValue = 0; … … 824 824 825 825 826 int RTCRestInt16::toString(RTCString *a_pDst, uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) const 826 int RTCRestInt16::toString(RTCString *a_pDst, uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) const RT_NOEXCEPT 827 827 { 828 828 if (!(a_fFlags & kToString_Append)) … … 839 839 840 840 int RTCRestInt16::fromString(RTCString const &a_rValue, const char *a_pszName, PRTERRINFO a_pErrInfo /*= NULL*/, 841 uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) 841 uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) RT_NOEXCEPT 842 842 { 843 843 RT_NOREF(a_fFlags); … … 862 862 863 863 864 RTCRestObjectBase::kTypeClass RTCRestInt16::typeClass() const 864 RTCRestObjectBase::kTypeClass RTCRestInt16::typeClass() const RT_NOEXCEPT 865 865 { 866 866 return kTypeClass_Int16; … … 868 868 869 869 870 const char *RTCRestInt16::typeName() const 870 const char *RTCRestInt16::typeName() const RT_NOEXCEPT 871 871 { 872 872 return "int16_t"; … … 880 880 881 881 /** Factory method. */ 882 /*static*/ DECLCALLBACK(RTCRestObjectBase *) RTCRestDouble::createInstance(void) 882 /*static*/ DECLCALLBACK(RTCRestObjectBase *) RTCRestDouble::createInstance(void) RT_NOEXCEPT 883 883 { 884 884 return new (std::nothrow) RTCRestDouble(); … … 890 890 */ 891 891 /*static*/ DECLCALLBACK(int) 892 RTCRestDouble::deserializeInstanceFromJson(RTCRestJsonCursor const &a_rCursor, RTCRestObjectBase **a_ppInstance) 892 RTCRestDouble::deserializeInstanceFromJson(RTCRestJsonCursor const &a_rCursor, RTCRestObjectBase **a_ppInstance) RT_NOEXCEPT 893 893 { 894 894 RTCRestObjectBase *pObj = createInstance(); … … 901 901 902 902 /** Default constructor. */ 903 RTCRestDouble::RTCRestDouble() 903 RTCRestDouble::RTCRestDouble() RT_NOEXCEPT 904 904 : RTCRestObjectBase() 905 905 , m_rdValue(0.0) … … 909 909 910 910 /** Copy constructor. */ 911 RTCRestDouble::RTCRestDouble(RTCRestDouble const &a_rThat) 911 RTCRestDouble::RTCRestDouble(RTCRestDouble const &a_rThat) RT_NOEXCEPT 912 912 : RTCRestObjectBase(a_rThat) 913 913 , m_rdValue(a_rThat.m_rdValue) … … 917 917 918 918 /** From value constructor. */ 919 RTCRestDouble::RTCRestDouble(double rdValue) 919 RTCRestDouble::RTCRestDouble(double rdValue) RT_NOEXCEPT 920 920 : RTCRestObjectBase() 921 921 , m_rdValue(rdValue) … … 932 932 933 933 /** Copy assignment operator. */ 934 RTCRestDouble &RTCRestDouble::operator=(RTCRestDouble const &a_rThat) 934 RTCRestDouble &RTCRestDouble::operator=(RTCRestDouble const &a_rThat) RT_NOEXCEPT 935 935 { 936 936 m_fNullIndicator = a_rThat.m_fNullIndicator; … … 940 940 941 941 942 int RTCRestDouble::assignCopy(RTCRestDouble const &a_rThat) 942 int RTCRestDouble::assignCopy(RTCRestDouble const &a_rThat) RT_NOEXCEPT 943 943 { 944 944 m_fNullIndicator = a_rThat.m_fNullIndicator; … … 948 948 949 949 950 void RTCRestDouble::assignValue(double a_rdValue) 950 void RTCRestDouble::assignValue(double a_rdValue) RT_NOEXCEPT 951 951 { 952 952 m_rdValue = a_rdValue; … … 955 955 956 956 957 RTCRestObjectBase *RTCRestDouble::baseClone() const 957 RTCRestObjectBase *RTCRestDouble::baseClone() const RT_NOEXCEPT 958 958 { 959 959 return new (std::nothrow) RTCRestDouble(*this); … … 961 961 962 962 963 int RTCRestDouble::resetToDefault() 963 int RTCRestDouble::resetToDefault() RT_NOEXCEPT 964 964 { 965 965 m_rdValue = 0.0; … … 969 969 970 970 971 RTCRestOutputBase &RTCRestDouble::serializeAsJson(RTCRestOutputBase &a_rDst) const 971 RTCRestOutputBase &RTCRestDouble::serializeAsJson(RTCRestOutputBase &a_rDst) const RT_NOEXCEPT 972 972 { 973 973 if (!m_fNullIndicator) … … 995 995 996 996 997 int RTCRestDouble::deserializeFromJson(RTCRestJsonCursor const &a_rCursor) 997 int RTCRestDouble::deserializeFromJson(RTCRestJsonCursor const &a_rCursor) RT_NOEXCEPT 998 998 { 999 999 m_rdValue = 0.0; … … 1038 1038 1039 1039 1040 int RTCRestDouble::toString(RTCString *a_pDst, uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) const 1040 int RTCRestDouble::toString(RTCString *a_pDst, uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) const RT_NOEXCEPT 1041 1041 { 1042 1042 if (!m_fNullIndicator) … … 1067 1067 1068 1068 int RTCRestDouble::fromString(RTCString const &a_rValue, const char *a_pszName, PRTERRINFO a_pErrInfo /*= NULL*/, 1069 uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) 1069 uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) RT_NOEXCEPT 1070 1070 { 1071 1071 RT_NOREF(a_fFlags); … … 1106 1106 1107 1107 1108 RTCRestObjectBase::kTypeClass RTCRestDouble::typeClass() const 1108 RTCRestObjectBase::kTypeClass RTCRestDouble::typeClass() const RT_NOEXCEPT 1109 1109 { 1110 1110 return kTypeClass_Double; … … 1112 1112 1113 1113 1114 const char *RTCRestDouble::typeName() const 1114 const char *RTCRestDouble::typeName() const RT_NOEXCEPT 1115 1115 { 1116 1116 return "double"; … … 1124 1124 1125 1125 /** Factory method. */ 1126 /*static*/ DECLCALLBACK(RTCRestObjectBase *) RTCRestString::createInstance(void) 1126 /*static*/ DECLCALLBACK(RTCRestObjectBase *) RTCRestString::createInstance(void) RT_NOEXCEPT 1127 1127 { 1128 1128 return new (std::nothrow) RTCRestString(); … … 1134 1134 */ 1135 1135 /*static*/ DECLCALLBACK(int) 1136 RTCRestString::deserializeInstanceFromJson(RTCRestJsonCursor const &a_rCursor, RTCRestObjectBase **a_ppInstance) 1136 RTCRestString::deserializeInstanceFromJson(RTCRestJsonCursor const &a_rCursor, RTCRestObjectBase **a_ppInstance) RT_NOEXCEPT 1137 1137 { 1138 1138 RTCRestObjectBase *pObj = createInstance(); … … 1145 1145 1146 1146 /** Default constructor. */ 1147 RTCRestString::RTCRestString() 1147 RTCRestString::RTCRestString() RT_NOEXCEPT 1148 1148 : RTCRestObjectBase() 1149 1149 , RTCString() … … 1182 1182 1183 1183 1184 int RTCRestString::assignCopy(RTCRestString const &a_rThat) 1184 int RTCRestString::assignCopy(RTCRestString const &a_rThat) RT_NOEXCEPT 1185 1185 { 1186 1186 int rc = assignNoThrow(a_rThat); … … 1190 1190 1191 1191 1192 int RTCRestString::assignCopy(RTCString const &a_rThat) 1192 int RTCRestString::assignCopy(RTCString const &a_rThat) RT_NOEXCEPT 1193 1193 { 1194 1194 m_fNullIndicator = false; … … 1197 1197 1198 1198 1199 int RTCRestString::assignCopy(const char *a_pszThat) 1199 int RTCRestString::assignCopy(const char *a_pszThat) RT_NOEXCEPT 1200 1200 { 1201 1201 m_fNullIndicator = false; … … 1204 1204 1205 1205 1206 int RTCRestString::setNull() 1206 int RTCRestString::setNull() RT_NOEXCEPT 1207 1207 { 1208 1208 RTCString::setNull(); … … 1212 1212 1213 1213 1214 RTCRestObjectBase *RTCRestString::baseClone() const 1214 RTCRestObjectBase *RTCRestString::baseClone() const RT_NOEXCEPT 1215 1215 { 1216 1216 RTCRestString *pClone = new (std::nothrow) RTCRestString(); … … 1226 1226 1227 1227 1228 int RTCRestString::resetToDefault() 1228 int RTCRestString::resetToDefault() RT_NOEXCEPT 1229 1229 { 1230 1230 RTCString::setNull(); … … 1234 1234 1235 1235 1236 RTCRestOutputBase &RTCRestString::serializeAsJson(RTCRestOutputBase &a_rDst) const 1236 RTCRestOutputBase &RTCRestString::serializeAsJson(RTCRestOutputBase &a_rDst) const RT_NOEXCEPT 1237 1237 { 1238 1238 if (!m_fNullIndicator) … … 1244 1244 1245 1245 1246 int RTCRestString::deserializeFromJson(RTCRestJsonCursor const &a_rCursor) 1246 int RTCRestString::deserializeFromJson(RTCRestJsonCursor const &a_rCursor) RT_NOEXCEPT 1247 1247 { 1248 1248 m_fNullIndicator = false; … … 1272 1272 1273 1273 1274 int RTCRestString::toString(RTCString *a_pDst, uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) const 1274 int RTCRestString::toString(RTCString *a_pDst, uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) const RT_NOEXCEPT 1275 1275 { 1276 1276 /* Note! m_fNullIndicator == true: empty string. */ … … 1282 1282 1283 1283 int RTCRestString::fromString(RTCString const &a_rValue, const char *a_pszName, PRTERRINFO a_pErrInfo /*= NULL*/, 1284 uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) 1284 uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) RT_NOEXCEPT 1285 1285 { 1286 1286 RT_NOREF(a_fFlags); RT_NOREF(a_pszName); RT_NOREF(a_pErrInfo); … … 1292 1292 1293 1293 1294 RTCRestObjectBase::kTypeClass RTCRestString::typeClass() const 1294 RTCRestObjectBase::kTypeClass RTCRestString::typeClass() const RT_NOEXCEPT 1295 1295 { 1296 1296 return kTypeClass_String; … … 1298 1298 1299 1299 1300 const char *RTCRestString::typeName() const 1300 const char *RTCRestString::typeName() const RT_NOEXCEPT 1301 1301 { 1302 1302 return "RTCString"; … … 1444 1444 * RTCRestDate implementation * 1445 1445 *********************************************************************************************************************************/ 1446 /*static*/ DECLCALLBACK(RTCRestObjectBase *) RTCRestDate::createInstance(void) 1446 /*static*/ DECLCALLBACK(RTCRestObjectBase *) RTCRestDate::createInstance(void) RT_NOEXCEPT 1447 1447 { 1448 1448 return new (std::nothrow) RTCRestDate(); … … 1454 1454 */ 1455 1455 /*static*/ DECLCALLBACK(int) 1456 RTCRestDate::deserializeInstanceFromJson(RTCRestJsonCursor const &a_rCursor, RTCRestObjectBase **a_ppInstance) 1456 RTCRestDate::deserializeInstanceFromJson(RTCRestJsonCursor const &a_rCursor, RTCRestObjectBase **a_ppInstance) RT_NOEXCEPT 1457 1457 { 1458 1458 RTCRestObjectBase *pObj = createInstance(); … … 1464 1464 1465 1465 1466 RTCRestDate::RTCRestDate() 1466 RTCRestDate::RTCRestDate() RT_NOEXCEPT 1467 1467 : RTCRestObjectBase() 1468 1468 , m_fTimeSpecOkay(false) … … 1507 1507 1508 1508 1509 int RTCRestDate::assignCopy(RTCRestDate const &a_rThat) 1509 int RTCRestDate::assignCopy(RTCRestDate const &a_rThat) RT_NOEXCEPT 1510 1510 { 1511 1511 m_fNullIndicator = a_rThat.m_fNullIndicator; … … 1518 1518 1519 1519 1520 RTCRestObjectBase *RTCRestDate::baseClone() const 1520 RTCRestObjectBase *RTCRestDate::baseClone() const RT_NOEXCEPT 1521 1521 { 1522 1522 RTCRestDate *pClone = new (std::nothrow) RTCRestDate(); … … 1532 1532 1533 1533 1534 int RTCRestDate::resetToDefault() 1534 int RTCRestDate::resetToDefault() RT_NOEXCEPT 1535 1535 { 1536 1536 m_fNullIndicator = true; … … 1544 1544 1545 1545 1546 RTCRestOutputBase &RTCRestDate::serializeAsJson(RTCRestOutputBase &a_rDst) const 1546 RTCRestOutputBase &RTCRestDate::serializeAsJson(RTCRestOutputBase &a_rDst) const RT_NOEXCEPT 1547 1547 { 1548 1548 if (m_fNullIndicator) … … 1554 1554 1555 1555 1556 int RTCRestDate::deserializeFromJson(RTCRestJsonCursor const &a_rCursor) 1556 int RTCRestDate::deserializeFromJson(RTCRestJsonCursor const &a_rCursor) RT_NOEXCEPT 1557 1557 { 1558 1558 setNull(); … … 1586 1586 1587 1587 1588 int RTCRestDate::toString(RTCString *a_pDst, uint32_t a_fFlags /*= 0*/) const 1588 int RTCRestDate::toString(RTCString *a_pDst, uint32_t a_fFlags /*= 0*/) const RT_NOEXCEPT 1589 1589 { 1590 1590 if (m_fNullIndicator) … … 1601 1601 1602 1602 int RTCRestDate::fromString(RTCString const &a_rValue, const char *a_pszName, PRTERRINFO a_pErrInfo /*= NULL*/, 1603 uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) 1603 uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) RT_NOEXCEPT 1604 1604 { 1605 1605 setNull(); … … 1626 1626 1627 1627 1628 RTCRestObjectBase::kTypeClass RTCRestDate::typeClass(void) const 1628 RTCRestObjectBase::kTypeClass RTCRestDate::typeClass(void) const RT_NOEXCEPT 1629 1629 { 1630 1630 return kTypeClass_Date; … … 1632 1632 1633 1633 1634 const char *RTCRestDate::typeName(void) const 1634 const char *RTCRestDate::typeName(void) const RT_NOEXCEPT 1635 1635 { 1636 1636 return "RTCRestDate"; … … 1638 1638 1639 1639 1640 int RTCRestDate::assignValue(PCRTTIMESPEC a_pTimeSpec, kFormat a_enmFormat) 1640 int RTCRestDate::assignValue(PCRTTIMESPEC a_pTimeSpec, kFormat a_enmFormat) RT_NOEXCEPT 1641 1641 { 1642 1642 AssertPtrReturn(a_pTimeSpec, VERR_INVALID_PARAMETER); … … 1648 1648 1649 1649 1650 int RTCRestDate::assignValueRfc2822(PCRTTIMESPEC a_pTimeSpec) 1650 int RTCRestDate::assignValueRfc2822(PCRTTIMESPEC a_pTimeSpec) RT_NOEXCEPT 1651 1651 { 1652 1652 AssertPtrReturn(a_pTimeSpec, VERR_INVALID_PARAMETER); … … 1656 1656 1657 1657 1658 int RTCRestDate::assignValueRfc7131(PCRTTIMESPEC a_pTimeSpec) 1658 int RTCRestDate::assignValueRfc7131(PCRTTIMESPEC a_pTimeSpec) RT_NOEXCEPT 1659 1659 { 1660 1660 AssertPtrReturn(a_pTimeSpec, VERR_INVALID_PARAMETER); … … 1664 1664 1665 1665 1666 int RTCRestDate::assignValueRfc3339(PCRTTIMESPEC a_pTimeSpec) 1666 int RTCRestDate::assignValueRfc3339(PCRTTIMESPEC a_pTimeSpec) RT_NOEXCEPT 1667 1667 { 1668 1668 AssertPtrReturn(a_pTimeSpec, VERR_INVALID_PARAMETER); … … 1672 1672 1673 1673 1674 int RTCRestDate::assignNow(kFormat a_enmFormat) 1674 int RTCRestDate::assignNow(kFormat a_enmFormat) RT_NOEXCEPT 1675 1675 { 1676 1676 RTTIMESPEC Now; … … 1679 1679 1680 1680 1681 int RTCRestDate::assignNowRfc2822() 1681 int RTCRestDate::assignNowRfc2822() RT_NOEXCEPT 1682 1682 { 1683 1683 RTTIMESPEC Now; … … 1686 1686 1687 1687 1688 int RTCRestDate::assignNowRfc7131() 1688 int RTCRestDate::assignNowRfc7131() RT_NOEXCEPT 1689 1689 { 1690 1690 RTTIMESPEC Now; … … 1693 1693 1694 1694 1695 int RTCRestDate::assignNowRfc3339() 1695 int RTCRestDate::assignNowRfc3339() RT_NOEXCEPT 1696 1696 { 1697 1697 RTTIMESPEC Now; … … 1700 1700 1701 1701 1702 int RTCRestDate::setFormat(kFormat a_enmFormat) 1702 int RTCRestDate::setFormat(kFormat a_enmFormat) RT_NOEXCEPT 1703 1703 { 1704 1704 /* … … 1731 1731 1732 1732 1733 int RTCRestDate::explodeAndFormat(kFormat a_enmFormat) 1733 int RTCRestDate::explodeAndFormat(kFormat a_enmFormat) RT_NOEXCEPT 1734 1734 { 1735 1735 RTTimeExplode(&m_Exploded, &m_TimeSpec); … … 1746 1746 * @param a_enmFormat The format to use. 1747 1747 */ 1748 int RTCRestDate::format(kFormat a_enmFormat) 1748 int RTCRestDate::format(kFormat a_enmFormat) RT_NOEXCEPT 1749 1749 { 1750 1750 m_fNullIndicator = false; … … 1795 1795 * @param enmFormat Specific format to try, kFormat_Invalid (default) to try guess it. 1796 1796 */ 1797 int RTCRestDate::decodeFormattedString(kFormat enmFormat /*= kFormat_Invalid*/) 1797 int RTCRestDate::decodeFormattedString(kFormat enmFormat /*= kFormat_Invalid*/) RT_NOEXCEPT 1798 1798 { 1799 1799 /* … … 1904 1904 1905 1905 /** Default constructor. */ 1906 RTCRestStringEnumBase::RTCRestStringEnumBase() 1906 RTCRestStringEnumBase::RTCRestStringEnumBase() RT_NOEXCEPT 1907 1907 : RTCRestObjectBase() 1908 1908 , m_iEnumValue(0 /*invalid*/) … … 1938 1938 1939 1939 1940 int RTCRestStringEnumBase::assignCopy(RTCRestStringEnumBase const &a_rThat) 1940 int RTCRestStringEnumBase::assignCopy(RTCRestStringEnumBase const &a_rThat) RT_NOEXCEPT 1941 1941 { 1942 1942 m_fNullIndicator = a_rThat.m_fNullIndicator; … … 1946 1946 1947 1947 1948 int RTCRestStringEnumBase::resetToDefault() 1948 int RTCRestStringEnumBase::resetToDefault() RT_NOEXCEPT 1949 1949 { 1950 1950 m_iEnumValue = 0; /*invalid*/ … … 1954 1954 1955 1955 1956 RTCRestOutputBase &RTCRestStringEnumBase::serializeAsJson(RTCRestOutputBase &a_rDst) const 1956 RTCRestOutputBase &RTCRestStringEnumBase::serializeAsJson(RTCRestOutputBase &a_rDst) const RT_NOEXCEPT 1957 1957 { 1958 1958 if (!m_fNullIndicator) … … 1964 1964 1965 1965 1966 int RTCRestStringEnumBase::deserializeFromJson(RTCRestJsonCursor const &a_rCursor) 1966 int RTCRestStringEnumBase::deserializeFromJson(RTCRestJsonCursor const &a_rCursor) RT_NOEXCEPT 1967 1967 { 1968 1968 m_fNullIndicator = false; … … 1992 1992 1993 1993 1994 int RTCRestStringEnumBase::toString(RTCString *a_pDst, uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) const 1994 int RTCRestStringEnumBase::toString(RTCString *a_pDst, uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) const RT_NOEXCEPT 1995 1995 { 1996 1996 if (!m_fNullIndicator) … … 2018 2018 2019 2019 int RTCRestStringEnumBase::fromString(RTCString const &a_rValue, const char *a_pszName, PRTERRINFO a_pErrInfo /*= NULL*/, 2020 uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) 2020 uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) RT_NOEXCEPT 2021 2021 { 2022 2022 int iEnumValue = stringToEnum(a_rValue); … … 2047 2047 2048 2048 2049 RTCRestObjectBase::kTypeClass RTCRestStringEnumBase::typeClass(void) const 2049 RTCRestObjectBase::kTypeClass RTCRestStringEnumBase::typeClass(void) const RT_NOEXCEPT 2050 2050 { 2051 2051 return kTypeClass_StringEnum; … … 2053 2053 2054 2054 2055 int RTCRestStringEnumBase::setByString(const char *a_pszValue, size_t a_cchValue /*= RTSTR_MAX*/) 2055 int RTCRestStringEnumBase::setByString(const char *a_pszValue, size_t a_cchValue /*= RTSTR_MAX*/) RT_NOEXCEPT 2056 2056 { 2057 2057 if (a_cchValue == RTSTR_MAX) … … 2074 2074 2075 2075 2076 int RTCRestStringEnumBase::setByString(RTCString const &a_rValue) 2076 int RTCRestStringEnumBase::setByString(RTCString const &a_rValue) RT_NOEXCEPT 2077 2077 { 2078 2078 return setByString(a_rValue.c_str(), a_rValue.length()); … … 2080 2080 2081 2081 2082 const char *RTCRestStringEnumBase::getString() const 2082 const char *RTCRestStringEnumBase::getString() const RT_NOEXCEPT 2083 2083 { 2084 2084 /* We ASSUME a certain mapping table layout here. */ … … 2100 2100 2101 2101 2102 int RTCRestStringEnumBase::stringToEnum(const char *a_pszValue, size_t a_cchValue) 2102 int RTCRestStringEnumBase::stringToEnum(const char *a_pszValue, size_t a_cchValue) RT_NOEXCEPT 2103 2103 { 2104 2104 if (a_cchValue == RTSTR_MAX) … … 2115 2115 2116 2116 2117 int RTCRestStringEnumBase::stringToEnum(RTCString const &a_rStrValue) 2117 int RTCRestStringEnumBase::stringToEnum(RTCString const &a_rStrValue) RT_NOEXCEPT 2118 2118 { 2119 2119 return stringToEnum(a_rStrValue.c_str(), a_rStrValue.length()); … … 2121 2121 2122 2122 2123 const char *RTCRestStringEnumBase::enumToString(int a_iEnumValue, size_t *a_pcchString) 2123 const char *RTCRestStringEnumBase::enumToString(int a_iEnumValue, size_t *a_pcchString) RT_NOEXCEPT 2124 2124 { 2125 2125 /* We ASSUME a certain mapping table layout here. */ … … 2147 2147 2148 2148 2149 bool RTCRestStringEnumBase::setWorker(int a_iEnumValue) 2149 bool RTCRestStringEnumBase::setWorker(int a_iEnumValue) RT_NOEXCEPT 2150 2150 { 2151 2151 /* We ASSUME a certain mapping table layout here. */ … … 2168 2168 2169 2169 2170 RTCRestObjectBase *RTCRestStringEnumBase::cloneWorker(RTCRestStringEnumBase *a_pDst) const 2170 RTCRestObjectBase *RTCRestStringEnumBase::cloneWorker(RTCRestStringEnumBase *a_pDst) const RT_NOEXCEPT 2171 2171 { 2172 2172 if (a_pDst) … … 2186 2186 *********************************************************************************************************************************/ 2187 2187 2188 RTCRestDataObject::RTCRestDataObject() 2188 RTCRestDataObject::RTCRestDataObject() RT_NOEXCEPT 2189 2189 : RTCRestObjectBase() 2190 2190 , m_fIsSet(0) … … 2198 2198 2199 2199 2200 RTCRestDataObject::RTCRestDataObject(RTCRestDataObject const &a_rThat) 2200 RTCRestDataObject::RTCRestDataObject(RTCRestDataObject const &a_rThat) RT_NOEXCEPT 2201 2201 : RTCRestObjectBase(a_rThat) 2202 2202 , m_fIsSet(a_rThat.m_fIsSet) … … 2205 2205 2206 2206 2207 RTCRestDataObject &RTCRestDataObject::operator=(RTCRestDataObject const &a_rThat) 2207 RTCRestDataObject &RTCRestDataObject::operator=(RTCRestDataObject const &a_rThat) RT_NOEXCEPT 2208 2208 { 2209 2209 m_fNullIndicator = a_rThat.m_fNullIndicator; … … 2213 2213 2214 2214 2215 int RTCRestDataObject::assignCopy(RTCRestDataObject const &a_rThat) 2215 int RTCRestDataObject::assignCopy(RTCRestDataObject const &a_rThat) RT_NOEXCEPT 2216 2216 { 2217 2217 m_fNullIndicator = a_rThat.m_fNullIndicator; … … 2221 2221 2222 2222 2223 int RTCRestDataObject::resetToDefault() 2223 int RTCRestDataObject::resetToDefault() RT_NOEXCEPT 2224 2224 { 2225 2225 m_fNullIndicator = false; … … 2229 2229 2230 2230 2231 RTCRestOutputBase &RTCRestDataObject::serializeMembersAsJson(RTCRestOutputBase &a_rDst) const 2231 RTCRestOutputBase &RTCRestDataObject::serializeMembersAsJson(RTCRestOutputBase &a_rDst) const RT_NOEXCEPT 2232 2232 { 2233 2233 RT_NOREF(a_rDst); … … 2236 2236 2237 2237 2238 RTCRestOutputBase &RTCRestDataObject::serializeAsJson(RTCRestOutputBase &a_rDst) const 2238 RTCRestOutputBase &RTCRestDataObject::serializeAsJson(RTCRestOutputBase &a_rDst) const RT_NOEXCEPT 2239 2239 { 2240 2240 if (!m_fNullIndicator) … … 2250 2250 2251 2251 2252 int RTCRestDataObject::deserializeMemberFromJson(RTCRestJsonCursor const &a_rCursor, size_t a_cchName) 2252 int RTCRestDataObject::deserializeMemberFromJson(RTCRestJsonCursor const &a_rCursor, size_t a_cchName) RT_NOEXCEPT 2253 2253 { 2254 2254 RT_NOREF(a_rCursor, a_cchName); … … 2257 2257 2258 2258 2259 int RTCRestDataObject::deserializeFromJson(RTCRestJsonCursor const &a_rCursor) 2259 int RTCRestDataObject::deserializeFromJson(RTCRestJsonCursor const &a_rCursor) RT_NOEXCEPT 2260 2260 { 2261 2261 /* … … 2332 2332 2333 2333 2334 RTCRestObjectBase::kTypeClass RTCRestDataObject::typeClass(void) const 2334 RTCRestObjectBase::kTypeClass RTCRestDataObject::typeClass(void) const RT_NOEXCEPT 2335 2335 { 2336 2336 return kTypeClass_DataObject; … … 2343 2343 *********************************************************************************************************************************/ 2344 2344 2345 RTCRestPolyDataObject::RTCRestPolyDataObject() 2345 RTCRestPolyDataObject::RTCRestPolyDataObject() RT_NOEXCEPT 2346 2346 : RTCRestDataObject() 2347 2347 { … … 2349 2349 2350 2350 2351 RTCRestPolyDataObject::RTCRestPolyDataObject(RTCRestPolyDataObject const &a_rThat) 2351 RTCRestPolyDataObject::RTCRestPolyDataObject(RTCRestPolyDataObject const &a_rThat) RT_NOEXCEPT 2352 2352 : RTCRestDataObject(a_rThat) 2353 2353 { … … 2360 2360 2361 2361 2362 int RTCRestPolyDataObject::resetToDefault() 2362 int RTCRestPolyDataObject::resetToDefault() RT_NOEXCEPT 2363 2363 { 2364 2364 return RTCRestDataObject::resetToDefault(); … … 2366 2366 2367 2367 2368 bool RTCRestPolyDataObject::isChild() const 2368 bool RTCRestPolyDataObject::isChild() const RT_NOEXCEPT 2369 2369 { 2370 2370 return false; … … 2372 2372 2373 2373 2374 RTCRestPolyDataObject &RTCRestPolyDataObject::operator=(RTCRestPolyDataObject const &a_rThat) 2374 RTCRestPolyDataObject &RTCRestPolyDataObject::operator=(RTCRestPolyDataObject const &a_rThat) RT_NOEXCEPT 2375 2375 { 2376 2376 RTCRestDataObject::operator=(a_rThat); -
trunk/src/VBox/Runtime/testcase/tstRTCRest-1.cpp
r74414 r74425 1997 1997 } 1998 1998 1999 int resetToDefault() RT_ OVERRIDE1999 int resetToDefault() RT_NOEXCEPT RT_OVERRIDE 2000 2000 { 2001 2001 m_strValue = ""; … … 2004 2004 } 2005 2005 2006 int xmitPrepare(RTCString *a_pStrPath, RTCString *a_pStrQuery, RTHTTP a_hHttp, RTCString *a_pStrBody) const RT_ OVERRIDE2006 int xmitPrepare(RTCString *a_pStrPath, RTCString *a_pStrQuery, RTHTTP a_hHttp, RTCString *a_pStrBody) const RT_NOEXCEPT RT_OVERRIDE 2007 2007 { 2008 2008 RT_NOREF(a_pStrPath, a_pStrQuery, a_hHttp, a_pStrBody); … … 2010 2010 } 2011 2011 2012 void xmitComplete(int a_rcStatus, RTHTTP a_hHttp) const RT_ OVERRIDE2012 void xmitComplete(int a_rcStatus, RTHTTP a_hHttp) const RT_NOEXCEPT RT_OVERRIDE 2013 2013 { 2014 2014 RT_NOREF(a_rcStatus, a_hHttp); … … 2149 2149 protected: 2150 2150 virtual int consumeHeader(uint32_t a_uMatchWord, const char *a_pchField, size_t a_cchField, 2151 const char *a_pchValue, size_t a_cchValue) RT_ OVERRIDE2151 const char *a_pchValue, size_t a_cchValue) RT_NOEXCEPT RT_OVERRIDE 2152 2152 { 2153 2153 int rc = RTCRestClientResponseBase::consumeHeader(a_uMatchWord, a_pchField, a_cchField, a_pchValue, a_cchValue);
Note:
See TracChangeset
for help on using the changeset viewer.