46 #ifndef OME_XML_MODEL_MAPANNOTATION_H
47 #define OME_XML_MODEL_MAPANNOTATION_H
57 #include <ome/common/xml/dom/Document.h>
58 #include <ome/common/xml/dom/Element.h>
59 #include <ome/common/xml/dom/Node.h>
61 #include <ome/xml/model/primitives/Quantity.h>
63 #include <ome/xml/model/Annotation.h>
64 #include <ome/xml/model/StructuredAnnotations.h>
65 #include <ome/xml/model/primitives/OrderedMultimap.h>
85 std::shared_ptr<Impl>
impl;
116 static std::shared_ptr<MapAnnotation>
146 link (std::shared_ptr<Reference>& reference,
147 std::shared_ptr<ome::xml::model::OMEModelObject>&
object);
170 std::weak_ptr<ome::xml::model::StructuredAnnotations>
178 const std::weak_ptr<ome::xml::model::StructuredAnnotations>
187 setStructuredAnnotations (std::weak_ptr<ome::xml::model::StructuredAnnotations>& structuredAnnotations_BackReference);
205 #endif // OME_XML_MODEL_MAPANNOTATION_H
OME model interface (abstract top-level container)
Definition: OMEModel.h:61
void setValue(const ome::xml::model::primitives::OrderedMultimap &value)
Set the Value property.
Definition: MapAnnotation.cpp:225
MapAnnotation model object.
Definition: MapAnnotation.h:80
virtual ~MapAnnotation()
Destructor.
Definition: MapAnnotation.cpp:132
virtual void asXMLElementInternal(common::xml::dom::Document &document, common::xml::dom::Element &element) const
Transform the object hierarchy rooted at this element to XML.
Definition: MapAnnotation.cpp:252
void setStructuredAnnotations(std::weak_ptr< ome::xml::model::StructuredAnnotations > &structuredAnnotations_BackReference)
Set the StructuredAnnotations property.
Definition: MapAnnotation.cpp:246
const std::string & elementName() const
Get the element name of this model object.
Definition: MapAnnotation.cpp:146
std::shared_ptr< Impl > impl
Private implementation details.
Definition: MapAnnotation.h:83
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: MapAnnotation.cpp:159
bool link(std::shared_ptr< Reference > &reference, std::shared_ptr< ome::xml::model::OMEModelObject > &object)
Link a given OME model object to this model object.
Definition: MapAnnotation.cpp:203
Annotation model object.
Definition: Annotation.h:100
static std::shared_ptr< MapAnnotation > create(const common::xml::dom::Element &element, ome::xml::model::OMEModel &model)
Create a MapAnnotation model object from DOM element.
Definition: MapAnnotation.cpp:137
std::weak_ptr< ome::xml::model::StructuredAnnotations > getStructuredAnnotations()
Get the StructuredAnnotations property.
Definition: MapAnnotation.cpp:232
const std::string & getXMLNamespace() const
Get the XML namespace for this model object.
Definition: MapAnnotation.cpp:280
MapAnnotation & operator=(const MapAnnotation &)
Assignment operator (deleted).
Private implementation details of MapAnnotation model object.
Definition: MapAnnotation.cpp:71
boost::multi_index_container< ordered_map_value, boost::multi_index::indexed_by< boost::multi_index::random_access< boost::multi_index::tag< order_index > >, boost::multi_index::hashed_non_unique< boost::multi_index::tag< key_index >, boost::multi_index::member< ordered_map_value, std::string,&ordered_map_value::first > > > > OrderedMultimap
Map preserving insertion order.
Definition: OrderedMultimap.h:89
const ome::xml::model::primitives::OrderedMultimap & getValue() const
Get the Value property.
Definition: MapAnnotation.cpp:218
MapAnnotation()
Default constructor.
Definition: MapAnnotation.cpp:117
bool validElementName(const std::string &name) const
Check if a given element name is valid for processing by this model object.
Definition: MapAnnotation.cpp:153