MarkLogic Connect
MarkLogic Connect Client API Collection
|
An overarching interface for a Text Document. More...
#include <DocumentContent.hpp>
Public Member Functions | |
virtual MLCLIENT_API void | setContent (std::string content)=0 |
Sets the textual content for this document. More... | |
virtual MLCLIENT_API int | getLength () const =0 |
Returns the number of characters in the content string. More... | |
virtual MLCLIENT_API IDocumentNavigator * | navigate (bool firstElementAsRoot=false) const =0 |
Returns a way to navigate the document. More... | |
Public Member Functions inherited from mlclient::IDocumentContent | |
MLCLIENT_API | IDocumentContent () |
virtual MLCLIENT_API | ~IDocumentContent ()=0 |
virtual MLCLIENT_API std::istream * | getStream () const =0 |
Returns the content of this IDocumentContent as an istream. More... | |
virtual MLCLIENT_API std::string | getContent () const =0 |
Returns the content of this IDocumentContent as a std::string. More... | |
virtual MLCLIENT_API std::string | getMimeType () const =0 |
Returns the MIME type of this content. More... | |
virtual MLCLIENT_API void | setMimeType (const std::string &mt)=0 |
Sets the MIME type of this content. More... | |
Additional Inherited Members | |
Static Public Attributes inherited from mlclient::IDocumentContent | |
static MLCLIENT_API const std::string | MIME_JSON |
static MLCLIENT_API const std::string | MIME_XML |
|
pure virtual |
Returns the number of characters in the content string.
Implemented in mlclient::GenericTextDocumentContent, mlclient::utilities::PugiXmlDocumentContent, and mlclient::utilities::CppRestJsonDocumentContent.
|
pure virtual |
Returns a way to navigate the document.
See IDocumentNavigator for details
Implemented in mlclient::GenericTextDocumentContent, mlclient::utilities::PugiXmlDocumentContent, and mlclient::utilities::CppRestJsonDocumentContent.
|
pure virtual |
Sets the textual content for this document.
Assumes content string is non null
[in] | The | string content to copy in to this object. |
Implemented in mlclient::GenericTextDocumentContent, mlclient::utilities::PugiXmlDocumentContent, and mlclient::utilities::CppRestJsonDocumentContent.