Changeset 73964 in vbox
- Timestamp:
- Aug 29, 2018 4:41:26 PM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 124695
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/cpp/restbase.h
r73958 r73964 48 48 * Abstract base class for serializing data objects. 49 49 */ 50 class RT CRestOutputBase50 class RT_DECL_CLASS RTCRestOutputBase 51 51 { 52 52 public: … … 116 116 * Serialize to a string object. 117 117 */ 118 class RT CRestOutputToString : public RTCRestOutputBase118 class RT_DECL_CLASS RTCRestOutputToString : public RTCRestOutputBase 119 119 { 120 120 public: … … 167 167 * input and also helps constructing full object name for logging and error reporting. 168 168 */ 169 struct RT CRestJsonCursor169 struct RT_DECL_CLASS RTCRestJsonCursor 170 170 { 171 171 /** Handle to the value being parsed. */ … … 204 204 * The primary JSON cursor class. 205 205 */ 206 class RT CRestJsonPrimaryCursor206 class RT_DECL_CLASS RTCRestJsonPrimaryCursor 207 207 { 208 208 public: … … 257 257 * Abstract base class for REST data objects. 258 258 */ 259 class RT CRestObjectBase259 class RT_DECL_CLASS RTCRestObjectBase 260 260 { 261 261 public: … … 357 357 * Class wrapping 'bool'. 358 358 */ 359 class RT CRestBool : public RTCRestObjectBase359 class RT_DECL_CLASS RTCRestBool : public RTCRestObjectBase 360 360 { 361 361 public: … … 392 392 * Class wrapping 'int64_t'. 393 393 */ 394 class RT CRestInt64 : public RTCRestObjectBase394 class RT_DECL_CLASS RTCRestInt64 : public RTCRestObjectBase 395 395 { 396 396 public: … … 427 427 * Class wrapping 'int32_t'. 428 428 */ 429 class RT CRestInt32 : public RTCRestObjectBase429 class RT_DECL_CLASS RTCRestInt32 : public RTCRestObjectBase 430 430 { 431 431 public: … … 462 462 * Class wrapping 'int16_t'. 463 463 */ 464 class RT CRestInt16 : public RTCRestObjectBase464 class RT_DECL_CLASS RTCRestInt16 : public RTCRestObjectBase 465 465 { 466 466 public: … … 497 497 * Class wrapping 'double'. 498 498 */ 499 class RT CRestDouble : public RTCRestObjectBase499 class RT_DECL_CLASS RTCRestDouble : public RTCRestObjectBase 500 500 { 501 501 public: … … 532 532 * Class wrapping 'RTCString'. 533 533 */ 534 class RT CRestString : public RTCString, public RTCRestObjectBase534 class RT_DECL_CLASS RTCRestString : public RTCString, public RTCRestObjectBase 535 535 { 536 536 public: … … 563 563 * Abstract base class for the RTCRestArray template. 564 564 */ 565 class RT CRestArrayBase : public RTCRestObjectBase565 class RT_DECL_CLASS RTCRestArrayBase : public RTCRestObjectBase 566 566 { 567 567 public: 568 568 /** Default destructor. */ 569 569 RTCRestArrayBase(); 570 /** Copy constructor. */571 RTCRestArrayBase(RTCRestArrayBase const &a_rThat);572 570 /** Destructor. */ 573 571 virtual ~RTCRestArrayBase(); 574 /** Copy assignment operator. */575 RTCRestArrayBase &operator=(RTCRestArrayBase const &a_rThat);576 572 577 573 /* Overridden methods: */ … … 680 676 */ 681 677 int insertCopyWorker(size_t a_idx, RTCRestObjectBase const &a_rValue, bool a_fReplace); 678 679 private: 680 /** Copy constructor on this class should never be used. */ 681 RTCRestArrayBase(RTCRestArrayBase const &a_rThat); 682 /** Copy assignment operator on this class should never be used. */ 683 RTCRestArrayBase &operator=(RTCRestArrayBase const &a_rThat); 682 684 }; 683 685 … … 690 692 { 691 693 public: 694 /** Default constructor - empty array. */ 692 695 RTCRestArray() 693 696 : RTCRestArrayBase() 694 697 { 695 698 } 699 700 /** Destructor. */ 696 701 ~RTCRestArray() 697 702 { 703 } 704 705 /** Copy constructor. */ 706 RTCRestArray(RTCRestArray const &a_rThat) 707 : RTCRestArrayBase() 708 { 709 copyArrayWorker(a_rThat, true /*fThrow*/); 710 } 711 712 /** Copy assignment operator. */ 713 RTCRestArray &operator=(RTCRestArray const &a_rThat) 714 { 715 copyArrayWorker(a_rThat, true /*fThrow*/); 716 return *this; 698 717 } 699 718 … … 895 914 * Abstract base class for the RTCRestStringMap template. 896 915 */ 897 class RT CRestStringMapBase : public RTCRestObjectBase916 class RT_DECL_CLASS RTCRestStringMapBase : public RTCRestObjectBase 898 917 { 899 918 public: … … 1216 1235 * could be a specialized map implementation. 1217 1236 */ 1218 class RTCRestObject : public RTCRestObjectBase1237 class /*RT_DECL_CLASS*/ RTCRestObject : public RTCRestObjectBase 1219 1238 { 1220 1239 public: … … 1248 1267 * Base class for REST client requests. 1249 1268 */ 1250 class RT CRestClientRequestBase1269 class RT_DECL_CLASS RTCRestClientRequestBase 1251 1270 { 1252 1271 public: … … 1306 1325 * Base class for REST client responses. 1307 1326 */ 1308 class RT CRestClientResponseBase1327 class RT_DECL_CLASS RTCRestClientResponseBase 1309 1328 { 1310 1329 public: … … 1494 1513 * Base class for REST client responses. 1495 1514 */ 1496 class RT CRestClientApiBase1515 class RT_DECL_CLASS RTCRestClientApiBase 1497 1516 { 1498 1517 public:
Note:
See TracChangeset
for help on using the changeset viewer.