39 #ifndef OME_XML_MODEL_OMEMODELOBJECT_H 40 #define OME_XML_MODEL_OMEMODELOBJECT_H 48 #include <boost/multi_index_container.hpp> 49 #include <boost/multi_index/identity.hpp> 50 #include <boost/multi_index/indexed_by.hpp> 51 #include <boost/multi_index/ordered_index.hpp> 52 #include <boost/multi_index/random_access_index.hpp> 54 #include <ome/common/xml/dom/Element.h> 55 #include <ome/common/xml/dom/Document.h> 83 template<
typename T,
template <
typename ElementType>
class Ptr>
87 typedef boost::multi_index_container<
89 boost::multi_index::indexed_by<
90 boost::multi_index::random_access<>,
91 boost::multi_index::ordered_unique<boost::multi_index::identity<Ptr<T>>, std::owner_less<Ptr<T>>>
113 virtual const std::string&
201 link (std::shared_ptr<Reference>& reference,
202 std::shared_ptr<OMEModelObject>&
object) = 0;
209 virtual const std::string&
217 #endif // OME_XML_MODEL_OMEMODELOBJECT_H OME model interface (abstract top-level container)
Definition: OMEModel.h:61
virtual ~OMEModelObject()
Destructor.
Definition: OMEModelObject.h:103
OMEModelObject()
Constructor.
Definition: OMEModelObject.h:97
boost::multi_index_container< Ptr< T >, boost::multi_index::indexed_by< boost::multi_index::random_access<>, boost::multi_index::ordered_unique< boost::multi_index::identity< Ptr< T > >, std::owner_less< Ptr< T > > > > > type
Multi-index container type.
Definition: OMEModelObject.h:93
OME model object interface.
Definition: OMEModelObject.h:76
virtual void update(const common::xml::dom::Element &element, OMEModel &model)=0
Update the object hierarchy recursively from an XML DOM tree.
Multi-index container for efficient ordered insertion and deletion of model object references...
Definition: OMEModelObject.h:84
Open Microscopy Environment C++ implementation.
virtual const std::string & getXMLNamespace() const =0
Get the XML namespace for this model object.
virtual bool validElementName(const std::string &name) const =0
Check if a given element name is valid for processing by this model object.
virtual const std::string & elementName() const =0
Get the element name of this model object.
virtual bool link(std::shared_ptr< Reference > &reference, std::shared_ptr< OMEModelObject > &object)=0
Link a given OME model object to this model object.
virtual SKIP common::xml::dom::Element asXMLElement(common::xml::dom::Document &document) const =0
Transform the object hierarchy rooted at this element to XML.