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:147
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:115
void setMap(const map_type &map)
Set the key-value pair mappings.
Definition: MapPairs.cpp:209
map_type & getMap()
Get the key-value pair mappings.
Definition: MapPairs.cpp:197
bool validElementName(const std::string &name) const
Check if a given element name is valid for processing by this model object.
Definition: MapPairs.cpp:107
OME model object (concrete implementation).
Definition: OMEModelObject.h:64
virtual ~MapPairs()
Destructor.
Definition: MapPairs.cpp:95
const std::string & elementName() const
Get the element name of this model object.
Definition: MapPairs.cpp:100
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:168
std::map< std::string, std::string > map_type
Type of map stored internally.
Definition: MapPairs.h:73
Open Microscopy Environment C++ implementation.
MapPairs()
Default constructor.
Definition: MapPairs.cpp:56
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:161
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:215