39 #ifndef OME_XML_MODEL_MAPPAIRS_H
40 #define OME_XML_MODEL_MAPPAIRS_H
49 #include <ome/common/xml/dom/Document.h>
50 #include <ome/common/xml/dom/Element.h>
51 #include <ome/common/xml/dom/Node.h>
52 #include <ome/common/xml/dom/NodeList.h>
54 #include <ome/xml/model/detail/OMEModelObject.h>
73 typedef std::map<std::string, std::string>
map_type;
131 link (ome::compat::shared_ptr<Reference>& reference,
132 ome::compat::shared_ptr< ::ome::xml::model::OMEModelObject>&
object);
156 setMap (
const map_type& map);
178 #endif // OME_XML_MODEL_MAPPAIRS_H
OME model interface (abstract top-level container)
Definition: OMEModel.h:62
bool link(ome::compat::shared_ptr< Reference > &reference, ome::compat::shared_ptr< ::ome::xml::model::OMEModelObject > &object)
Link a given OME model object to this model object.
Definition: MapPairs.cpp:148
virtual void update(const common::xml::dom::Element &element,::ome::xml::model::OMEModel &model)
Update the object hierarchy recursively from an XML DOM tree.
Definition: MapPairs.cpp:116
void setMap(const map_type &map)
Set the key-value pair mappings.
Definition: MapPairs.cpp:210
Memory type substitution.
map_type & getMap()
Get the key-value pair mappings.
Definition: MapPairs.cpp:198
bool validElementName(const std::string &name) const
Check if a given element name is valid for processing by this model object.
Definition: MapPairs.cpp:108
DOM Document wrapper.
Definition: Document.h:83
DOM Element wrapper.
Definition: Element.h:66
OME model object (concrete implementation).
Definition: OMEModelObject.h:64
virtual ~MapPairs()
Destructor.
Definition: MapPairs.cpp:96
const std::string & elementName() const
Get the element name of this model object.
Definition: MapPairs.cpp:101
virtual common::xml::dom::Element asXMLElementInternal(common::xml::dom::Document &document, common::xml::dom::Element &element) const
Transform the object hierarchy rooted at this element to XML.
Definition: MapPairs.cpp:169
std::map< std::string, std::string > map_type
Type of map stored internally.
Definition: MapPairs.h:73
Open Microscopy Environment C++ implementation.
Definition: CoreMetadata.cpp:40
MapPairs()
Default constructor.
Definition: MapPairs.cpp:57
MapPairs model object.
Definition: MapPairs.h:69
virtual common::xml::dom::Element asXMLElement(common::xml::dom::Document &document) const
Transform the object hierarchy rooted at this element to XML.
Definition: MapPairs.cpp:162
map_type map
Key-value pair mappings.
Definition: MapPairs.h:77
const std::string & getXMLNamespace() const
Get the XML namespace for this model object.
Definition: MapPairs.cpp:216
Xerces-C modern C++ wrapper.
Definition: Base.h:53