VirtualBox

Changeset 74396 in vbox for trunk/include/iprt/cpp


Ignore:
Timestamp:
Sep 20, 2018 10:39:39 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
125220
Message:

IPRT/rest: Prepped for polymorphic body responses. bugref:9167

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/cpp/restclient.h

    r74387 r74396  
    590590
    591591    /**
    592      * Helper that does the deserializing of the response body.
    593      *
    594      * @param   a_pDst      The destination object for the body content.
    595      * @param   a_pchData   The body blob.
    596      * @param   a_cbData    The size of the body blob.
    597      */
    598     void deserializeBody(RTCRestObjectBase *a_pDst, const char *a_pchData, size_t a_cbData);
     592     * Helper that does the deserializing of the response body
     593     * via deserializeBodyFromJsonCursor().
     594     *
     595     * @param   a_pchData       The body blob.
     596     * @param   a_cbData        The size of the body blob.
     597     * @param   a_pszBodyName   The name of the body parameter.
     598     */
     599    void deserializeBody(const char *a_pchData, size_t a_cbData, const char *a_pszBodyName);
     600
     601    /**
     602     * Called by deserializeBody to do the actual body deserialization.
     603     *
     604     * @param   a_rCursor       The JSON cursor.
     605     */
     606    virtual void deserializeBodyFromJsonCursor(RTCRestJsonCursor const &a_rCursor);
    599607
    600608    /**
Note: See TracChangeset for help on using the changeset viewer.

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