Helper methods to work with Document and IDocumentContent instances.
More...
#include <DocumentHelper.hpp>
Helper methods to work with Document and IDocumentContent instances.
- Since
- 8.0.2
- Date
- 2016-08-09
Returns an IDocumentContent* instance from a response. Retrieves content only, and only for a single document.
- Exceptions
-
- Parameters
-
resp | The MarkLogic C++ API Response object instance. |
- Returns
- An IDocumentContent* instance created from the Response.
static Document* mlclient::utilities::DocumentHelper::fromResponse |
( |
const Response & |
resp | ) |
|
|
static |
A very, very simple function to take the content from a response and wrap in a Document object.
- Note
- You should normally use contentFromResponse(resp) only. This function ONLY returns the content wrapped as a document for convenience. More sophisticated methods in the Connection class handle all fields and multi-part responses.
- Exceptions
-
- Parameters
-
resp | The MarkLogic C++ API Response object instance. |
- Returns
- An IDocumentContent* instance created from the Response.
static void mlclient::utilities::DocumentHelper::fromResponse |
( |
const Response & |
resp, |
|
|
Document & |
doc |
|
) |
| |
|
static |
A very, very simple function to take the content from a response and wrap in a Document object.
- Note
- You should normally use contentFromResponse(resp) only. This function ONLY returns the content wrapped as a document for convenience. More sophisticated methods in the Connection class handle all fields and multi-part responses.
- Exceptions
-
- Parameters
-
The documentation for this class was generated from the following file: