ome-common
5.5.0
|
Domain object model. More...
Classes | |
class | Base |
Base of the DOM wrapper hierarchy. More... | |
class | Document |
DOM Document wrapper. More... | |
class | Element |
DOM Element wrapper. More... | |
class | NamedNodeMap |
DOM NamedNodeMap wrapper. More... | |
class | Node |
DOM Node wrapper. More... | |
class | NodeList |
DOM NodeList wrapper. More... | |
struct | ParseParameters |
Parameters controlling DOM writing. More... | |
class | Wrapper |
Xerces DOM class wrapper. More... | |
struct | WriteParameters |
Parameters controlling DOM writing. More... | |
Functions | |
Document | createEmptyDocument (const std::string &qualifiedName) |
Construct an empty Document. More... | |
Document | createEmptyDocument (const std::string &namespaceURI, const std::string &qualifiedName) |
Construct an empty Document. More... | |
Document | createDocument (const boost::filesystem::path &file, EntityResolver &resolver, const ParseParameters ¶ms=ParseParameters()) |
Construct a Document from the content of a file. More... | |
Document | createDocument (const std::string &text, EntityResolver &resolver, const ParseParameters ¶ms=ParseParameters(), const std::string &id="membuf") |
Construct a Document from the content of a string. More... | |
Document | createDocument (std::istream &stream, EntityResolver &resolver, const ParseParameters ¶ms=ParseParameters(), const std::string &id="streambuf") |
Construct a Document from the content of an input stream. More... | |
void | writeNode (xercesc::DOMNode &node, const boost::filesystem::path &file, const WriteParameters ¶ms=WriteParameters()) |
Write a Node to a file. More... | |
void | writeNode (xercesc::DOMNode &node, std::ostream &stream, const WriteParameters ¶ms=WriteParameters()) |
Write a Node to a stream. More... | |
void | writeNode (xercesc::DOMNode &node, std::string &text, const WriteParameters ¶ms=WriteParameters()) |
Write a Node to a stream. More... | |
void | writeNode (Node &node, const boost::filesystem::path &file, const WriteParameters ¶ms=WriteParameters()) |
Write a Node to a file. More... | |
void | writeNode (Node &node, std::ostream &stream, const WriteParameters ¶ms=WriteParameters()) |
Write a Node to a stream. More... | |
void | writeNode (Node &node, std::string &text, const WriteParameters ¶ms=WriteParameters()) |
Write a Node to a stream. More... | |
void | writeDocument (Document &document, const boost::filesystem::path &file, const WriteParameters ¶ms=WriteParameters()) |
Write a Document to a file. More... | |
void | writeDocument (Document &document, std::ostream &stream, const WriteParameters ¶ms=WriteParameters()) |
Write a Document to a stream. More... | |
void | writeDocument (Document &document, std::string &text, const WriteParameters ¶ms=WriteParameters()) |
Write a Document to a string. More... | |
Domain object model.
Document ome::common::xml::dom::createDocument | ( | const boost::filesystem::path & | file, |
EntityResolver & | resolver, | ||
const ParseParameters & | params = ParseParameters() |
||
) |
Construct a Document from the content of a file.
file | the file to read. |
resolver | the EntityResolver to use. |
params | XML parser parameters. |
Referenced by ome::common::xml::dom::ParseParameters::ParseParameters(), and ome::common::xml::EntityResolver::registerCatalog().
Document ome::common::xml::dom::createDocument | ( | const std::string & | text, |
EntityResolver & | resolver, | ||
const ParseParameters & | params = ParseParameters() , |
||
const std::string & | id = "membuf" |
||
) |
Construct a Document from the content of a string.
text | the string to use. |
resolver | the EntityResolver to use. |
params | XML parser parameters. |
id | document filename (for error reporting only). |
Document ome::common::xml::dom::createDocument | ( | std::istream & | stream, |
EntityResolver & | resolver, | ||
const ParseParameters & | params = ParseParameters() , |
||
const std::string & | id = "streambuf" |
||
) |
Construct a Document from the content of an input stream.
stream | the stream to read. |
resolver | the EntityResolver to use. |
params | XML parser parameters. |
id | document filename (for error reporting only). |
Document ome::common::xml::dom::createEmptyDocument | ( | const std::string & | qualifiedName | ) |
Construct an empty Document.
qualifiedName | the qualified name of the document type. |
Referenced by ome::common::xml::dom::ParseParameters::ParseParameters().
Document ome::common::xml::dom::createEmptyDocument | ( | const std::string & | namespaceURI, |
const std::string & | qualifiedName | ||
) |
void ome::common::xml::dom::writeDocument | ( | Document & | document, |
const boost::filesystem::path & | file, | ||
const WriteParameters & | params = WriteParameters() |
||
) |
Write a Document to a file.
document | the document to use. |
file | the file to write. |
params | XML output parameters. |
References ome::common::xml::dom::Wrapper< WrappedType, Parent >::get(), and writeNode().
Referenced by ome::common::xml::dom::WriteParameters::WriteParameters().
void ome::common::xml::dom::writeDocument | ( | Document & | document, |
std::ostream & | stream, | ||
const WriteParameters & | params = WriteParameters() |
||
) |
Write a Document to a stream.
document | the document to use. |
stream | the stream to write to. |
params | XML output parameters. |
References ome::common::xml::dom::Wrapper< WrappedType, Parent >::get(), and writeNode().
void ome::common::xml::dom::writeDocument | ( | Document & | document, |
std::string & | text, | ||
const WriteParameters & | params = WriteParameters() |
||
) |
Write a Document to a string.
document | the document to use. |
text | the string to store the text in. |
params | XML output parameters. |
References ome::common::xml::dom::Wrapper< WrappedType, Parent >::get(), and writeNode().
void ome::common::xml::dom::writeNode | ( | xercesc::DOMNode & | node, |
const boost::filesystem::path & | file, | ||
const WriteParameters & | params = WriteParameters() |
||
) |
Write a Node to a file.
node | the node to use. |
file | the file to write. |
params | XML output parameters. |
Referenced by writeDocument(), writeNode(), and ome::common::xml::dom::WriteParameters::WriteParameters().
void ome::common::xml::dom::writeNode | ( | xercesc::DOMNode & | node, |
std::ostream & | stream, | ||
const WriteParameters & | params = WriteParameters() |
||
) |
Write a Node to a stream.
node | the node to use. |
stream | the stream to write to. |
params | XML output parameters. |
void ome::common::xml::dom::writeNode | ( | xercesc::DOMNode & | node, |
std::string & | text, | ||
const WriteParameters & | params = WriteParameters() |
||
) |
Write a Node to a stream.
node | the node to use. |
text | the string to store the text in. |
params | XML output parameters. |
void ome::common::xml::dom::writeNode | ( | Node & | node, |
const boost::filesystem::path & | file, | ||
const WriteParameters & | params = WriteParameters() |
||
) |
Write a Node to a file.
node | the node to use. |
file | the file to write. |
params | XML output parameters. |
References ome::common::xml::dom::Wrapper< WrappedType, Parent >::get(), and writeNode().
void ome::common::xml::dom::writeNode | ( | Node & | node, |
std::ostream & | stream, | ||
const WriteParameters & | params = WriteParameters() |
||
) |
Write a Node to a stream.
node | the node to use. |
stream | the stream to write to. |
params | XML output parameters. |
References ome::common::xml::dom::Wrapper< WrappedType, Parent >::get(), and writeNode().
void ome::common::xml::dom::writeNode | ( | Node & | node, |
std::string & | text, | ||
const WriteParameters & | params = WriteParameters() |
||
) |
Write a Node to a stream.
node | the node to use. |
text | the string to store the text in. |
params | XML output parameters. |
References ome::common::xml::dom::Wrapper< WrappedType, Parent >::get(), and writeNode().