|
MarkLogic Connect
MarkLogic Connect Client API Collection
|
An ITextDocumentContent instance that wraps a pugixml xml_parse object. (Derived from pugi::xml_document) More...
#include <PugiXmlDocumentContent.hpp>
Public Member Functions | |
| MLCLIENT_API | PugiXmlDocumentContent () |
| Default constructor. | |
| virtual MLCLIENT_API | ~PugiXmlDocumentContent () |
| Virtual destructor to allow subclassing. | |
pugixmldocumentcontent_overrides Overridden functions from base class | |
| MLCLIENT_API void | setContent (const pugi::xml_document &xml) |
| Sets the content of this document instance from a pugixml xml_document instance. More... | |
| MLCLIENT_API std::istream * | getStream () const override |
| Returns the content of this ITextDocumentContent as an istream. More... | |
| MLCLIENT_API void | setContent (std::string content) override |
| Sets the textual content for this document. More... | |
| MLCLIENT_API std::string | getContent () const override |
| Returns the content as a string. More... | |
| MLCLIENT_API std::string | getMimeType () const override |
| Returns the MIME type of this content. More... | |
| MLCLIENT_API void | setMimeType (const std::string &mt) override |
| Sets the MIME type of this content. More... | |
| MLCLIENT_API int | getLength () const override |
| Returns the number of characters in the content string. More... | |
| MLCLIENT_API IDocumentNavigator * | navigate (bool firstElementAsRoot=false) const override |
| Returns an IDocumentNavigator instance, as per the Document Traversal API. More... | |
pugixmldocumentcontent_functions These functions are new to this subclass. | |
| MLCLIENT_API const pugi::xml_document & | getXml () const |
| Returns the underlying pugixml xml_document object. More... | |
Public Member Functions inherited from mlclient::IDocumentContent | |
| MLCLIENT_API | IDocumentContent () |
| virtual MLCLIENT_API | ~IDocumentContent ()=0 |
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 |
An ITextDocumentContent instance that wraps a pugixml xml_parse object. (Derived from pugi::xml_document)
Used by the PugiXmlHelper class
|
overridevirtual |
Returns the content as a string.
Implements mlclient::IDocumentContent.
|
overridevirtual |
Returns the number of characters in the content string.
Implements mlclient::ITextDocumentContent.
|
overridevirtual |
Returns the MIME type of this content.
E.g. application/xml or similar form
Implements mlclient::IDocumentContent.
|
overridevirtual |
Returns the content of this ITextDocumentContent as an istream.
This allows streaming to a HTTP request of this string content.
Implements mlclient::IDocumentContent.
| MLCLIENT_API const pugi::xml_document& mlclient::utilities::PugiXmlDocumentContent::getXml | ( | ) | const |
Returns the underlying pugixml xml_document object.
|
overridevirtual |
Returns an IDocumentNavigator instance, as per the Document Traversal API.
| firstElementAsRoot | Whether the root XML element is the Document node (false) or the first full XML element (true). |
Implements mlclient::ITextDocumentContent.
| MLCLIENT_API void mlclient::utilities::PugiXmlDocumentContent::setContent | ( | const pugi::xml_document & | xml | ) |
Sets the content of this document instance from a pugixml xml_document instance.
| json | The pugixml xml_document instance to copy |
|
overridevirtual |
Sets the textual content for this document.
Assumes content string is non null
| [in] | The | string content to copy in to this object. |
Implements mlclient::ITextDocumentContent.
|
overridevirtual |
Sets the MIME type of this content.
E.g. application/json or application/xml
| [in] | mt | The mimetype string, not including encoding, for this Document Content. Assume always UTF-8 for MarkLogic Server) |
Implements mlclient::IDocumentContent.
1.8.10