bioformats  5.1.3
Classes | Functions
ome::common::xml::dom Namespace Reference

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, const ParseParameters &params=ParseParameters())
 Construct a Document from the content of a file. More...
 
Document createDocument (const std::string &text, const ParseParameters &params=ParseParameters(), const std::string &id="membuf")
 Construct a Document from the content of a string. More...
 
Document createDocument (std::istream &stream, const ParseParameters &params=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 &params=WriteParameters())
 Write a Node to a file. More...
 
void writeNode (xercesc::DOMNode &node, std::ostream &stream, const WriteParameters &params=WriteParameters())
 Write a Node to a stream. More...
 
void writeNode (xercesc::DOMNode &node, std::string &text, const WriteParameters &params=WriteParameters())
 Write a Node to a stream. More...
 
void writeNode (Node &node, const boost::filesystem::path &file, const WriteParameters &params=WriteParameters())
 Write a Node to a file. More...
 
void writeNode (Node &node, std::ostream &stream, const WriteParameters &params=WriteParameters())
 Write a Node to a stream. More...
 
void writeNode (Node &node, std::string &text, const WriteParameters &params=WriteParameters())
 Write a Node to a stream. More...
 
void writeDocument (Document &document, const boost::filesystem::path &file, const WriteParameters &params=WriteParameters())
 Write a Document to a file. More...
 
void writeDocument (Document &document, std::ostream &stream, const WriteParameters &params=WriteParameters())
 Write a Document to a stream. More...
 
void writeDocument (Document &document, std::string &text, const WriteParameters &params=WriteParameters())
 Write a Document to a string. More...
 

Detailed Description

Domain object model.

Function Documentation

Document ome::common::xml::dom::createDocument ( const boost::filesystem::path &  file,
const ParseParameters params = ParseParameters() 
)

Construct a Document from the content of a file.

Parameters
filethe file to read.
paramsXML parser parameters.
Returns
the new Document.

Referenced by ome::xml::model::XMLAnnotation::asXMLElementInternal(), ome::common::xml::EntityResolver::AutoRegisterCatalog::AutoRegisterCatalog(), ome::bioformats::createOMEXMLMetadata(), ome::bioformats::getModulo(), ome::bioformats::getOriginalMetadata(), and ome::bioformats::validateXML().

+ Here is the caller graph for this function:

Document ome::common::xml::dom::createDocument ( const std::string &  text,
const ParseParameters params = ParseParameters(),
const std::string &  id = "membuf" 
)

Construct a Document from the content of a string.

Parameters
textthe string to use.
paramsXML parser parameters.
iddocument filename (for error reporting only).
Returns
the new Document.
Document ome::common::xml::dom::createDocument ( std::istream &  stream,
const ParseParameters params = ParseParameters(),
const std::string &  id = "streambuf" 
)

Construct a Document from the content of an input stream.

Parameters
streamthe stream to read.
paramsXML parser parameters.
iddocument filename (for error reporting only).
Returns
the new Document.
Document ome::common::xml::dom::createEmptyDocument ( const std::string &  qualifiedName)

Construct an empty Document.

Parameters
qualifiedNamethe qualified name of the document type.
Returns
the new Document.

Referenced by ome::xml::meta::OMEXMLMetadata::dumpXML(), and ome::xml::model::OriginalMetadataAnnotation::setMetadata().

+ Here is the caller graph for this function:

Document ome::common::xml::dom::createEmptyDocument ( const std::string &  namespaceURI,
const std::string &  qualifiedName 
)

Construct an empty Document.

Parameters
namespaceURIthe namespace URI of the root document element.
qualifiedNamethe qualified name of the document type.
Returns
the new Document.
void ome::common::xml::dom::writeDocument ( Document document,
const boost::filesystem::path &  file,
const WriteParameters params = WriteParameters() 
)

Write a Document to a file.

Parameters
documentthe document to use.
filethe file to write.
paramsXML output parameters.

References ome::common::xml::dom::Wrapper< WrappedType, Parent >::get(), and writeNode().

Referenced by ome::xml::meta::OMEXMLMetadata::dumpXML().

+ Here is the caller graph for this function:

void ome::common::xml::dom::writeDocument ( Document document,
std::ostream &  stream,
const WriteParameters params = WriteParameters() 
)

Write a Document to a stream.

Parameters
documentthe document to use.
streamthe stream to write to.
paramsXML 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.

Parameters
documentthe document to use.
textthe string to store the text in.
paramsXML 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.

Parameters
nodethe node to use.
filethe file to write.
paramsXML output parameters.

Referenced by ome::xml::model::OriginalMetadataAnnotation::setMetadata(), ome::xml::model::XMLAnnotation::update(), writeDocument(), and writeNode().

+ Here is the caller graph for this function:

void ome::common::xml::dom::writeNode ( xercesc::DOMNode &  node,
std::ostream &  stream,
const WriteParameters params = WriteParameters() 
)

Write a Node to a stream.

Parameters
nodethe node to use.
streamthe stream to write to.
paramsXML output parameters.
void ome::common::xml::dom::writeNode ( xercesc::DOMNode &  node,
std::string &  text,
const WriteParameters params = WriteParameters() 
)

Write a Node to a stream.

Parameters
nodethe node to use.
textthe string to store the text in.
paramsXML 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.

Parameters
nodethe node to use.
filethe file to write.
paramsXML 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.

Parameters
nodethe node to use.
streamthe stream to write to.
paramsXML 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.

Parameters
nodethe node to use.
textthe string to store the text in.
paramsXML output parameters.

References ome::common::xml::dom::Wrapper< WrappedType, Parent >::get(), and writeNode().