- Timestamp:
- Sep 5, 2018 7:30:01 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/cpp/restbase.h
r74075 r74093 877 877 }; 878 878 879 880 /**881 * Dynamic REST object.882 *883 * @todo figure this one out. it's possible this is only used in maps and884 * could be a specialized map implementation.885 */886 class /*RT_DECL_CLASS*/ RTCRestObject : public RTCRestObjectBase887 {888 public:889 /** Default constructor. */890 RTCRestObject();891 /** Destructor. */892 virtual ~RTCRestObject();893 894 /** Copy constructor. */895 RTCRestObject(RTCRestObject const &a_rThat);896 /** Copy assignment operator. */897 RTCRestObject &operator=(RTCRestObject const &a_rThat);898 /** Safe Safe copy assignment method. */899 int assignCopy(RTCRestObject const &a_rThat);900 901 /* Overridden methods: */902 virtual int setNull(void) RT_OVERRIDE;903 virtual int resetToDefault() RT_OVERRIDE;904 virtual RTCRestOutputBase &serializeAsJson(RTCRestOutputBase &a_rDst) const RT_OVERRIDE;905 virtual int deserializeFromJson(RTCRestJsonCursor const &a_rCursor) RT_OVERRIDE;906 virtual int toString(RTCString *a_pDst, uint32_t a_fFlags = kCollectionFormat_Unspecified) const RT_OVERRIDE;907 virtual int fromString(RTCString const &a_rValue, const char *a_pszName, PRTERRINFO a_pErrInfo = NULL,908 uint32_t a_fFlags = kCollectionFormat_Unspecified) RT_OVERRIDE;909 virtual kTypeClass typeClass(void) const RT_OVERRIDE;910 virtual const char *typeName(void) const RT_OVERRIDE;911 912 /** Factory method. */913 static DECLCALLBACK(RTCRestObjectBase *) createInstance(void);914 915 protected:916 /** @todo figure out the value stuff here later... */917 };918 919 920 879 /** @} */ 921 880 -
trunk/include/iprt/err.h
r74023 r74093 3220 3220 3221 3221 /** Internal error \#1. */ 3222 #define VERR_REST_INTER AL_ERROR_1(-25791)3222 #define VERR_REST_INTERNAL_ERROR_1 (-25791) 3223 3223 /** Internal error \#2. */ 3224 #define VERR_REST_INTER AL_ERROR_2(-25792)3224 #define VERR_REST_INTERNAL_ERROR_2 (-25792) 3225 3225 /** Internal error \#3. */ 3226 #define VERR_REST_INTER AL_ERROR_3(-25793)3226 #define VERR_REST_INTERNAL_ERROR_3 (-25793) 3227 3227 /** Internal error \#4. */ 3228 #define VERR_REST_INTER AL_ERROR_4(-25794)3228 #define VERR_REST_INTERNAL_ERROR_4 (-25794) 3229 3229 /** Internal error \#5. */ 3230 #define VERR_REST_INTER AL_ERROR_5(-25795)3230 #define VERR_REST_INTERNAL_ERROR_5 (-25795) 3231 3231 /** Internal error \#6. */ 3232 #define VERR_REST_INTER AL_ERROR_6(-25796)3232 #define VERR_REST_INTERNAL_ERROR_6 (-25796) 3233 3233 /** Internal error \#7. */ 3234 #define VERR_REST_INTER AL_ERROR_7(-25797)3234 #define VERR_REST_INTERNAL_ERROR_7 (-25797) 3235 3235 /** Internal error \#8. */ 3236 #define VERR_REST_INTER AL_ERROR_8(-25798)3236 #define VERR_REST_INTERNAL_ERROR_8 (-25798) 3237 3237 /** Internal error \#9. */ 3238 #define VERR_REST_INTER AL_ERROR_9(-25799)3238 #define VERR_REST_INTERNAL_ERROR_9 (-25799) 3239 3239 /** @} */ 3240 3240 -
trunk/src/VBox/Runtime/Makefile.kmk
r74052 r74093 1653 1653 generic/http-curl.cpp \ 1654 1654 common/rest/rest-primary-object-types.cpp \ 1655 common/rest/RTCRestAnyObject.cpp \ 1655 1656 common/rest/RTCRestArrayBase.cpp \ 1656 1657 common/rest/RTCRestClientApiBase.cpp \ -
trunk/src/VBox/Runtime/common/rest/RTCRestClientRequestBase.cpp
r74070 r74093 152 152 */ 153 153 AssertReturn(a_papQueryParamObjs[i]->typeClass() == RTCRestObjectBase::kTypeClass_Array, 154 VERR_REST_INTER AL_ERROR_2);154 VERR_REST_INTERNAL_ERROR_2); 155 155 RTCRestArrayBase const *pArray = (RTCRestArrayBase const *)a_papQueryParamObjs[i]; 156 156 for (size_t j = 0; j < pArray->size(); j++) … … 204 204 */ 205 205 AssertReturn(a_papHeaderParamObjs[i]->typeClass() == RTCRestObjectBase::kTypeClass_StringMap, 206 VERR_REST_INTER AL_ERROR_1);206 VERR_REST_INTERNAL_ERROR_1); 207 207 RTCRestStringMapBase const *pMap = (RTCRestStringMapBase const *)a_papHeaderParamObjs[i]; 208 208 const size_t cchName = strlen(a_paHeaderParams[i].pszName); -
trunk/src/VBox/Runtime/common/rest/rest-primary-object-types.cpp
r74040 r74093 1256 1256 size_t cEntries = 0; 1257 1257 ENUMMAPENTRY const *paEntries = getMappingTable(&cEntries); 1258 AssertReturn((unsigned)(m_iEnumValue - 1) < cEntries, VERR_REST_INTER AL_ERROR_3);1258 AssertReturn((unsigned)(m_iEnumValue - 1) < cEntries, VERR_REST_INTERNAL_ERROR_3); 1259 1259 Assert(paEntries[m_iEnumValue - 1].iValue == m_iEnumValue); 1260 1260
Note:
See TracChangeset
for help on using the changeset viewer.