VirtualBox

Ignore:
Timestamp:
Sep 23, 2018 3:41:48 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
125260
Message:

IPRT/rest: Missed RT_NOEXCEPT in two place. Went wild adding RT_NOEXCEPT everywhere possible. bugref:9167

Location:
trunk/src/VBox/Runtime/common/rest
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/rest/RTCRestAnyObject.cpp

    r74414 r74425  
    4141 * Default constructor.
    4242 */
    43 RTCRestAnyObject::RTCRestAnyObject()
     43RTCRestAnyObject::RTCRestAnyObject() RT_NOEXCEPT
    4444    : RTCRestObjectBase()
    4545    , m_pData(NULL)
     
    9090 * Safe copy assignment method.
    9191 */
    92 int RTCRestAnyObject::assignCopy(RTCRestAnyObject const &a_rThat)
     92int RTCRestAnyObject::assignCopy(RTCRestAnyObject const &a_rThat) RT_NOEXCEPT
    9393{
    9494    setNull();
     
    126126 * Safe copy assignment method, boolean variant.
    127127 */
    128 int RTCRestAnyObject::assignCopy(RTCRestBool const &a_rThat)
     128int RTCRestAnyObject::assignCopy(RTCRestBool const &a_rThat) RT_NOEXCEPT
    129129{
    130130    setNull();
     
    143143 * Safe copy assignment method, int64_t variant.
    144144 */
    145 int RTCRestAnyObject::assignCopy(RTCRestInt64 const &a_rThat)
     145int RTCRestAnyObject::assignCopy(RTCRestInt64 const &a_rThat) RT_NOEXCEPT
    146146{
    147147    setNull();
     
    160160 * Safe copy assignment method, int32_t variant.
    161161 */
    162 int RTCRestAnyObject::assignCopy(RTCRestInt32 const &a_rThat)
     162int RTCRestAnyObject::assignCopy(RTCRestInt32 const &a_rThat) RT_NOEXCEPT
    163163{
    164164    setNull();
     
    177177 * Safe copy assignment method, int16_t variant.
    178178 */
    179 int RTCRestAnyObject::assignCopy(RTCRestInt16 const &a_rThat)
     179int RTCRestAnyObject::assignCopy(RTCRestInt16 const &a_rThat) RT_NOEXCEPT
    180180{
    181181    setNull();
     
    194194 * Safe copy assignment method, double variant.
    195195 */
    196 int RTCRestAnyObject::assignCopy(RTCRestDouble const &a_rThat)
     196int RTCRestAnyObject::assignCopy(RTCRestDouble const &a_rThat) RT_NOEXCEPT
    197197{
    198198    setNull();
     
    211211 * Safe copy assignment method, string variant.
    212212 */
    213 int RTCRestAnyObject::assignCopy(RTCRestString const &a_rThat)
     213int RTCRestAnyObject::assignCopy(RTCRestString const &a_rThat) RT_NOEXCEPT
    214214{
    215215    setNull();
     
    228228 * Safe copy assignment method, array variant.
    229229 */
    230 int RTCRestAnyObject::assignCopy(RTCRestArray<RTCRestAnyObject> const &a_rThat)
     230int RTCRestAnyObject::assignCopy(RTCRestArray<RTCRestAnyObject> const &a_rThat) RT_NOEXCEPT
    231231{
    232232    setNull();
     
    245245 * Safe copy assignment method, string map variant.
    246246 */
    247 int RTCRestAnyObject::assignCopy(RTCRestStringMap<RTCRestAnyObject> const &a_rThat)
     247int RTCRestAnyObject::assignCopy(RTCRestStringMap<RTCRestAnyObject> const &a_rThat) RT_NOEXCEPT
    248248{
    249249    setNull();
     
    262262 * Safe value assignment method, boolean variant.
    263263 */
    264 int RTCRestAnyObject::assignValue(bool a_fValue)
     264int RTCRestAnyObject::assignValue(bool a_fValue) RT_NOEXCEPT
    265265{
    266266    setNull();
     
    280280 * Safe value assignment method, int64_t variant.
    281281 */
    282 int RTCRestAnyObject::assignValue(int64_t a_iValue)
     282int RTCRestAnyObject::assignValue(int64_t a_iValue) RT_NOEXCEPT
    283283{
    284284    setNull();
     
    298298 * Safe value assignment method, int32_t variant.
    299299 */
    300 int RTCRestAnyObject::assignValue(int32_t a_iValue)
     300int RTCRestAnyObject::assignValue(int32_t a_iValue) RT_NOEXCEPT
    301301{
    302302    setNull();
     
    316316 * Safe value assignment method, int16_t variant.
    317317 */
    318 int RTCRestAnyObject::assignValue(int16_t a_iValue)
     318int RTCRestAnyObject::assignValue(int16_t a_iValue) RT_NOEXCEPT
    319319{
    320320    setNull();
     
    334334 * Safe value assignment method, double variant.
    335335 */
    336 int RTCRestAnyObject::assignValue(double a_iValue)
     336int RTCRestAnyObject::assignValue(double a_iValue) RT_NOEXCEPT
    337337{
    338338    setNull();
     
    352352 * Safe value assignment method, string variant.
    353353 */
    354 int RTCRestAnyObject::assignValue(RTCString const &a_rValue)
     354int RTCRestAnyObject::assignValue(RTCString const &a_rValue) RT_NOEXCEPT
    355355{
    356356    setNull();
     
    369369 * Safe value assignment method, C-string variant.
    370370 */
    371 int RTCRestAnyObject::assignValue(const char *a_pszValue)
     371int RTCRestAnyObject::assignValue(const char *a_pszValue) RT_NOEXCEPT
    372372{
    373373    setNull();
     
    383383
    384384
    385 RTCRestObjectBase *RTCRestAnyObject::baseClone() const
     385RTCRestObjectBase *RTCRestAnyObject::baseClone() const RT_NOEXCEPT
    386386{
    387387    RTCRestAnyObject *pClone = new (std::nothrow) RTCRestAnyObject();
     
    397397
    398398
    399 int RTCRestAnyObject::setNull(void)
     399int RTCRestAnyObject::setNull(void) RT_NOEXCEPT
    400400{
    401401    if (m_pData)
     
    408408
    409409
    410 int RTCRestAnyObject::resetToDefault()
     410int RTCRestAnyObject::resetToDefault() RT_NOEXCEPT
    411411{
    412412    if (m_pData)
     
    416416
    417417
    418 RTCRestOutputBase &RTCRestAnyObject::serializeAsJson(RTCRestOutputBase &a_rDst) const
     418RTCRestOutputBase &RTCRestAnyObject::serializeAsJson(RTCRestOutputBase &a_rDst) const RT_NOEXCEPT
    419419{
    420420    if (m_pData)
     
    425425
    426426
    427 int RTCRestAnyObject::deserializeFromJson(RTCRestJsonCursor const &a_rCursor)
     427int RTCRestAnyObject::deserializeFromJson(RTCRestJsonCursor const &a_rCursor) RT_NOEXCEPT
    428428{
    429429    setNull();
     
    519519
    520520
    521 int RTCRestAnyObject::toString(RTCString *a_pDst, uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) const
     521int RTCRestAnyObject::toString(RTCString *a_pDst, uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) const RT_NOEXCEPT
    522522{
    523523    if (m_pData)
     
    530530
    531531int 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
    533533{
    534534    return RTCRestObjectBase::fromString(a_rValue, a_pszName, a_pErrInfo, a_fFlags);
     
    536536
    537537
    538 RTCRestObjectBase::kTypeClass RTCRestAnyObject::typeClass(void) const
     538RTCRestObjectBase::kTypeClass RTCRestAnyObject::typeClass(void) const RT_NOEXCEPT
    539539{
    540540    return kTypeClass_AnyObject;
     
    542542
    543543
    544 const char *RTCRestAnyObject::typeName(void) const
     544const char *RTCRestAnyObject::typeName(void) const RT_NOEXCEPT
    545545{
    546546    if (m_pData)
     
    576576 * Factory method.
    577577 */
    578 /*static*/ DECLCALLBACK(RTCRestObjectBase *) RTCRestAnyObject::createInstance(void)
     578/*static*/ DECLCALLBACK(RTCRestObjectBase *) RTCRestAnyObject::createInstance(void) RT_NOEXCEPT
    579579{
    580580    return new (std::nothrow) RTCRestAnyObject();
  • trunk/src/VBox/Runtime/common/rest/RTCRestArrayBase.cpp

    r74414 r74425  
    4747 * Default destructor.
    4848 */
    49 RTCRestArrayBase::RTCRestArrayBase()
     49RTCRestArrayBase::RTCRestArrayBase() RT_NOEXCEPT
    5050    : RTCRestObjectBase()
    5151    , m_papElements(NULL)
     
    9191*********************************************************************************************************************************/
    9292
    93 RTCRestObjectBase *RTCRestArrayBase::baseClone() const
     93RTCRestObjectBase *RTCRestArrayBase::baseClone() const RT_NOEXCEPT
    9494{
    9595    RTCRestArrayBase *pClone = createClone();
    9696    if (pClone)
    9797    {
    98         int rc = pClone->copyArrayWorker(*this, false /*fThrow*/);
     98        int rc = pClone->copyArrayWorkerNoThrow(*this);
    9999        if (RT_SUCCESS(rc))
    100100            return pClone;
     
    105105
    106106
    107 int RTCRestArrayBase::resetToDefault()
     107int RTCRestArrayBase::resetToDefault() RT_NOEXCEPT
    108108{
    109109    /* The default state of an array is empty. At least for now. */
     
    114114
    115115
    116 RTCRestOutputBase &RTCRestArrayBase::serializeAsJson(RTCRestOutputBase &a_rDst) const
     116RTCRestOutputBase &RTCRestArrayBase::serializeAsJson(RTCRestOutputBase &a_rDst) const RT_NOEXCEPT
    117117{
    118118    if (!m_fNullIndicator)
     
    132132
    133133
    134 int RTCRestArrayBase::deserializeFromJson(RTCRestJsonCursor const &a_rCursor)
     134int RTCRestArrayBase::deserializeFromJson(RTCRestJsonCursor const &a_rCursor) RT_NOEXCEPT
    135135{
    136136    /*
     
    216216
    217217
    218 int RTCRestArrayBase::toString(RTCString *a_pDst, uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) const
     218int RTCRestArrayBase::toString(RTCString *a_pDst, uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) const RT_NOEXCEPT
    219219{
    220220    int rc;
     
    250250
    251251int 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
    253253{
    254254    /*
     
    312312
    313313
    314 RTCRestObjectBase::kTypeClass RTCRestArrayBase::typeClass(void) const
     314RTCRestObjectBase::kTypeClass RTCRestArrayBase::typeClass(void) const RT_NOEXCEPT
    315315{
    316316    return kTypeClass_Array;
     
    318318
    319319
    320 const char *RTCRestArrayBase::typeName(void) const
     320const char *RTCRestArrayBase::typeName(void) const RT_NOEXCEPT
    321321{
    322322    return "RTCRestArray<ElementType>";
     
    329329*********************************************************************************************************************************/
    330330
    331 void RTCRestArrayBase::clear()
     331void RTCRestArrayBase::clear() RT_NOEXCEPT
    332332{
    333333    size_t i = m_cElements;
     
    342342
    343343
    344 bool RTCRestArrayBase::removeAt(size_t a_idx)
     344bool RTCRestArrayBase::removeAt(size_t a_idx) RT_NOEXCEPT
    345345{
    346346    if (a_idx == ~(size_t)0)
     
    359359
    360360
    361 int RTCRestArrayBase::ensureCapacity(size_t a_cEnsureCapacity)
     361int RTCRestArrayBase::ensureCapacity(size_t a_cEnsureCapacity) RT_NOEXCEPT
    362362{
    363363    if (m_cCapacity < a_cEnsureCapacity)
     
    384384
    385385
    386 int RTCRestArrayBase::copyArrayWorker(RTCRestArrayBase const &a_rThat, bool a_fThrow)
     386int RTCRestArrayBase::copyArrayWorkerNoThrow(RTCRestArrayBase const &a_rThat) RT_NOEXCEPT
    387387{
    388388    int rc;
     
    405405                if (RT_SUCCESS(rc))
    406406                { /* likely */ }
    407                 else if (a_fThrow)
    408                     throw std::bad_alloc();
    409407                else
    410408                    return rc;
     
    415413}
    416414
    417 
    418 int RTCRestArrayBase::insertWorker(size_t a_idx, RTCRestObjectBase *a_pValue, bool a_fReplace)
     415void 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
     424int RTCRestArrayBase::insertWorker(size_t a_idx, RTCRestObjectBase *a_pValue, bool a_fReplace) RT_NOEXCEPT
    419425{
    420426    AssertPtrReturn(a_pValue, VERR_INVALID_POINTER);
     
    462468
    463469
    464 int RTCRestArrayBase::insertCopyWorker(size_t a_idx, RTCRestObjectBase const &a_rValue, bool a_fReplace)
     470int RTCRestArrayBase::insertCopyWorker(size_t a_idx, RTCRestObjectBase const &a_rValue, bool a_fReplace) RT_NOEXCEPT
    465471{
    466472    int rc;
  • trunk/src/VBox/Runtime/common/rest/RTCRestClientApiBase.cpp

    r74351 r74425  
    4343 * Default constructor.
    4444 */
    45 RTCRestClientApiBase::RTCRestClientApiBase()
     45RTCRestClientApiBase::RTCRestClientApiBase() RT_NOEXCEPT
    4646    : m_hHttp(NIL_RTHTTP)
    4747{
     
    6363
    6464
    65 const char *RTCRestClientApiBase::getServerUrl(void) const
     65const char *RTCRestClientApiBase::getServerUrl(void) const RT_NOEXCEPT
    6666{
    6767    if (m_strServerUrl.isEmpty())
     
    7171
    7272
    73 int RTCRestClientApiBase::setServerUrl(const char *a_pszUrl)
     73int RTCRestClientApiBase::setServerUrl(const char *a_pszUrl) RT_NOEXCEPT
    7474{
    7575#ifdef RT_STRICT
     
    8787
    8888int 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
    9090{
    9191    if (   a_cchDst == a_cchSrc
     
    102102
    103103
    104 int RTCRestClientApiBase::setServerScheme(const char *a_pszScheme)
     104int RTCRestClientApiBase::setServerScheme(const char *a_pszScheme) RT_NOEXCEPT
    105105{
    106106    /*
     
    127127
    128128
    129 int RTCRestClientApiBase::setServerAuthority(const char *a_pszAuthority)
     129int RTCRestClientApiBase::setServerAuthority(const char *a_pszAuthority) RT_NOEXCEPT
    130130{
    131131    /*
     
    151151
    152152
    153 int RTCRestClientApiBase::setServerBasePath(const char *a_pszBasePath)
     153int RTCRestClientApiBase::setServerBasePath(const char *a_pszBasePath) RT_NOEXCEPT
    154154{
    155155    /*
     
    173173
    174174
    175 int RTCRestClientApiBase::reinitHttpInstance()
     175int RTCRestClientApiBase::reinitHttpInstance() RT_NOEXCEPT
    176176{
    177177    if (m_hHttp != NIL_RTHTTP)
     
    193193
    194194int 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
    196196{
    197197    RT_NOREF(a_hHttp, a_rStrFullUrl, a_enmHttpMethod, a_rStrXmitBody, a_fFlags);
     
    201201
    202202int 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
    204204{
    205205    LogFlow(("doCall: %s %s\n", a_pszMethod, RTHttpMethodName(a_enmHttpMethod)));
  • trunk/src/VBox/Runtime/common/rest/RTCRestClientApiBaseOci.cpp

    r74149 r74425  
    5050 * @param   pvContent
    5151 */
    52 static int ociSignRequestEnsureDateOrXDate(RTHTTP hHttp)
     52static int ociSignRequestEnsureDateOrXDate(RTHTTP hHttp) RT_NOEXCEPT
    5353{
    5454    if (RTHttpGetHeader(hHttp, RT_STR_TUPLE("x-date")))
     
    7474 * @param   pvContent
    7575 */
    76 static int ociSignRequestEnsureXContentSha256(RTHTTP hHttp, void const *pvContent, size_t cbContent)
     76static int ociSignRequestEnsureXContentSha256(RTHTTP hHttp, void const *pvContent, size_t cbContent) RT_NOEXCEPT
    7777{
    7878    if (RTHttpGetHeader(hHttp, RT_STR_TUPLE("x-content-sha256")))
     
    103103 * @param   cbContent   The content length.
    104104 */
    105 static int ociSignRequestEnsureContentLength(RTHTTP hHttp, uint64_t cbContent)
     105static int ociSignRequestEnsureContentLength(RTHTTP hHttp, uint64_t cbContent) RT_NOEXCEPT
    106106{
    107107    if (RTHttpGetHeader(hHttp, RT_STR_TUPLE("Content-Length")))
     
    121121 * @param   pszUrl      The URL.
    122122 */
    123 static int ociSignRequestEnsureHost(RTHTTP hHttp, const char *pszUrl)
     123static int ociSignRequestEnsureHost(RTHTTP hHttp, const char *pszUrl) RT_NOEXCEPT
    124124{
    125125    if (RTHttpGetHeader(hHttp, RT_STR_TUPLE("host")))
     
    136136int RTCRestClientApiBase::ociSignRequest(RTHTTP a_hHttp, RTCString const &a_rStrFullUrl, RTHTTPMETHOD a_enmHttpMethod,
    137137                                         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
    139139{
    140140    /*
  • trunk/src/VBox/Runtime/common/rest/RTCRestClientRequestBase.cpp

    r74395 r74425  
    4141 * Default constructor.
    4242 */
    43 RTCRestClientRequestBase::RTCRestClientRequestBase()
     43RTCRestClientRequestBase::RTCRestClientRequestBase() RT_NOEXCEPT
    4444    : m_fIsSet(0)
    4545    , m_fErrorSet(0)
     
    5151 * Copy constructor.
    5252 */
    53 RTCRestClientRequestBase::RTCRestClientRequestBase(RTCRestClientRequestBase const &a_rThat)
     53RTCRestClientRequestBase::RTCRestClientRequestBase(RTCRestClientRequestBase const &a_rThat) RT_NOEXCEPT
    5454    : m_fIsSet(a_rThat.m_fIsSet)
    5555    , m_fErrorSet(a_rThat.m_fErrorSet)
     
    7070 * Copy assignment operator.
    7171 */
    72 RTCRestClientRequestBase &RTCRestClientRequestBase::operator=(RTCRestClientRequestBase const &a_rThat)
     72RTCRestClientRequestBase &RTCRestClientRequestBase::operator=(RTCRestClientRequestBase const &a_rThat) RT_NOEXCEPT
    7373{
    7474    m_fIsSet    = a_rThat.m_fIsSet;
     
    8080int RTCRestClientRequestBase::doPathParameters(RTCString *a_pStrPath, const char *a_pszPathTemplate, size_t a_cchPathTemplate,
    8181                                               PATHPARAMDESC const *a_paPathParams, PATHPARAMSTATE *a_paPathParamStates,
    82                                                size_t a_cPathParams) const
     82                                               size_t a_cPathParams) const RT_NOEXCEPT
    8383{
    8484    int rc = a_pStrPath->assignNoThrow(a_pszPathTemplate, a_cchPathTemplate);
     
    127127
    128128int 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
    130130{
    131131    RTCString strTmpVal;
     
    181181
    182182int 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
    184184{
    185185    RTCString strTmpVal;
  • trunk/src/VBox/Runtime/common/rest/RTCRestClientResponseBase.cpp

    r74396 r74425  
    4040 * Default constructor.
    4141 */
    42 RTCRestClientResponseBase::RTCRestClientResponseBase()
     42RTCRestClientResponseBase::RTCRestClientResponseBase() RT_NOEXCEPT
    4343    : m_rcStatus(VERR_WRONG_ORDER)
    4444    , m_rcHttp(VERR_NOT_AVAILABLE)
     
    8888
    8989
    90 void RTCRestClientResponseBase::reset()
     90void RTCRestClientResponseBase::reset() RT_NOEXCEPT
    9191{
    9292    /* Return to default constructor state. */
     
    9999
    100100
    101 int RTCRestClientResponseBase::receivePrepare(RTHTTP a_hHttp)
     101int RTCRestClientResponseBase::receivePrepare(RTHTTP a_hHttp) RT_NOEXCEPT
    102102{
    103103    int rc = RTHttpSetHeaderCallback(a_hHttp, receiveHttpHeaderCallback, this);
     
    108108
    109109
    110 void RTCRestClientResponseBase::receiveComplete(int a_rcStatus, RTHTTP a_hHttp)
     110void RTCRestClientResponseBase::receiveComplete(int a_rcStatus, RTHTTP a_hHttp) RT_NOEXCEPT
    111111{
    112112    RT_NOREF_PV(a_hHttp);
     
    121121
    122122int 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
    124124{
    125125    if (   a_uMatchWord == RTHTTP_MAKE_HDR_MATCH_WORD(sizeof("Content-Type") - 1, 'c', 'o', 'n')
     
    138138/*static*/ DECLCALLBACK(int)
    139139RTCRestClientResponseBase::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
    141141{
    142142    RTCRestClientResponseBase *pThis = (RTCRestClientResponseBase *)pvUser;
     
    146146
    147147
    148 void RTCRestClientResponseBase::consumeBody(const char *a_pchData, size_t a_cbData)
     148void RTCRestClientResponseBase::consumeBody(const char *a_pchData, size_t a_cbData) RT_NOEXCEPT
    149149{
    150150    RT_NOREF(a_pchData, a_cbData);
     
    152152
    153153
    154 void RTCRestClientResponseBase::receiveFinal()
    155 {
    156 }
    157 
    158 
    159 PRTERRINFO RTCRestClientResponseBase::getErrInfoInternal(void)
     154void RTCRestClientResponseBase::receiveFinal() RT_NOEXCEPT
     155{
     156}
     157
     158
     159PRTERRINFO RTCRestClientResponseBase::getErrInfoInternal(void) RT_NOEXCEPT
    160160{
    161161    if (m_pErrInfo)
     
    169169
    170170
    171 void RTCRestClientResponseBase::deleteErrInfo(void)
     171void RTCRestClientResponseBase::deleteErrInfo(void) RT_NOEXCEPT
    172172{
    173173    if (m_pErrInfo)
     
    179179
    180180
    181 void RTCRestClientResponseBase::copyErrInfo(PCRTERRINFO pErrInfo)
     181void RTCRestClientResponseBase::copyErrInfo(PCRTERRINFO pErrInfo) RT_NOEXCEPT
    182182{
    183183    deleteErrInfo();
     
    192192
    193193
    194 int RTCRestClientResponseBase::addError(int rc, const char *pszFormat, ...)
     194int RTCRestClientResponseBase::addError(int rc, const char *pszFormat, ...) RT_NOEXCEPT
    195195{
    196196    PRTERRINFO pErrInfo = getErrInfoInternal();
     
    214214
    215215RTCRestClientResponseBase::PrimaryJsonCursorForBody::PrimaryJsonCursorForBody(RTJSONVAL hValue, const char *pszName,
    216                                                                               RTCRestClientResponseBase *a_pThat)
     216                                                                              RTCRestClientResponseBase *a_pThat) RT_NOEXCEPT
    217217    : RTCRestJsonPrimaryCursor(hValue, pszName, a_pThat->getErrInfoInternal())
    218218    , m_pThat(a_pThat)
     
    222222
    223223int RTCRestClientResponseBase::PrimaryJsonCursorForBody::addError(RTCRestJsonCursor const &a_rCursor, int a_rc,
    224                                                                   const char *a_pszFormat, ...)
     224                                                                  const char *a_pszFormat, ...) RT_NOEXCEPT
    225225{
    226226    va_list va;
     
    233233
    234234
    235 int RTCRestClientResponseBase::PrimaryJsonCursorForBody::unknownField(RTCRestJsonCursor const &a_rCursor)
     235int RTCRestClientResponseBase::PrimaryJsonCursorForBody::unknownField(RTCRestJsonCursor const &a_rCursor) RT_NOEXCEPT
    236236{
    237237    char szPath[256];
     
    243243
    244244int 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
    246246{
    247247    /*
     
    280280int RTCRestClientResponseBase::deserializeHeaderIntoMap(RTCRestStringMapBase *a_pMap, const char *a_pchField, size_t a_cchField,
    281281                                                        const char *a_pchValue, size_t a_cchValue, uint32_t a_fFlags,
    282                                                         const char *a_pszErrorTag)
     282                                                        const char *a_pszErrorTag) RT_NOEXCEPT
    283283{
    284284    /*
     
    336336
    337337
    338 void RTCRestClientResponseBase::deserializeBody(const char *a_pchData, size_t a_cbData, const char *a_pszBodyName)
     338void RTCRestClientResponseBase::deserializeBody(const char *a_pchData, size_t a_cbData, const char *a_pszBodyName) RT_NOEXCEPT
    339339{
    340340    if (m_strContentType.startsWith("application/json"))
     
    373373
    374374
    375 void RTCRestClientResponseBase::deserializeBodyFromJsonCursor(RTCRestJsonCursor const &a_rCursor)
     375void RTCRestClientResponseBase::deserializeBodyFromJsonCursor(RTCRestJsonCursor const &a_rCursor) RT_NOEXCEPT
    376376{
    377377    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  
    3636
    3737
    38 char *RTCRestJsonPrimaryCursor::getPath(RTCRestJsonCursor const &a_rCursor, char *pszDst, size_t cbDst) const
     38char *RTCRestJsonPrimaryCursor::getPath(RTCRestJsonCursor const &a_rCursor, char *pszDst, size_t cbDst) const RT_NOEXCEPT
    3939{
    4040    AssertReturn(cbDst > 0, NULL);
     
    9090
    9191
    92 int RTCRestJsonPrimaryCursor::addError(RTCRestJsonCursor const &a_rCursor, int a_rc, const char *a_pszFormat, ...)
     92int RTCRestJsonPrimaryCursor::addError(RTCRestJsonCursor const &a_rCursor, int a_rc, const char *a_pszFormat, ...) RT_NOEXCEPT
    9393{
    9494    va_list va;
     
    101101
    102102
    103 int RTCRestJsonPrimaryCursor::unknownField(RTCRestJsonCursor const &a_rCursor)
     103int RTCRestJsonPrimaryCursor::unknownField(RTCRestJsonCursor const &a_rCursor) RT_NOEXCEPT
    104104{
    105105    char szPath[128];
  • trunk/src/VBox/Runtime/common/rest/RTCRestOutputBase.cpp

    r74417 r74425  
    3636
    3737
    38 RTCRestOutputBase::RTCRestOutputBase()
     38RTCRestOutputBase::RTCRestOutputBase() RT_NOEXCEPT
    3939    : m_uState(0)
    4040{
     
    4747
    4848
    49 size_t RTCRestOutputBase::vprintf(const char *pszFormat, va_list va)
     49size_t RTCRestOutputBase::vprintf(const char *pszFormat, va_list va) RT_NOEXCEPT
    5050{
    5151    return RTStrFormatV(printfOutputCallback, this, NULL, NULL, pszFormat, va);
     
    5353
    5454
    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
    5656{
    5757    return ((RTCRestOutputBase *)pvArg)->output(pachChars, cbChars);
     
    5959
    6060
    61 uint32_t RTCRestOutputBase::beginArray()
     61uint32_t RTCRestOutputBase::beginArray() RT_NOEXCEPT
    6262{
    6363    output(RT_STR_TUPLE("["));
     
    6868
    6969
    70 void RTCRestOutputBase::endArray(uint32_t a_uOldState)
     70void RTCRestOutputBase::endArray(uint32_t a_uOldState) RT_NOEXCEPT
    7171{
    7272    m_uState = a_uOldState;
     
    7575
    7676
    77 uint32_t RTCRestOutputBase::beginObject()
     77uint32_t RTCRestOutputBase::beginObject() RT_NOEXCEPT
    7878{
    7979    output(RT_STR_TUPLE("{"));
     
    8484
    8585
    86 void RTCRestOutputBase::endObject(uint32_t a_uOldState)
     86void RTCRestOutputBase::endObject(uint32_t a_uOldState) RT_NOEXCEPT
    8787{
    8888    m_uState = a_uOldState;
     
    9191
    9292
    93 void RTCRestOutputBase::valueSeparator()
     93void RTCRestOutputBase::valueSeparator() RT_NOEXCEPT
    9494{
    9595    if (m_uState & RT_BIT_32(31))
     
    100100
    101101
    102 void RTCRestOutputBase::valueSeparatorAndName(const char *a_pszName, size_t a_cchName)
     102void RTCRestOutputBase::valueSeparatorAndName(const char *a_pszName, size_t a_cchName) RT_NOEXCEPT
    103103{
    104104    RT_NOREF(a_cchName);
     
    113113
    114114
    115 void RTCRestOutputBase::nullValue()
     115void RTCRestOutputBase::nullValue() RT_NOEXCEPT
    116116{
    117117    output(RT_STR_TUPLE("null"));
  • trunk/src/VBox/Runtime/common/rest/RTCRestOutputPrettyBase.cpp

    r74414 r74425  
    3636
    3737
    38 RTCRestOutputPrettyBase::RTCRestOutputPrettyBase()
     38RTCRestOutputPrettyBase::RTCRestOutputPrettyBase() RT_NOEXCEPT
    3939    : RTCRestOutputBase()
    4040{
     
    4747
    4848
    49 uint32_t RTCRestOutputPrettyBase::beginArray()
     49uint32_t RTCRestOutputPrettyBase::beginArray() RT_NOEXCEPT
    5050{
    5151    output(RT_STR_TUPLE("["));
     
    5656
    5757
    58 void RTCRestOutputPrettyBase::endArray(uint32_t a_uOldState)
     58void RTCRestOutputPrettyBase::endArray(uint32_t a_uOldState) RT_NOEXCEPT
    5959{
    6060    m_uState = a_uOldState;
     
    6565
    6666
    67 uint32_t RTCRestOutputPrettyBase::beginObject()
     67uint32_t RTCRestOutputPrettyBase::beginObject() RT_NOEXCEPT
    6868{
    6969    output(RT_STR_TUPLE("{"));
     
    7474
    7575
    76 void RTCRestOutputPrettyBase::endObject(uint32_t a_uOldState)
     76void RTCRestOutputPrettyBase::endObject(uint32_t a_uOldState) RT_NOEXCEPT
    7777{
    7878    m_uState = a_uOldState;
     
    8383
    8484
    85 void RTCRestOutputPrettyBase::valueSeparator()
     85void RTCRestOutputPrettyBase::valueSeparator() RT_NOEXCEPT
    8686{
    8787    if (m_uState & RT_BIT_32(31))
     
    9696
    9797
    98 void RTCRestOutputPrettyBase::valueSeparatorAndName(const char *a_pszName, size_t a_cchName)
     98void RTCRestOutputPrettyBase::valueSeparatorAndName(const char *a_pszName, size_t a_cchName) RT_NOEXCEPT
    9999{
    100100    RT_NOREF(a_cchName);
     
    111111
    112112
    113 void RTCRestOutputPrettyBase::outputIndentation()
     113void RTCRestOutputPrettyBase::outputIndentation() RT_NOEXCEPT
    114114{
    115115    static char const s_szSpaces[] = "                                                                                         ";
  • trunk/src/VBox/Runtime/common/rest/RTCRestOutputPrettyToString.cpp

    r74414 r74425  
    3636
    3737
    38 RTCRestOutputPrettyToString::RTCRestOutputPrettyToString(RTCString *a_pDst, bool a_fAppend /*= false*/)
     38RTCRestOutputPrettyToString::RTCRestOutputPrettyToString(RTCString *a_pDst, bool a_fAppend /*= false*/) RT_NOEXCEPT
    3939    : RTCRestOutputPrettyBase()
    4040    , m_pDst(a_pDst)
     
    5353
    5454
    55 size_t RTCRestOutputPrettyToString::output(const char *a_pchString, size_t a_cchToWrite)
     55size_t RTCRestOutputPrettyToString::output(const char *a_pchString, size_t a_cchToWrite) RT_NOEXCEPT
    5656{
    5757    if (a_cchToWrite)
     
    108108
    109109
    110 RTCString *RTCRestOutputPrettyToString::finalize()
     110RTCString *RTCRestOutputPrettyToString::finalize() RT_NOEXCEPT
    111111{
    112112    RTCString *pRet;
  • trunk/src/VBox/Runtime/common/rest/RTCRestOutputToString.cpp

    r74414 r74425  
    3636
    3737
    38 RTCRestOutputToString::RTCRestOutputToString(RTCString *a_pDst, bool a_fAppend /*= false*/)
     38RTCRestOutputToString::RTCRestOutputToString(RTCString *a_pDst, bool a_fAppend /*= false*/) RT_NOEXCEPT
    3939    : RTCRestOutputBase()
    4040    , m_pDst(a_pDst)
     
    5353
    5454
    55 size_t RTCRestOutputToString::output(const char *a_pchString, size_t a_cchToWrite)
     55size_t RTCRestOutputToString::output(const char *a_pchString, size_t a_cchToWrite) RT_NOEXCEPT
    5656{
    5757    if (a_cchToWrite)
     
    108108
    109109
    110 RTCString *RTCRestOutputToString::finalize()
     110RTCString *RTCRestOutputToString::finalize() RT_NOEXCEPT
    111111{
    112112    RTCString *pRet;
  • trunk/src/VBox/Runtime/common/rest/RTCRestStringMapBase.cpp

    r74414 r74425  
    4040 * Default destructor.
    4141 */
    42 RTCRestStringMapBase::RTCRestStringMapBase()
     42RTCRestStringMapBase::RTCRestStringMapBase() RT_NOEXCEPT
    4343    : RTCRestObjectBase()
    4444    , m_Map(NULL)
     
    7575*********************************************************************************************************************************/
    7676
    77 RTCRestObjectBase *RTCRestStringMapBase::baseClone() const
     77RTCRestObjectBase *RTCRestStringMapBase::baseClone() const RT_NOEXCEPT
    7878{
    7979    RTCRestStringMapBase *pClone = createClone();
    8080    if (pClone)
    8181    {
    82         int rc = pClone->copyMapWorker(*this, false /*fThrow*/);
     82        int rc = pClone->copyMapWorkerNoThrow(*this);
    8383        if (RT_SUCCESS(rc))
    8484            return pClone;
     
    8989
    9090
    91 int RTCRestStringMapBase::resetToDefault()
     91int RTCRestStringMapBase::resetToDefault() RT_NOEXCEPT
    9292{
    9393    /* Default is an empty map. */
     
    9898
    9999
    100 RTCRestOutputBase &RTCRestStringMapBase::serializeAsJson(RTCRestOutputBase &a_rDst) const
     100RTCRestOutputBase &RTCRestStringMapBase::serializeAsJson(RTCRestOutputBase &a_rDst) const RT_NOEXCEPT
    101101{
    102102    if (!m_fNullIndicator)
     
    117117
    118118
    119 int RTCRestStringMapBase::deserializeFromJson(RTCRestJsonCursor const &a_rCursor)
     119int RTCRestStringMapBase::deserializeFromJson(RTCRestJsonCursor const &a_rCursor) RT_NOEXCEPT
    120120{
    121121    /*
     
    209209
    210210
    211 RTCRestObjectBase::kTypeClass RTCRestStringMapBase::typeClass(void) const
     211RTCRestObjectBase::kTypeClass RTCRestStringMapBase::typeClass(void) const RT_NOEXCEPT
    212212{
    213213    return kTypeClass_StringMap;
     
    215215
    216216
    217 const char *RTCRestStringMapBase::typeName(void) const
     217const char *RTCRestStringMapBase::typeName(void) const RT_NOEXCEPT
    218218{
    219219    return "RTCRestStringMap<ValueType>";
     
    228228 * @callback_method_impl{FNRTSTRSPACECALLBACK}
    229229 */
    230 /*static*/ DECLCALLBACK(int) RTCRestStringMapBase::stringSpaceDestructorCallback(PRTSTRSPACECORE pStr, void *pvUser)
     230/*static*/ DECLCALLBACK(int) RTCRestStringMapBase::stringSpaceDestructorCallback(PRTSTRSPACECORE pStr, void *pvUser) RT_NOEXCEPT
    231231{
    232232    MapEntry *pNode = (MapEntry *)pStr;
     
    244244
    245245
    246 void RTCRestStringMapBase::clear()
     246void RTCRestStringMapBase::clear() RT_NOEXCEPT
    247247{
    248248    RTStrSpaceDestroy(&m_Map, stringSpaceDestructorCallback, NULL);
     
    253253
    254254
    255 size_t RTCRestStringMapBase::size() const
     255size_t RTCRestStringMapBase::size() const RT_NOEXCEPT
    256256{
    257257    return m_cEntries;
     
    259259
    260260
    261 bool RTCRestStringMapBase::containsKey(const char *a_pszKey) const
     261bool RTCRestStringMapBase::containsKey(const char *a_pszKey) const RT_NOEXCEPT
    262262{
    263263    return RTStrSpaceGet((PRTSTRSPACE)&m_Map, a_pszKey) != NULL;
     
    265265
    266266
    267 bool RTCRestStringMapBase::containsKey(RTCString const &a_rStrKey) const
     267bool RTCRestStringMapBase::containsKey(RTCString const &a_rStrKey) const RT_NOEXCEPT
    268268{
    269269    return containsKey(a_rStrKey.c_str());
     
    271271
    272272
    273 bool RTCRestStringMapBase::remove(const char *a_pszKey)
     273bool RTCRestStringMapBase::remove(const char *a_pszKey) RT_NOEXCEPT
    274274{
    275275    MapEntry *pRemoved = (MapEntry *)RTStrSpaceRemove(&m_Map, a_pszKey);
     
    285285
    286286
    287 bool RTCRestStringMapBase::remove(RTCString const &a_rStrKey)
     287bool RTCRestStringMapBase::remove(RTCString const &a_rStrKey) RT_NOEXCEPT
    288288{
    289289    return remove(a_rStrKey.c_str());
     
    292292
    293293int 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
    295295{
    296296    RTCRestObjectBase *pValue = createValue();
     
    312312
    313313
    314 int RTCRestStringMapBase::putNewValue(RTCRestObjectBase **a_ppValue, RTCString const &a_rStrKey, bool a_fReplace /*= false*/)
     314int RTCRestStringMapBase::putNewValue(RTCRestObjectBase **a_ppValue, RTCString const &a_rStrKey, bool a_fReplace /*= false*/) RT_NOEXCEPT
    315315{
    316316    return putNewValue(a_ppValue, a_rStrKey.c_str(), a_rStrKey.length(), a_fReplace);
     
    322322*********************************************************************************************************************************/
    323323
    324 int RTCRestStringMapBase::copyMapWorker(RTCRestStringMapBase const &a_rThat, bool a_fThrow)
     324int RTCRestStringMapBase::copyMapWorkerNoThrow(RTCRestStringMapBase const &a_rThat) RT_NOEXCEPT
    325325{
    326326    Assert(this != &a_rThat);
     
    336336            if (RT_SUCCESS(rc))
    337337            { /* likely */ }
    338             else if (a_fThrow)
    339                 throw std::bad_alloc();
    340338            else
    341339                return rc;
     
    347345
    348346
     347void 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
    349356int 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
    351358{
    352359    int rc;
     
    396403
    397404int 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
    399406{
    400407    int rc;
     
    414421
    415422
    416 RTCRestObjectBase *RTCRestStringMapBase::getWorker(const char *a_pszKey)
     423RTCRestObjectBase *RTCRestStringMapBase::getWorker(const char *a_pszKey) RT_NOEXCEPT
    417424{
    418425    MapEntry *pHit = (MapEntry *)RTStrSpaceGet(&m_Map, a_pszKey);
     
    423430
    424431
    425 RTCRestObjectBase const *RTCRestStringMapBase::getWorker(const char *a_pszKey) const
     432RTCRestObjectBase const *RTCRestStringMapBase::getWorker(const char *a_pszKey) const RT_NOEXCEPT
    426433{
    427434    MapEntry const *pHit = (MapEntry const *)RTStrSpaceGet((PRTSTRSPACE)&m_Map, a_pszKey);
  • trunk/src/VBox/Runtime/common/rest/rest-binary.cpp

    r74414 r74425  
    5656 * Default constructor.
    5757 */
    58 RTCRestBinary::RTCRestBinary()
     58RTCRestBinary::RTCRestBinary() RT_NOEXCEPT
    5959    : m_pbData(NULL)
    6060    , m_cbData(0)
     
    7777 * Safe copy assignment method.
    7878 */
    79 int RTCRestBinary::assignCopy(RTCRestBinary const &a_rThat)
     79int RTCRestBinary::assignCopy(RTCRestBinary const &a_rThat) RT_NOEXCEPT
    8080{
    8181    freeData();
     
    9999 * Safe buffer copy method.
    100100 */
    101 int RTCRestBinary::assignCopy(void const *a_pvData, size_t a_cbData)
     101int RTCRestBinary::assignCopy(void const *a_pvData, size_t a_cbData) RT_NOEXCEPT
    102102{
    103103    if (   m_pbData == NULL
     
    126126 * Use the specified data buffer directly.
    127127 */
    128 int RTCRestBinary::assignReadOnly(void const *a_pvData, size_t a_cbData)
     128int RTCRestBinary::assignReadOnly(void const *a_pvData, size_t a_cbData) RT_NOEXCEPT
    129129{
    130130    freeData();
     
    145145 * Use the specified data buffer directly.
    146146 */
    147 int RTCRestBinary::assignWriteable(void *a_pvBuf, size_t a_cbBuf)
     147int RTCRestBinary::assignWriteable(void *a_pvBuf, size_t a_cbBuf) RT_NOEXCEPT
    148148{
    149149    freeData();
     
    164164 * Frees the data held by the object and resets it default state.
    165165 */
    166 void RTCRestBinary::freeData()
     166void RTCRestBinary::freeData() RT_NOEXCEPT
    167167{
    168168    if (m_fFreeable)
     
    178178/* Overridden methods: */
    179179
    180 RTCRestObjectBase *RTCRestBinary::baseClone() const
     180RTCRestObjectBase *RTCRestBinary::baseClone() const RT_NOEXCEPT
    181181{
    182182    RTCRestBinary *pClone = new (std::nothrow) RTCRestBinary();
     
    192192
    193193
    194 int RTCRestBinary::setNull(void)
     194int RTCRestBinary::setNull(void) RT_NOEXCEPT
    195195{
    196196    freeData();
     
    200200
    201201
    202 int RTCRestBinary::resetToDefault(void)
    203 {
    204     freeData();
    205     return VINF_SUCCESS;
    206 }
    207 
    208 
    209 RTCRestOutputBase &RTCRestBinary::serializeAsJson(RTCRestOutputBase &a_rDst) const
     202int RTCRestBinary::resetToDefault(void) RT_NOEXCEPT
     203{
     204    freeData();
     205    return VINF_SUCCESS;
     206}
     207
     208
     209RTCRestOutputBase &RTCRestBinary::serializeAsJson(RTCRestOutputBase &a_rDst) const RT_NOEXCEPT
    210210{
    211211    AssertMsgFailed(("We should never get here!\n"));
     
    215215
    216216
    217 int RTCRestBinary::deserializeFromJson(RTCRestJsonCursor const &a_rCursor)
     217int RTCRestBinary::deserializeFromJson(RTCRestJsonCursor const &a_rCursor) RT_NOEXCEPT
    218218{
    219219    return a_rCursor.m_pPrimary->addError(a_rCursor, VERR_NOT_SUPPORTED, "RTCRestBinary does not support deserialization!");
     
    221221
    222222
    223 int RTCRestBinary::toString(RTCString *a_pDst, uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) const
     223int RTCRestBinary::toString(RTCString *a_pDst, uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) const RT_NOEXCEPT
    224224{
    225225    RT_NOREF(a_pDst, a_fFlags);
     
    229229
    230230int 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
    232232{
    233233    RT_NOREF(a_rValue, a_pszName, a_fFlags);
     
    236236
    237237
    238 RTCRestObjectBase::kTypeClass RTCRestBinary::typeClass(void) const
     238RTCRestObjectBase::kTypeClass RTCRestBinary::typeClass(void) const RT_NOEXCEPT
    239239{
    240240    return kTypeClass_Binary;
     
    242242
    243243
    244 const char *RTCRestBinary::typeName(void) const
     244const char *RTCRestBinary::typeName(void) const RT_NOEXCEPT
    245245{
    246246    return "RTCRestBinary";
     
    249249
    250250/** Factory method. */
    251 /*static*/ DECLCALLBACK(RTCRestObjectBase *) RTCRestBinary::createInstance(void)
     251/*static*/ DECLCALLBACK(RTCRestObjectBase *) RTCRestBinary::createInstance(void) RT_NOEXCEPT
    252252{
    253253    return new (std::nothrow) RTCRestBinary();
     
    259259 */
    260260/*static*/ DECLCALLBACK(int)
    261 RTCRestBinary::deserializeInstanceFromJson(RTCRestJsonCursor const &a_rCursor, RTCRestObjectBase **a_ppInstance)
     261RTCRestBinary::deserializeInstanceFromJson(RTCRestJsonCursor const &a_rCursor, RTCRestObjectBase **a_ppInstance) RT_NOEXCEPT
    262262{
    263263    RTCRestObjectBase *pObj;
     
    277277 * Default constructor.
    278278 */
    279 RTCRestBinaryParameter::RTCRestBinaryParameter()
     279RTCRestBinaryParameter::RTCRestBinaryParameter() RT_NOEXCEPT
    280280    : RTCRestBinary()
    281281    , m_cbContentLength(UINT64_MAX)
     
    287287
    288288
    289 int RTCRestBinaryParameter::assignCopy(RTCRestBinaryParameter const &a_rThat)
     289int RTCRestBinaryParameter::assignCopy(RTCRestBinaryParameter const &a_rThat) RT_NOEXCEPT
    290290{
    291291    AssertReturn(a_rThat.m_pfnProducer, VERR_INVALID_STATE);
     
    300300
    301301
    302 int RTCRestBinaryParameter::assignCopy(RTCRestBinary const &a_rThat)
     302int RTCRestBinaryParameter::assignCopy(RTCRestBinary const &a_rThat) RT_NOEXCEPT
    303303{
    304304    m_cbContentLength = a_rThat.getSize();
     
    310310
    311311
    312 int RTCRestBinaryParameter::assignCopy(void const *a_pvData, size_t a_cbData)
     312int RTCRestBinaryParameter::assignCopy(void const *a_pvData, size_t a_cbData) RT_NOEXCEPT
    313313{
    314314    m_cbContentLength = a_cbData;
     
    319319
    320320
    321 int RTCRestBinaryParameter::assignReadOnly(void const *a_pvData, size_t a_cbData)
     321int RTCRestBinaryParameter::assignReadOnly(void const *a_pvData, size_t a_cbData) RT_NOEXCEPT
    322322{
    323323    m_cbContentLength = a_cbData;
     
    328328
    329329
    330 int RTCRestBinaryParameter::assignWriteable(void *a_pvBuf, size_t a_cbBuf)
     330int RTCRestBinaryParameter::assignWriteable(void *a_pvBuf, size_t a_cbBuf) RT_NOEXCEPT
    331331{
    332332    AssertMsgFailed(("Please use assignReadOnly!\n"));
     
    335335
    336336
    337 RTCRestObjectBase *RTCRestBinaryParameter::baseClone() const
     337RTCRestObjectBase *RTCRestBinaryParameter::baseClone() const RT_NOEXCEPT
    338338{
    339339    RTCRestBinaryParameter *pClone = new (std::nothrow) RTCRestBinaryParameter();
     
    349349
    350350
    351 int RTCRestBinaryParameter::resetToDefault()
     351int RTCRestBinaryParameter::resetToDefault() RT_NOEXCEPT
    352352{
    353353    m_cbContentLength = UINT64_MAX;
     
    358358
    359359
    360 const char *RTCRestBinaryParameter::typeName(void) const
     360const char *RTCRestBinaryParameter::typeName(void) const RT_NOEXCEPT
    361361{
    362362    return "RTCRestBinaryParameter";
     
    364364
    365365
    366 /*static*/ DECLCALLBACK(RTCRestObjectBase *) RTCRestBinaryParameter::createInstance(void)
     366/*static*/ DECLCALLBACK(RTCRestObjectBase *) RTCRestBinaryParameter::createInstance(void) RT_NOEXCEPT
    367367{
    368368    return new (std::nothrow) RTCRestBinaryParameter();
     
    370370
    371371
    372 int RTCRestBinaryParameter::setContentType(const char *a_pszContentType)
     372int RTCRestBinaryParameter::setContentType(const char *a_pszContentType) RT_NOEXCEPT
    373373{
    374374    return m_strContentType.assignNoThrow(a_pszContentType);
     
    377377
    378378void 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
    380380{
    381381    freeData();
     
    387387
    388388
    389 int RTCRestBinaryParameter::xmitPrepare(RTHTTP a_hHttp) const
     389int RTCRestBinaryParameter::xmitPrepare(RTHTTP a_hHttp) const RT_NOEXCEPT
    390390{
    391391    AssertReturn(m_pbData != NULL || m_pfnProducer != NULL || m_cbContentLength == 0, VERR_INVALID_STATE);
     
    434434/*static*/ DECLCALLBACK(int)
    435435RTCRestBinaryParameter::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
    437437{
    438438    RTCRestBinaryParameter *pThis = (RTCRestBinaryParameter *)pvUser;
     
    462462
    463463
    464 void RTCRestBinaryParameter::xmitComplete(RTHTTP a_hHttp) const
     464void RTCRestBinaryParameter::xmitComplete(RTHTTP a_hHttp) const RT_NOEXCEPT
    465465{
    466466    /* Unset the callback. */
     
    477477 * Default constructor.
    478478 */
    479 RTCRestBinaryResponse::RTCRestBinaryResponse()
     479RTCRestBinaryResponse::RTCRestBinaryResponse() RT_NOEXCEPT
    480480    : RTCRestBinary()
    481481    , m_cbContentLength(UINT64_MAX)
     
    488488
    489489
    490 int RTCRestBinaryResponse::assignCopy(RTCRestBinaryResponse const &a_rThat)
     490int RTCRestBinaryResponse::assignCopy(RTCRestBinaryResponse const &a_rThat) RT_NOEXCEPT
    491491{
    492492    AssertReturn(a_rThat.m_pfnConsumer, VERR_INVALID_STATE);
     
    499499
    500500
    501 int RTCRestBinaryResponse::assignCopy(RTCRestBinary const &a_rThat)
     501int RTCRestBinaryResponse::assignCopy(RTCRestBinary const &a_rThat) RT_NOEXCEPT
    502502{
    503503    m_cbContentLength = UINT64_MAX;
     
    509509
    510510
    511 int RTCRestBinaryResponse::assignCopy(void const *a_pvData, size_t a_cbData)
     511int RTCRestBinaryResponse::assignCopy(void const *a_pvData, size_t a_cbData) RT_NOEXCEPT
    512512{
    513513    RT_NOREF(a_pvData, a_cbData);
     
    516516
    517517
    518 int RTCRestBinaryResponse::assignReadOnly(void const *a_pvData, size_t a_cbData)
     518int RTCRestBinaryResponse::assignReadOnly(void const *a_pvData, size_t a_cbData) RT_NOEXCEPT
    519519{
    520520    RT_NOREF(a_pvData, a_cbData);
     
    523523
    524524
    525 int RTCRestBinaryResponse::assignWriteable(void *a_pvBuf, size_t a_cbBuf)
     525int RTCRestBinaryResponse::assignWriteable(void *a_pvBuf, size_t a_cbBuf) RT_NOEXCEPT
    526526{
    527527    m_cbContentLength = UINT64_MAX;
     
    534534
    535535
    536 RTCRestObjectBase *RTCRestBinaryResponse::baseClone() const
     536RTCRestObjectBase *RTCRestBinaryResponse::baseClone() const RT_NOEXCEPT
    537537{
    538538    RTCRestBinaryResponse *pClone = new (std::nothrow) RTCRestBinaryResponse();
     
    548548
    549549
    550 int RTCRestBinaryResponse::resetToDefault()
     550int RTCRestBinaryResponse::resetToDefault() RT_NOEXCEPT
    551551{
    552552    m_cbContentLength = UINT64_MAX;
     
    559559
    560560
    561 const char *RTCRestBinaryResponse::typeName(void) const
     561const char *RTCRestBinaryResponse::typeName(void) const RT_NOEXCEPT
    562562{
    563563    return "RTCRestBinaryResponse";
     
    565565
    566566
    567 /*static*/ DECLCALLBACK(RTCRestObjectBase *) RTCRestBinaryResponse::createInstance(void)
     567/*static*/ DECLCALLBACK(RTCRestObjectBase *) RTCRestBinaryResponse::createInstance(void) RT_NOEXCEPT
    568568{
    569569    return new (std::nothrow) RTCRestBinaryResponse();
     
    571571
    572572
    573 void RTCRestBinaryResponse::setMaxDownloadSize(size_t a_cbMaxDownload)
     573void RTCRestBinaryResponse::setMaxDownloadSize(size_t a_cbMaxDownload) RT_NOEXCEPT
    574574{
    575575    if (a_cbMaxDownload == 0)
     
    580580
    581581
    582 void RTCRestBinaryResponse::setConsumerCallback(PFNCONSUMER a_pfnConsumer, void *a_pvCallbackData /*= NULL*/)
     582void RTCRestBinaryResponse::setConsumerCallback(PFNCONSUMER a_pfnConsumer, void *a_pvCallbackData /*= NULL*/) RT_NOEXCEPT
    583583{
    584584    freeData();
     
    591591
    592592
    593 int RTCRestBinaryResponse::receivePrepare(RTHTTP a_hHttp, uint32_t a_fCallbackFlags)
     593int RTCRestBinaryResponse::receivePrepare(RTHTTP a_hHttp, uint32_t a_fCallbackFlags) RT_NOEXCEPT
    594594{
    595595    AssertReturn(!m_fReadOnly, VERR_INVALID_STATE);
     
    606606/*static*/ DECLCALLBACK(int)
    607607RTCRestBinaryResponse::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
    609609{
    610610    RTCRestBinaryResponse *pThis = (RTCRestBinaryResponse *)pvUser;
     
    687687
    688688
    689 void RTCRestBinaryResponse::receiveComplete(RTHTTP a_hHttp)
     689void RTCRestBinaryResponse::receiveComplete(RTHTTP a_hHttp) RT_NOEXCEPT
    690690{
    691691    /* Unset the callback. */
  • trunk/src/VBox/Runtime/common/rest/rest-primary-object-types.cpp

    r74414 r74425  
    4848
    4949/** Default constructor. */
    50 RTCRestObjectBase::RTCRestObjectBase()
     50RTCRestObjectBase::RTCRestObjectBase() RT_NOEXCEPT
    5151    : m_fNullIndicator(false)
    5252{
     
    5555
    5656/** Copy constructor. */
    57 RTCRestObjectBase::RTCRestObjectBase(RTCRestObjectBase const &a_rThat)
     57RTCRestObjectBase::RTCRestObjectBase(RTCRestObjectBase const &a_rThat) RT_NOEXCEPT
    5858    : m_fNullIndicator(a_rThat.m_fNullIndicator)
    5959{
     
    6868
    6969
    70 int RTCRestObjectBase::setNull()
     70int RTCRestObjectBase::setNull() RT_NOEXCEPT
    7171{
    7272    int rc = resetToDefault();
     
    7676
    7777
    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
     78void RTCRestObjectBase::setNotNull() RT_NOEXCEPT
     79{
     80    m_fNullIndicator = false;
     81}
     82
     83
     84int RTCRestObjectBase::toString(RTCString *a_pDst, uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) const RT_NOEXCEPT
    8585{
    8686    /*
     
    102102
    103103int 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
    105105{
    106106    RT_NOREF(a_fFlags);
     
    126126
    127127/** Factory method. */
    128 /*static*/ DECLCALLBACK(RTCRestObjectBase *) RTCRestBool::createInstance(void)
     128/*static*/ DECLCALLBACK(RTCRestObjectBase *) RTCRestBool::createInstance(void) RT_NOEXCEPT
    129129{
    130130    return new (std::nothrow) RTCRestBool();
     
    136136 */
    137137/*static*/ DECLCALLBACK(int)
    138 RTCRestBool::deserializeInstanceFromJson(RTCRestJsonCursor const &a_rCursor, RTCRestObjectBase **a_ppInstance)
     138RTCRestBool::deserializeInstanceFromJson(RTCRestJsonCursor const &a_rCursor, RTCRestObjectBase **a_ppInstance) RT_NOEXCEPT
    139139{
    140140    RTCRestObjectBase *pObj = createInstance();
     
    147147
    148148/** Default constructor. */
    149 RTCRestBool::RTCRestBool()
     149RTCRestBool::RTCRestBool() RT_NOEXCEPT
    150150    : RTCRestObjectBase()
    151151    , m_fValue(false)
     
    155155
    156156/** Copy constructor. */
    157 RTCRestBool::RTCRestBool(RTCRestBool const &a_rThat)
     157RTCRestBool::RTCRestBool(RTCRestBool const &a_rThat) RT_NOEXCEPT
    158158    : RTCRestObjectBase(a_rThat)
    159159    , m_fValue(a_rThat.m_fValue)
     
    163163
    164164/** From value constructor. */
    165 RTCRestBool::RTCRestBool(bool fValue)
     165RTCRestBool::RTCRestBool(bool fValue) RT_NOEXCEPT
    166166    : m_fValue(fValue)
    167167{
     
    177177
    178178/** Copy assignment operator. */
    179 RTCRestBool &RTCRestBool::operator=(RTCRestBool const &a_rThat)
     179RTCRestBool &RTCRestBool::operator=(RTCRestBool const &a_rThat) RT_NOEXCEPT
    180180{
    181181    m_fNullIndicator = a_rThat.m_fNullIndicator;
     
    185185
    186186
    187 int RTCRestBool::assignCopy(RTCRestBool const &a_rThat)
     187int RTCRestBool::assignCopy(RTCRestBool const &a_rThat) RT_NOEXCEPT
    188188{
    189189    m_fNullIndicator = a_rThat.m_fNullIndicator;
     
    193193
    194194
    195 void RTCRestBool::assignValue(bool a_fValue)
     195void RTCRestBool::assignValue(bool a_fValue) RT_NOEXCEPT
    196196{
    197197    m_fValue = a_fValue;
     
    200200
    201201
    202 RTCRestObjectBase *RTCRestBool::baseClone() const
     202RTCRestObjectBase *RTCRestBool::baseClone() const RT_NOEXCEPT
    203203{
    204204    return new (std::nothrow) RTCRestBool(*this);
     
    206206
    207207
    208 int RTCRestBool::resetToDefault()
     208int RTCRestBool::resetToDefault() RT_NOEXCEPT
    209209{
    210210    m_fValue = false;
     
    214214
    215215
    216 RTCRestOutputBase &RTCRestBool::serializeAsJson(RTCRestOutputBase &a_rDst) const
     216RTCRestOutputBase &RTCRestBool::serializeAsJson(RTCRestOutputBase &a_rDst) const RT_NOEXCEPT
    217217{
    218218    a_rDst.printf(!m_fNullIndicator ? m_fValue ? "true" : "false" : "null");
     
    221221
    222222
    223 int RTCRestBool::deserializeFromJson(RTCRestJsonCursor const &a_rCursor)
     223int RTCRestBool::deserializeFromJson(RTCRestJsonCursor const &a_rCursor) RT_NOEXCEPT
    224224{
    225225    m_fValue = false;
     
    248248
    249249
    250 int RTCRestBool::toString(RTCString *a_pDst, uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) const
     250int RTCRestBool::toString(RTCString *a_pDst, uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) const RT_NOEXCEPT
    251251{
    252252    if (!(a_fFlags & kToString_Append))
     
    272272
    273273int 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
    275275{
    276276    RT_NOREF(a_fFlags);
     
    298298
    299299
    300 RTCRestObjectBase::kTypeClass RTCRestBool::typeClass() const
     300RTCRestObjectBase::kTypeClass RTCRestBool::typeClass() const RT_NOEXCEPT
    301301{
    302302    return kTypeClass_Bool;
     
    304304
    305305
    306 const char *RTCRestBool::typeName() const
     306const char *RTCRestBool::typeName() const RT_NOEXCEPT
    307307{
    308308    return "bool";
     
    316316
    317317/** Factory method. */
    318 /*static*/ DECLCALLBACK(RTCRestObjectBase *) RTCRestInt64::createInstance(void)
     318/*static*/ DECLCALLBACK(RTCRestObjectBase *) RTCRestInt64::createInstance(void) RT_NOEXCEPT
    319319{
    320320    return new (std::nothrow) RTCRestInt64();
     
    326326 */
    327327/*static*/ DECLCALLBACK(int)
    328 RTCRestInt64::deserializeInstanceFromJson(RTCRestJsonCursor const &a_rCursor, RTCRestObjectBase **a_ppInstance)
     328RTCRestInt64::deserializeInstanceFromJson(RTCRestJsonCursor const &a_rCursor, RTCRestObjectBase **a_ppInstance) RT_NOEXCEPT
    329329{
    330330    RTCRestObjectBase *pObj = createInstance();
     
    337337
    338338/** Default constructor. */
    339 RTCRestInt64::RTCRestInt64()
     339RTCRestInt64::RTCRestInt64() RT_NOEXCEPT
    340340    : RTCRestObjectBase()
    341341    , m_iValue(0)
     
    345345
    346346/** Copy constructor. */
    347 RTCRestInt64::RTCRestInt64(RTCRestInt64 const &a_rThat)
     347RTCRestInt64::RTCRestInt64(RTCRestInt64 const &a_rThat) RT_NOEXCEPT
    348348    : RTCRestObjectBase(a_rThat)
    349349    , m_iValue(a_rThat.m_iValue)
     
    353353
    354354/** From value constructor. */
    355 RTCRestInt64::RTCRestInt64(int64_t iValue)
     355RTCRestInt64::RTCRestInt64(int64_t iValue) RT_NOEXCEPT
    356356    : RTCRestObjectBase()
    357357    , m_iValue(iValue)
     
    368368
    369369/** Copy assignment operator. */
    370 RTCRestInt64 &RTCRestInt64::operator=(RTCRestInt64 const &a_rThat)
     370RTCRestInt64 &RTCRestInt64::operator=(RTCRestInt64 const &a_rThat) RT_NOEXCEPT
    371371{
    372372    m_fNullIndicator = a_rThat.m_fNullIndicator;
     
    376376
    377377
    378 int RTCRestInt64::assignCopy(RTCRestInt64 const &a_rThat)
     378int RTCRestInt64::assignCopy(RTCRestInt64 const &a_rThat) RT_NOEXCEPT
    379379{
    380380    m_fNullIndicator = a_rThat.m_fNullIndicator;
     
    384384
    385385
    386 void RTCRestInt64::assignValue(int64_t a_iValue)
     386void RTCRestInt64::assignValue(int64_t a_iValue) RT_NOEXCEPT
    387387{
    388388    m_iValue = a_iValue;
     
    391391
    392392
    393 RTCRestObjectBase *RTCRestInt64::baseClone() const
     393RTCRestObjectBase *RTCRestInt64::baseClone() const RT_NOEXCEPT
    394394{
    395395    return new (std::nothrow) RTCRestInt64(*this);
     
    397397
    398398
    399 int RTCRestInt64::resetToDefault()
     399int RTCRestInt64::resetToDefault() RT_NOEXCEPT
    400400{
    401401    m_iValue = 0;
     
    405405
    406406
    407 RTCRestOutputBase &RTCRestInt64::serializeAsJson(RTCRestOutputBase &a_rDst) const
     407RTCRestOutputBase &RTCRestInt64::serializeAsJson(RTCRestOutputBase &a_rDst) const RT_NOEXCEPT
    408408{
    409409    if (!m_fNullIndicator)
     
    415415
    416416
    417 int RTCRestInt64::deserializeFromJson(RTCRestJsonCursor const &a_rCursor)
     417int RTCRestInt64::deserializeFromJson(RTCRestJsonCursor const &a_rCursor) RT_NOEXCEPT
    418418{
    419419    m_iValue = 0;
     
    444444
    445445
    446 int RTCRestInt64::toString(RTCString *a_pDst, uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) const
     446int RTCRestInt64::toString(RTCString *a_pDst, uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) const RT_NOEXCEPT
    447447{
    448448    if (!(a_fFlags & kToString_Append))
     
    459459
    460460int 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
    462462{
    463463    RT_NOREF(a_fFlags);
     
    482482
    483483
    484 RTCRestObjectBase::kTypeClass RTCRestInt64::typeClass() const
     484RTCRestObjectBase::kTypeClass RTCRestInt64::typeClass() const RT_NOEXCEPT
    485485{
    486486    return kTypeClass_Int64;
     
    488488
    489489
    490 const char *RTCRestInt64::typeName() const
     490const char *RTCRestInt64::typeName() const RT_NOEXCEPT
    491491{
    492492    return "int64_t";
     
    500500
    501501/** Factory method. */
    502 /*static*/ DECLCALLBACK(RTCRestObjectBase *) RTCRestInt32::createInstance(void)
     502/*static*/ DECLCALLBACK(RTCRestObjectBase *) RTCRestInt32::createInstance(void) RT_NOEXCEPT
    503503{
    504504    return new (std::nothrow) RTCRestInt32();
     
    510510 */
    511511/*static*/ DECLCALLBACK(int)
    512 RTCRestInt32::deserializeInstanceFromJson(RTCRestJsonCursor const &a_rCursor, RTCRestObjectBase **a_ppInstance)
     512RTCRestInt32::deserializeInstanceFromJson(RTCRestJsonCursor const &a_rCursor, RTCRestObjectBase **a_ppInstance) RT_NOEXCEPT
    513513{
    514514    RTCRestObjectBase *pObj = createInstance();
     
    521521
    522522/** Default constructor. */
    523 RTCRestInt32::RTCRestInt32()
     523RTCRestInt32::RTCRestInt32() RT_NOEXCEPT
    524524    : RTCRestObjectBase()
    525525    , m_iValue(0)
     
    529529
    530530/** Copy constructor. */
    531 RTCRestInt32::RTCRestInt32(RTCRestInt32 const &a_rThat)
     531RTCRestInt32::RTCRestInt32(RTCRestInt32 const &a_rThat) RT_NOEXCEPT
    532532    : RTCRestObjectBase(a_rThat)
    533533    , m_iValue(a_rThat.m_iValue)
     
    537537
    538538/** From value constructor. */
    539 RTCRestInt32::RTCRestInt32(int32_t iValue)
     539RTCRestInt32::RTCRestInt32(int32_t iValue) RT_NOEXCEPT
    540540    : RTCRestObjectBase()
    541541    , m_iValue(iValue)
     
    552552
    553553/** Copy assignment operator. */
    554 RTCRestInt32 &RTCRestInt32::operator=(RTCRestInt32 const &a_rThat)
     554RTCRestInt32 &RTCRestInt32::operator=(RTCRestInt32 const &a_rThat) RT_NOEXCEPT
    555555{
    556556    m_fNullIndicator = a_rThat.m_fNullIndicator;
     
    560560
    561561
    562 int RTCRestInt32::assignCopy(RTCRestInt32 const &a_rThat)
     562int RTCRestInt32::assignCopy(RTCRestInt32 const &a_rThat) RT_NOEXCEPT
    563563{
    564564    m_fNullIndicator = a_rThat.m_fNullIndicator;
     
    568568
    569569
    570 RTCRestObjectBase *RTCRestInt32::baseClone() const
     570RTCRestObjectBase *RTCRestInt32::baseClone() const RT_NOEXCEPT
    571571{
    572572    return new (std::nothrow) RTCRestInt32(*this);
     
    574574
    575575
    576 int RTCRestInt32::resetToDefault()
     576int RTCRestInt32::resetToDefault() RT_NOEXCEPT
    577577{
    578578    m_iValue = 0;
     
    582582
    583583
    584 void RTCRestInt32::assignValue(int32_t a_iValue)
     584void RTCRestInt32::assignValue(int32_t a_iValue) RT_NOEXCEPT
    585585{
    586586    m_iValue = a_iValue;
     
    589589
    590590
    591 RTCRestOutputBase &RTCRestInt32::serializeAsJson(RTCRestOutputBase &a_rDst) const
     591RTCRestOutputBase &RTCRestInt32::serializeAsJson(RTCRestOutputBase &a_rDst) const RT_NOEXCEPT
    592592{
    593593    if (!m_fNullIndicator)
     
    599599
    600600
    601 int RTCRestInt32::deserializeFromJson(RTCRestJsonCursor const &a_rCursor)
     601int RTCRestInt32::deserializeFromJson(RTCRestJsonCursor const &a_rCursor) RT_NOEXCEPT
    602602{
    603603    m_iValue = 0;
     
    634634
    635635
    636 int RTCRestInt32::toString(RTCString *a_pDst, uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) const
     636int RTCRestInt32::toString(RTCString *a_pDst, uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) const RT_NOEXCEPT
    637637{
    638638    if (!(a_fFlags & kToString_Append))
     
    649649
    650650int 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
    652652{
    653653    RT_NOREF(a_fFlags);
     
    672672
    673673
    674 RTCRestObjectBase::kTypeClass RTCRestInt32::typeClass() const
     674RTCRestObjectBase::kTypeClass RTCRestInt32::typeClass() const RT_NOEXCEPT
    675675{
    676676    return kTypeClass_Int32;
     
    678678
    679679
    680 const char *RTCRestInt32::typeName() const
     680const char *RTCRestInt32::typeName() const RT_NOEXCEPT
    681681{
    682682    return "int32_t";
     
    690690
    691691/** Factory method. */
    692 /*static*/ DECLCALLBACK(RTCRestObjectBase *) RTCRestInt16::createInstance(void)
     692/*static*/ DECLCALLBACK(RTCRestObjectBase *) RTCRestInt16::createInstance(void) RT_NOEXCEPT
    693693{
    694694    return new (std::nothrow) RTCRestInt16();
     
    700700 */
    701701/*static*/ DECLCALLBACK(int)
    702 RTCRestInt16::deserializeInstanceFromJson(RTCRestJsonCursor const &a_rCursor, RTCRestObjectBase **a_ppInstance)
     702RTCRestInt16::deserializeInstanceFromJson(RTCRestJsonCursor const &a_rCursor, RTCRestObjectBase **a_ppInstance) RT_NOEXCEPT
    703703{
    704704    RTCRestObjectBase *pObj = createInstance();
     
    711711
    712712/** Default constructor. */
    713 RTCRestInt16::RTCRestInt16()
     713RTCRestInt16::RTCRestInt16() RT_NOEXCEPT
    714714    : RTCRestObjectBase()
    715715    , m_iValue(0)
     
    719719
    720720/** Copy constructor. */
    721 RTCRestInt16::RTCRestInt16(RTCRestInt16 const &a_rThat)
     721RTCRestInt16::RTCRestInt16(RTCRestInt16 const &a_rThat) RT_NOEXCEPT
    722722    : RTCRestObjectBase(a_rThat)
    723723    , m_iValue(a_rThat.m_iValue)
     
    727727
    728728/** From value constructor. */
    729 RTCRestInt16::RTCRestInt16(int16_t iValue)
     729RTCRestInt16::RTCRestInt16(int16_t iValue) RT_NOEXCEPT
    730730    : RTCRestObjectBase()
    731731    , m_iValue(iValue)
     
    742742
    743743/** Copy assignment operator. */
    744 RTCRestInt16 &RTCRestInt16::operator=(RTCRestInt16 const &a_rThat)
     744RTCRestInt16 &RTCRestInt16::operator=(RTCRestInt16 const &a_rThat) RT_NOEXCEPT
    745745{
    746746    m_fNullIndicator = a_rThat.m_fNullIndicator;
     
    750750
    751751
    752 int RTCRestInt16::assignCopy(RTCRestInt16 const &a_rThat)
     752int RTCRestInt16::assignCopy(RTCRestInt16 const &a_rThat) RT_NOEXCEPT
    753753{
    754754    m_fNullIndicator = a_rThat.m_fNullIndicator;
     
    758758
    759759
    760 void RTCRestInt16::assignValue(int16_t a_iValue)
     760void RTCRestInt16::assignValue(int16_t a_iValue) RT_NOEXCEPT
    761761{
    762762    m_iValue = a_iValue;
     
    765765
    766766
    767 RTCRestObjectBase *RTCRestInt16::baseClone() const
     767RTCRestObjectBase *RTCRestInt16::baseClone() const RT_NOEXCEPT
    768768{
    769769    return new (std::nothrow) RTCRestInt16(*this);
     
    771771
    772772
    773 int RTCRestInt16::resetToDefault()
     773int RTCRestInt16::resetToDefault() RT_NOEXCEPT
    774774{
    775775    m_iValue = 0;
     
    779779
    780780
    781 RTCRestOutputBase &RTCRestInt16::serializeAsJson(RTCRestOutputBase &a_rDst) const
     781RTCRestOutputBase &RTCRestInt16::serializeAsJson(RTCRestOutputBase &a_rDst) const RT_NOEXCEPT
    782782{
    783783    if (!m_fNullIndicator)
     
    789789
    790790
    791 int RTCRestInt16::deserializeFromJson(RTCRestJsonCursor const &a_rCursor)
     791int RTCRestInt16::deserializeFromJson(RTCRestJsonCursor const &a_rCursor) RT_NOEXCEPT
    792792{
    793793    m_iValue = 0;
     
    824824
    825825
    826 int RTCRestInt16::toString(RTCString *a_pDst, uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) const
     826int RTCRestInt16::toString(RTCString *a_pDst, uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) const RT_NOEXCEPT
    827827{
    828828    if (!(a_fFlags & kToString_Append))
     
    839839
    840840int 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
    842842{
    843843    RT_NOREF(a_fFlags);
     
    862862
    863863
    864 RTCRestObjectBase::kTypeClass RTCRestInt16::typeClass() const
     864RTCRestObjectBase::kTypeClass RTCRestInt16::typeClass() const RT_NOEXCEPT
    865865{
    866866    return kTypeClass_Int16;
     
    868868
    869869
    870 const char *RTCRestInt16::typeName() const
     870const char *RTCRestInt16::typeName() const RT_NOEXCEPT
    871871{
    872872    return "int16_t";
     
    880880
    881881/** Factory method. */
    882 /*static*/ DECLCALLBACK(RTCRestObjectBase *) RTCRestDouble::createInstance(void)
     882/*static*/ DECLCALLBACK(RTCRestObjectBase *) RTCRestDouble::createInstance(void) RT_NOEXCEPT
    883883{
    884884    return new (std::nothrow) RTCRestDouble();
     
    890890 */
    891891/*static*/ DECLCALLBACK(int)
    892 RTCRestDouble::deserializeInstanceFromJson(RTCRestJsonCursor const &a_rCursor, RTCRestObjectBase **a_ppInstance)
     892RTCRestDouble::deserializeInstanceFromJson(RTCRestJsonCursor const &a_rCursor, RTCRestObjectBase **a_ppInstance) RT_NOEXCEPT
    893893{
    894894    RTCRestObjectBase *pObj = createInstance();
     
    901901
    902902/** Default constructor. */
    903 RTCRestDouble::RTCRestDouble()
     903RTCRestDouble::RTCRestDouble() RT_NOEXCEPT
    904904    : RTCRestObjectBase()
    905905    , m_rdValue(0.0)
     
    909909
    910910/** Copy constructor. */
    911 RTCRestDouble::RTCRestDouble(RTCRestDouble const &a_rThat)
     911RTCRestDouble::RTCRestDouble(RTCRestDouble const &a_rThat) RT_NOEXCEPT
    912912    : RTCRestObjectBase(a_rThat)
    913913    , m_rdValue(a_rThat.m_rdValue)
     
    917917
    918918/** From value constructor. */
    919 RTCRestDouble::RTCRestDouble(double rdValue)
     919RTCRestDouble::RTCRestDouble(double rdValue) RT_NOEXCEPT
    920920    : RTCRestObjectBase()
    921921    , m_rdValue(rdValue)
     
    932932
    933933/** Copy assignment operator. */
    934 RTCRestDouble &RTCRestDouble::operator=(RTCRestDouble const &a_rThat)
     934RTCRestDouble &RTCRestDouble::operator=(RTCRestDouble const &a_rThat) RT_NOEXCEPT
    935935{
    936936    m_fNullIndicator = a_rThat.m_fNullIndicator;
     
    940940
    941941
    942 int RTCRestDouble::assignCopy(RTCRestDouble const &a_rThat)
     942int RTCRestDouble::assignCopy(RTCRestDouble const &a_rThat) RT_NOEXCEPT
    943943{
    944944    m_fNullIndicator = a_rThat.m_fNullIndicator;
     
    948948
    949949
    950 void RTCRestDouble::assignValue(double a_rdValue)
     950void RTCRestDouble::assignValue(double a_rdValue) RT_NOEXCEPT
    951951{
    952952    m_rdValue = a_rdValue;
     
    955955
    956956
    957 RTCRestObjectBase *RTCRestDouble::baseClone() const
     957RTCRestObjectBase *RTCRestDouble::baseClone() const RT_NOEXCEPT
    958958{
    959959    return new (std::nothrow) RTCRestDouble(*this);
     
    961961
    962962
    963 int RTCRestDouble::resetToDefault()
     963int RTCRestDouble::resetToDefault() RT_NOEXCEPT
    964964{
    965965    m_rdValue = 0.0;
     
    969969
    970970
    971 RTCRestOutputBase &RTCRestDouble::serializeAsJson(RTCRestOutputBase &a_rDst) const
     971RTCRestOutputBase &RTCRestDouble::serializeAsJson(RTCRestOutputBase &a_rDst) const RT_NOEXCEPT
    972972{
    973973    if (!m_fNullIndicator)
     
    995995
    996996
    997 int RTCRestDouble::deserializeFromJson(RTCRestJsonCursor const &a_rCursor)
     997int RTCRestDouble::deserializeFromJson(RTCRestJsonCursor const &a_rCursor) RT_NOEXCEPT
    998998{
    999999    m_rdValue = 0.0;
     
    10381038
    10391039
    1040 int RTCRestDouble::toString(RTCString *a_pDst, uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) const
     1040int RTCRestDouble::toString(RTCString *a_pDst, uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) const RT_NOEXCEPT
    10411041{
    10421042    if (!m_fNullIndicator)
     
    10671067
    10681068int 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
    10701070{
    10711071    RT_NOREF(a_fFlags);
     
    11061106
    11071107
    1108 RTCRestObjectBase::kTypeClass RTCRestDouble::typeClass() const
     1108RTCRestObjectBase::kTypeClass RTCRestDouble::typeClass() const RT_NOEXCEPT
    11091109{
    11101110    return kTypeClass_Double;
     
    11121112
    11131113
    1114 const char *RTCRestDouble::typeName() const
     1114const char *RTCRestDouble::typeName() const RT_NOEXCEPT
    11151115{
    11161116    return "double";
     
    11241124
    11251125/** Factory method. */
    1126 /*static*/ DECLCALLBACK(RTCRestObjectBase *) RTCRestString::createInstance(void)
     1126/*static*/ DECLCALLBACK(RTCRestObjectBase *) RTCRestString::createInstance(void) RT_NOEXCEPT
    11271127{
    11281128    return new (std::nothrow) RTCRestString();
     
    11341134 */
    11351135/*static*/ DECLCALLBACK(int)
    1136 RTCRestString::deserializeInstanceFromJson(RTCRestJsonCursor const &a_rCursor, RTCRestObjectBase **a_ppInstance)
     1136RTCRestString::deserializeInstanceFromJson(RTCRestJsonCursor const &a_rCursor, RTCRestObjectBase **a_ppInstance) RT_NOEXCEPT
    11371137{
    11381138    RTCRestObjectBase *pObj = createInstance();
     
    11451145
    11461146/** Default constructor. */
    1147 RTCRestString::RTCRestString()
     1147RTCRestString::RTCRestString() RT_NOEXCEPT
    11481148    : RTCRestObjectBase()
    11491149    , RTCString()
     
    11821182
    11831183
    1184 int RTCRestString::assignCopy(RTCRestString const &a_rThat)
     1184int RTCRestString::assignCopy(RTCRestString const &a_rThat) RT_NOEXCEPT
    11851185{
    11861186    int rc = assignNoThrow(a_rThat);
     
    11901190
    11911191
    1192 int RTCRestString::assignCopy(RTCString const &a_rThat)
     1192int RTCRestString::assignCopy(RTCString const &a_rThat) RT_NOEXCEPT
    11931193{
    11941194    m_fNullIndicator = false;
     
    11971197
    11981198
    1199 int RTCRestString::assignCopy(const char *a_pszThat)
     1199int RTCRestString::assignCopy(const char *a_pszThat) RT_NOEXCEPT
    12001200{
    12011201    m_fNullIndicator = false;
     
    12041204
    12051205
    1206 int RTCRestString::setNull()
     1206int RTCRestString::setNull() RT_NOEXCEPT
    12071207{
    12081208    RTCString::setNull();
     
    12121212
    12131213
    1214 RTCRestObjectBase *RTCRestString::baseClone() const
     1214RTCRestObjectBase *RTCRestString::baseClone() const RT_NOEXCEPT
    12151215{
    12161216    RTCRestString *pClone = new (std::nothrow) RTCRestString();
     
    12261226
    12271227
    1228 int RTCRestString::resetToDefault()
     1228int RTCRestString::resetToDefault() RT_NOEXCEPT
    12291229{
    12301230    RTCString::setNull();
     
    12341234
    12351235
    1236 RTCRestOutputBase &RTCRestString::serializeAsJson(RTCRestOutputBase &a_rDst) const
     1236RTCRestOutputBase &RTCRestString::serializeAsJson(RTCRestOutputBase &a_rDst) const RT_NOEXCEPT
    12371237{
    12381238    if (!m_fNullIndicator)
     
    12441244
    12451245
    1246 int RTCRestString::deserializeFromJson(RTCRestJsonCursor const &a_rCursor)
     1246int RTCRestString::deserializeFromJson(RTCRestJsonCursor const &a_rCursor) RT_NOEXCEPT
    12471247{
    12481248    m_fNullIndicator = false;
     
    12721272
    12731273
    1274 int RTCRestString::toString(RTCString *a_pDst, uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) const
     1274int RTCRestString::toString(RTCString *a_pDst, uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) const RT_NOEXCEPT
    12751275{
    12761276    /* Note! m_fNullIndicator == true: empty string. */
     
    12821282
    12831283int 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
    12851285{
    12861286    RT_NOREF(a_fFlags); RT_NOREF(a_pszName); RT_NOREF(a_pErrInfo);
     
    12921292
    12931293
    1294 RTCRestObjectBase::kTypeClass RTCRestString::typeClass() const
     1294RTCRestObjectBase::kTypeClass RTCRestString::typeClass() const RT_NOEXCEPT
    12951295{
    12961296    return kTypeClass_String;
     
    12981298
    12991299
    1300 const char *RTCRestString::typeName() const
     1300const char *RTCRestString::typeName() const RT_NOEXCEPT
    13011301{
    13021302    return "RTCString";
     
    14441444*   RTCRestDate implementation                                                                                                   *
    14451445*********************************************************************************************************************************/
    1446 /*static*/ DECLCALLBACK(RTCRestObjectBase *) RTCRestDate::createInstance(void)
     1446/*static*/ DECLCALLBACK(RTCRestObjectBase *) RTCRestDate::createInstance(void) RT_NOEXCEPT
    14471447{
    14481448    return new (std::nothrow) RTCRestDate();
     
    14541454 */
    14551455/*static*/ DECLCALLBACK(int)
    1456 RTCRestDate::deserializeInstanceFromJson(RTCRestJsonCursor const &a_rCursor, RTCRestObjectBase **a_ppInstance)
     1456RTCRestDate::deserializeInstanceFromJson(RTCRestJsonCursor const &a_rCursor, RTCRestObjectBase **a_ppInstance) RT_NOEXCEPT
    14571457{
    14581458    RTCRestObjectBase *pObj = createInstance();
     
    14641464
    14651465
    1466 RTCRestDate::RTCRestDate()
     1466RTCRestDate::RTCRestDate() RT_NOEXCEPT
    14671467    : RTCRestObjectBase()
    14681468    , m_fTimeSpecOkay(false)
     
    15071507
    15081508
    1509 int RTCRestDate::assignCopy(RTCRestDate const &a_rThat)
     1509int RTCRestDate::assignCopy(RTCRestDate const &a_rThat) RT_NOEXCEPT
    15101510{
    15111511    m_fNullIndicator = a_rThat.m_fNullIndicator;
     
    15181518
    15191519
    1520 RTCRestObjectBase *RTCRestDate::baseClone() const
     1520RTCRestObjectBase *RTCRestDate::baseClone() const RT_NOEXCEPT
    15211521{
    15221522    RTCRestDate *pClone = new (std::nothrow) RTCRestDate();
     
    15321532
    15331533
    1534 int RTCRestDate::resetToDefault()
     1534int RTCRestDate::resetToDefault() RT_NOEXCEPT
    15351535{
    15361536    m_fNullIndicator = true;
     
    15441544
    15451545
    1546 RTCRestOutputBase &RTCRestDate::serializeAsJson(RTCRestOutputBase &a_rDst) const
     1546RTCRestOutputBase &RTCRestDate::serializeAsJson(RTCRestOutputBase &a_rDst) const RT_NOEXCEPT
    15471547{
    15481548    if (m_fNullIndicator)
     
    15541554
    15551555
    1556 int RTCRestDate::deserializeFromJson(RTCRestJsonCursor const &a_rCursor)
     1556int RTCRestDate::deserializeFromJson(RTCRestJsonCursor const &a_rCursor) RT_NOEXCEPT
    15571557{
    15581558    setNull();
     
    15861586
    15871587
    1588 int RTCRestDate::toString(RTCString *a_pDst, uint32_t a_fFlags /*= 0*/) const
     1588int RTCRestDate::toString(RTCString *a_pDst, uint32_t a_fFlags /*= 0*/) const RT_NOEXCEPT
    15891589{
    15901590    if (m_fNullIndicator)
     
    16011601
    16021602int 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
    16041604{
    16051605    setNull();
     
    16261626
    16271627
    1628 RTCRestObjectBase::kTypeClass RTCRestDate::typeClass(void) const
     1628RTCRestObjectBase::kTypeClass RTCRestDate::typeClass(void) const RT_NOEXCEPT
    16291629{
    16301630    return kTypeClass_Date;
     
    16321632
    16331633
    1634 const char *RTCRestDate::typeName(void) const
     1634const char *RTCRestDate::typeName(void) const RT_NOEXCEPT
    16351635{
    16361636    return "RTCRestDate";
     
    16381638
    16391639
    1640 int RTCRestDate::assignValue(PCRTTIMESPEC a_pTimeSpec, kFormat a_enmFormat)
     1640int RTCRestDate::assignValue(PCRTTIMESPEC a_pTimeSpec, kFormat a_enmFormat) RT_NOEXCEPT
    16411641{
    16421642    AssertPtrReturn(a_pTimeSpec, VERR_INVALID_PARAMETER);
     
    16481648
    16491649
    1650 int RTCRestDate::assignValueRfc2822(PCRTTIMESPEC a_pTimeSpec)
     1650int RTCRestDate::assignValueRfc2822(PCRTTIMESPEC a_pTimeSpec) RT_NOEXCEPT
    16511651{
    16521652    AssertPtrReturn(a_pTimeSpec, VERR_INVALID_PARAMETER);
     
    16561656
    16571657
    1658 int RTCRestDate::assignValueRfc7131(PCRTTIMESPEC a_pTimeSpec)
     1658int RTCRestDate::assignValueRfc7131(PCRTTIMESPEC a_pTimeSpec) RT_NOEXCEPT
    16591659{
    16601660    AssertPtrReturn(a_pTimeSpec, VERR_INVALID_PARAMETER);
     
    16641664
    16651665
    1666 int RTCRestDate::assignValueRfc3339(PCRTTIMESPEC a_pTimeSpec)
     1666int RTCRestDate::assignValueRfc3339(PCRTTIMESPEC a_pTimeSpec) RT_NOEXCEPT
    16671667{
    16681668    AssertPtrReturn(a_pTimeSpec, VERR_INVALID_PARAMETER);
     
    16721672
    16731673
    1674 int RTCRestDate::assignNow(kFormat a_enmFormat)
     1674int RTCRestDate::assignNow(kFormat a_enmFormat) RT_NOEXCEPT
    16751675{
    16761676    RTTIMESPEC Now;
     
    16791679
    16801680
    1681 int RTCRestDate::assignNowRfc2822()
     1681int RTCRestDate::assignNowRfc2822() RT_NOEXCEPT
    16821682{
    16831683    RTTIMESPEC Now;
     
    16861686
    16871687
    1688 int RTCRestDate::assignNowRfc7131()
     1688int RTCRestDate::assignNowRfc7131() RT_NOEXCEPT
    16891689{
    16901690    RTTIMESPEC Now;
     
    16931693
    16941694
    1695 int RTCRestDate::assignNowRfc3339()
     1695int RTCRestDate::assignNowRfc3339() RT_NOEXCEPT
    16961696{
    16971697    RTTIMESPEC Now;
     
    17001700
    17011701
    1702 int RTCRestDate::setFormat(kFormat a_enmFormat)
     1702int RTCRestDate::setFormat(kFormat a_enmFormat) RT_NOEXCEPT
    17031703{
    17041704    /*
     
    17311731
    17321732
    1733 int RTCRestDate::explodeAndFormat(kFormat a_enmFormat)
     1733int RTCRestDate::explodeAndFormat(kFormat a_enmFormat) RT_NOEXCEPT
    17341734{
    17351735    RTTimeExplode(&m_Exploded, &m_TimeSpec);
     
    17461746 * @param   a_enmFormat The format to use.
    17471747 */
    1748 int RTCRestDate::format(kFormat a_enmFormat)
     1748int RTCRestDate::format(kFormat a_enmFormat) RT_NOEXCEPT
    17491749{
    17501750    m_fNullIndicator = false;
     
    17951795 * @param   enmFormat   Specific format to try, kFormat_Invalid (default) to try guess it.
    17961796 */
    1797 int RTCRestDate::decodeFormattedString(kFormat enmFormat /*= kFormat_Invalid*/)
     1797int RTCRestDate::decodeFormattedString(kFormat enmFormat /*= kFormat_Invalid*/) RT_NOEXCEPT
    17981798{
    17991799    /*
     
    19041904
    19051905/** Default constructor. */
    1906 RTCRestStringEnumBase::RTCRestStringEnumBase()
     1906RTCRestStringEnumBase::RTCRestStringEnumBase() RT_NOEXCEPT
    19071907    : RTCRestObjectBase()
    19081908    , m_iEnumValue(0 /*invalid*/)
     
    19381938
    19391939
    1940 int RTCRestStringEnumBase::assignCopy(RTCRestStringEnumBase const &a_rThat)
     1940int RTCRestStringEnumBase::assignCopy(RTCRestStringEnumBase const &a_rThat) RT_NOEXCEPT
    19411941{
    19421942    m_fNullIndicator = a_rThat.m_fNullIndicator;
     
    19461946
    19471947
    1948 int RTCRestStringEnumBase::resetToDefault()
     1948int RTCRestStringEnumBase::resetToDefault() RT_NOEXCEPT
    19491949{
    19501950    m_iEnumValue = 0; /*invalid*/
     
    19541954
    19551955
    1956 RTCRestOutputBase &RTCRestStringEnumBase::serializeAsJson(RTCRestOutputBase &a_rDst) const
     1956RTCRestOutputBase &RTCRestStringEnumBase::serializeAsJson(RTCRestOutputBase &a_rDst) const RT_NOEXCEPT
    19571957{
    19581958    if (!m_fNullIndicator)
     
    19641964
    19651965
    1966 int RTCRestStringEnumBase::deserializeFromJson(RTCRestJsonCursor const &a_rCursor)
     1966int RTCRestStringEnumBase::deserializeFromJson(RTCRestJsonCursor const &a_rCursor) RT_NOEXCEPT
    19671967{
    19681968    m_fNullIndicator = false;
     
    19921992
    19931993
    1994 int RTCRestStringEnumBase::toString(RTCString *a_pDst, uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) const
     1994int RTCRestStringEnumBase::toString(RTCString *a_pDst, uint32_t a_fFlags /*= kCollectionFormat_Unspecified*/) const RT_NOEXCEPT
    19951995{
    19961996    if (!m_fNullIndicator)
     
    20182018
    20192019int 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
    20212021{
    20222022    int iEnumValue = stringToEnum(a_rValue);
     
    20472047
    20482048
    2049 RTCRestObjectBase::kTypeClass RTCRestStringEnumBase::typeClass(void) const
     2049RTCRestObjectBase::kTypeClass RTCRestStringEnumBase::typeClass(void) const RT_NOEXCEPT
    20502050{
    20512051    return kTypeClass_StringEnum;
     
    20532053
    20542054
    2055 int RTCRestStringEnumBase::setByString(const char *a_pszValue, size_t a_cchValue /*= RTSTR_MAX*/)
     2055int RTCRestStringEnumBase::setByString(const char *a_pszValue, size_t a_cchValue /*= RTSTR_MAX*/) RT_NOEXCEPT
    20562056{
    20572057    if (a_cchValue == RTSTR_MAX)
     
    20742074
    20752075
    2076 int RTCRestStringEnumBase::setByString(RTCString const &a_rValue)
     2076int RTCRestStringEnumBase::setByString(RTCString const &a_rValue) RT_NOEXCEPT
    20772077{
    20782078    return setByString(a_rValue.c_str(), a_rValue.length());
     
    20802080
    20812081
    2082 const char *RTCRestStringEnumBase::getString() const
     2082const char *RTCRestStringEnumBase::getString() const RT_NOEXCEPT
    20832083{
    20842084    /* We ASSUME a certain mapping table layout here.  */
     
    21002100
    21012101
    2102 int RTCRestStringEnumBase::stringToEnum(const char *a_pszValue, size_t a_cchValue)
     2102int RTCRestStringEnumBase::stringToEnum(const char *a_pszValue, size_t a_cchValue) RT_NOEXCEPT
    21032103{
    21042104    if (a_cchValue == RTSTR_MAX)
     
    21152115
    21162116
    2117 int RTCRestStringEnumBase::stringToEnum(RTCString const &a_rStrValue)
     2117int RTCRestStringEnumBase::stringToEnum(RTCString const &a_rStrValue) RT_NOEXCEPT
    21182118{
    21192119    return stringToEnum(a_rStrValue.c_str(), a_rStrValue.length());
     
    21212121
    21222122
    2123 const char *RTCRestStringEnumBase::enumToString(int a_iEnumValue, size_t *a_pcchString)
     2123const char *RTCRestStringEnumBase::enumToString(int a_iEnumValue, size_t *a_pcchString) RT_NOEXCEPT
    21242124{
    21252125    /* We ASSUME a certain mapping table layout here.  */
     
    21472147
    21482148
    2149 bool RTCRestStringEnumBase::setWorker(int a_iEnumValue)
     2149bool RTCRestStringEnumBase::setWorker(int a_iEnumValue) RT_NOEXCEPT
    21502150{
    21512151    /* We ASSUME a certain mapping table layout here.  */
     
    21682168
    21692169
    2170 RTCRestObjectBase  *RTCRestStringEnumBase::cloneWorker(RTCRestStringEnumBase *a_pDst) const
     2170RTCRestObjectBase  *RTCRestStringEnumBase::cloneWorker(RTCRestStringEnumBase *a_pDst) const RT_NOEXCEPT
    21712171{
    21722172    if (a_pDst)
     
    21862186*********************************************************************************************************************************/
    21872187
    2188 RTCRestDataObject::RTCRestDataObject()
     2188RTCRestDataObject::RTCRestDataObject() RT_NOEXCEPT
    21892189    : RTCRestObjectBase()
    21902190    , m_fIsSet(0)
     
    21982198
    21992199
    2200 RTCRestDataObject::RTCRestDataObject(RTCRestDataObject const &a_rThat)
     2200RTCRestDataObject::RTCRestDataObject(RTCRestDataObject const &a_rThat) RT_NOEXCEPT
    22012201    : RTCRestObjectBase(a_rThat)
    22022202    , m_fIsSet(a_rThat.m_fIsSet)
     
    22052205
    22062206
    2207 RTCRestDataObject &RTCRestDataObject::operator=(RTCRestDataObject const &a_rThat)
     2207RTCRestDataObject &RTCRestDataObject::operator=(RTCRestDataObject const &a_rThat) RT_NOEXCEPT
    22082208{
    22092209    m_fNullIndicator = a_rThat.m_fNullIndicator;
     
    22132213
    22142214
    2215 int RTCRestDataObject::assignCopy(RTCRestDataObject const &a_rThat)
     2215int RTCRestDataObject::assignCopy(RTCRestDataObject const &a_rThat) RT_NOEXCEPT
    22162216{
    22172217    m_fNullIndicator = a_rThat.m_fNullIndicator;
     
    22212221
    22222222
    2223 int RTCRestDataObject::resetToDefault()
     2223int RTCRestDataObject::resetToDefault() RT_NOEXCEPT
    22242224{
    22252225    m_fNullIndicator = false;
     
    22292229
    22302230
    2231 RTCRestOutputBase &RTCRestDataObject::serializeMembersAsJson(RTCRestOutputBase &a_rDst) const
     2231RTCRestOutputBase &RTCRestDataObject::serializeMembersAsJson(RTCRestOutputBase &a_rDst) const RT_NOEXCEPT
    22322232{
    22332233    RT_NOREF(a_rDst);
     
    22362236
    22372237
    2238 RTCRestOutputBase &RTCRestDataObject::serializeAsJson(RTCRestOutputBase &a_rDst) const
     2238RTCRestOutputBase &RTCRestDataObject::serializeAsJson(RTCRestOutputBase &a_rDst) const RT_NOEXCEPT
    22392239{
    22402240    if (!m_fNullIndicator)
     
    22502250
    22512251
    2252 int RTCRestDataObject::deserializeMemberFromJson(RTCRestJsonCursor const &a_rCursor, size_t a_cchName)
     2252int RTCRestDataObject::deserializeMemberFromJson(RTCRestJsonCursor const &a_rCursor, size_t a_cchName) RT_NOEXCEPT
    22532253{
    22542254    RT_NOREF(a_rCursor, a_cchName);
     
    22572257
    22582258
    2259 int RTCRestDataObject::deserializeFromJson(RTCRestJsonCursor const &a_rCursor)
     2259int RTCRestDataObject::deserializeFromJson(RTCRestJsonCursor const &a_rCursor) RT_NOEXCEPT
    22602260{
    22612261    /*
     
    23322332
    23332333
    2334 RTCRestObjectBase::kTypeClass RTCRestDataObject::typeClass(void) const
     2334RTCRestObjectBase::kTypeClass RTCRestDataObject::typeClass(void) const RT_NOEXCEPT
    23352335{
    23362336    return kTypeClass_DataObject;
     
    23432343*********************************************************************************************************************************/
    23442344
    2345 RTCRestPolyDataObject::RTCRestPolyDataObject()
     2345RTCRestPolyDataObject::RTCRestPolyDataObject() RT_NOEXCEPT
    23462346    : RTCRestDataObject()
    23472347{
     
    23492349
    23502350
    2351 RTCRestPolyDataObject::RTCRestPolyDataObject(RTCRestPolyDataObject const &a_rThat)
     2351RTCRestPolyDataObject::RTCRestPolyDataObject(RTCRestPolyDataObject const &a_rThat) RT_NOEXCEPT
    23522352    : RTCRestDataObject(a_rThat)
    23532353{
     
    23602360
    23612361
    2362 int RTCRestPolyDataObject::resetToDefault()
     2362int RTCRestPolyDataObject::resetToDefault() RT_NOEXCEPT
    23632363{
    23642364    return RTCRestDataObject::resetToDefault();
     
    23662366
    23672367
    2368 bool RTCRestPolyDataObject::isChild() const
     2368bool RTCRestPolyDataObject::isChild() const RT_NOEXCEPT
    23692369{
    23702370    return false;
     
    23722372
    23732373
    2374 RTCRestPolyDataObject &RTCRestPolyDataObject::operator=(RTCRestPolyDataObject const &a_rThat)
     2374RTCRestPolyDataObject &RTCRestPolyDataObject::operator=(RTCRestPolyDataObject const &a_rThat) RT_NOEXCEPT
    23752375{
    23762376    RTCRestDataObject::operator=(a_rThat);
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette