Library: FastInfoset
Package: Writer
Header: Poco/FastInfoset/FISDocumentHandler.h
The FISDocumentHandler interface allows for setting and querying the vocabulatory used for a document.
Known Derived Classes: FastInfosetWriter
Member Functions: getDocumentVocabulary, setDocumentVocabulary, setExternalVocabulary, setWriteXMLDeclaration
virtual ~FISDocumentHandler();
Destroys the FISDocumentHandler.
virtual DocumentVocabulary & getDocumentVocabulary() = 0;
Returns the documentVocabulary.
virtual const DocumentVocabulary & getDocumentVocabulary() const = 0;
Returns the documentVocabulary as a const object.
virtual void setDocumentVocabulary(
const DocumentVocabulary & voc
) = 0;
Sets the documentVocabulary.
virtual void setExternalVocabulary(
const std::string & uri,
const DocumentVocabulary & voc
) = 0;
Sets the location of the external dictionary and its content. The content is required so that the writer can create a diff to the finally set initial vocabulary and encode only the difference.
virtual void setWriteXMLDeclaration(
bool val
) = 0;
Sets a boolean which defines if the xml declaration header should be written.