39 #ifndef OME_XML_MODEL_OMEMODELOBJECT_H 40 #define OME_XML_MODEL_OMEMODELOBJECT_H 47 #include <boost/multi_index_container.hpp> 48 #include <boost/multi_index/identity.hpp> 49 #include <boost/multi_index/indexed_by.hpp> 50 #include <boost/multi_index/ordered_index.hpp> 51 #include <boost/multi_index/random_access_index.hpp> 55 #include <ome/common/xml/dom/Element.h> 56 #include <ome/common/xml/dom/Document.h> 77 class OMEModelObject :
public ome::compat::enable_shared_from_this<OMEModelObject>
84 template<
typename T,
template <
typename ElementType>
class Ptr>
88 typedef boost::multi_index_container<
90 boost::multi_index::indexed_by<
91 boost::multi_index::random_access<>,
92 boost::multi_index::ordered_unique<boost::multi_index::identity<Ptr<T> >, ome::compat::owner_less<Ptr<T> > >
114 virtual const std::string&
189 link (ome::compat::shared_ptr<Reference>& reference,
190 ome::compat::shared_ptr<OMEModelObject>&
object) = 0;
197 virtual const std::string&
205 #endif // OME_XML_MODEL_OMEMODELOBJECT_H OME model interface (abstract top-level container)
Definition: OMEModel.h:62
virtual ~OMEModelObject()
Destructor.
Definition: OMEModelObject.h:104
OMEModelObject()
Constructor.
Definition: OMEModelObject.h:98
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 > >, ome::compat::owner_less< Ptr< T > > > > > type
Multi-index container type.
Definition: OMEModelObject.h:94
OME model object interface.
Definition: OMEModelObject.h:77
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:85
Open Microscopy Environment C++ implementation.
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 & getXMLNamespace() const =0
Get the XML namespace for this model object.
OMEModelObject & operator=(const OMEModelObject &)
Assignment operator (deleted).
virtual common::xml::dom::Element asXMLElement(common::xml::dom::Document &document) const =0
Transform the object hierarchy rooted at this element to XML.
virtual const std::string & elementName() const =0
Get the element name of this model object.
virtual bool link(ome::compat::shared_ptr< Reference > &reference, ome::compat::shared_ptr< OMEModelObject > &object)=0
Link a given OME model object to this model object.