39 #ifndef OME_XML_MODEL_DETAIL_OMEMODELOBJECT_H 40 #define OME_XML_MODEL_DETAIL_OMEMODELOBJECT_H 44 #include <ome/xml/model/OMEModelObject.h> 111 link (ome::compat::shared_ptr<Reference>& reference,
112 ome::compat::shared_ptr< ::ome::xml::model::OMEModelObject>&
object);
123 static std::vector<common::xml::dom::Element>
125 const std::string& name);
152 const ome::compat::shared_ptr<const T>&
cmp;
174 return cmp && element && cmp == element;
186 return cmp && element && cmp == element;
198 ome::compat::shared_ptr<const T> shared_element(element);
199 return cmp && shared_element && cmp == shared_element;
211 ome::compat::shared_ptr<const T> shared_element(element);
212 return cmp && shared_element && cmp == shared_element;
226 template<
class C,
typename T>
229 const ome::compat::shared_ptr<T>& element)
231 return (std::find_if(container.begin(),
245 #endif // OME_XML_MODEL_DETAIL_OMEMODELOBJECT_H OME model interface (abstract top-level container)
Definition: OMEModel.h:62
logging::sources::severity_logger_mt< logging::trivial::severity_level > Logger
ome::common::Logger logger
Message logger.
Definition: OMEModelObject.h:237
virtual 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: OMEModelObject.cpp:90
bool validElementName(const std::string &name) const =0
Check if a given element name is valid for processing by this model object.
Definition: OMEModelObject.cpp:71
bool contains(const C &container, const ome::compat::shared_ptr< T > &element)
Check if a container contains a particular element.
Definition: OMEModelObject.h:228
OMEModelObject()
Constructor.
Definition: OMEModelObject.h:98
OME model object (concrete implementation).
Definition: OMEModelObject.h:64
OME model object interface.
Definition: OMEModelObject.h:77
static std::string stripNamespacePrefix(const std::string &value)
Strip the namespace prefix from a tag name.
Definition: OMEModelObject.cpp:126
virtual common::xml::dom::Element asXMLElementInternal(common::xml::dom::Document &document, common::xml::dom::Element &element) const =0
Transform the object hierarchy rooted at this element to XML.
Definition: OMEModelObject.cpp:77
Open Microscopy Environment C++ implementation.
const ome::compat::shared_ptr< const T > & cmp
The element to compare other elements with.
Definition: OMEModelObject.h:152
Comparison functor.
Definition: OMEModelObject.h:148
compare_element(const ome::compat::shared_ptr< const T > &cmp)
Constructor.
Definition: OMEModelObject.h:160
bool operator()(const ome::compat::shared_ptr< T > &element)
Compare element with another element.
Definition: OMEModelObject.h:172
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: OMEModelObject.cpp:84
static std::vector< common::xml::dom::Element > getChildrenByTagName(const common::xml::dom::Element &parent, const std::string &name)
Retrieve all the children of an element that have a given tag name.
Definition: OMEModelObject.cpp:97
virtual ~OMEModelObject()
Destructor.
Definition: OMEModelObject.cpp:59