46 #ifndef OME_XML_MODEL_EXTERNAL_H 47 #define OME_XML_MODEL_EXTERNAL_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> 60 #include <ome/common/xml/dom/NodeList.h> 62 #include <ome/xml/model/detail/OMEModelObject.h> 63 #include <ome/xml/model/enums/Compression.h> 83 ome::compat::shared_ptr<Impl>
impl;
114 static ome::compat::shared_ptr< External>
139 link (ome::compat::shared_ptr<Reference>& reference,
140 ome::compat::shared_ptr< ome::xml::model::OMEModelObject>&
object);
156 sethref (
const std::string& href);
163 ome::compat::shared_ptr<ome::xml::model::enums::Compression>
171 const ome::compat::shared_ptr<ome::xml::model::enums::Compression>
180 setCompression (ome::compat::shared_ptr<ome::xml::model::enums::Compression>& compression);
196 setSHA1 (
const std::string& sha1);
220 #endif // OME_XML_MODEL_EXTERNAL_H External model object.
Definition: External.h:78
OME model interface (abstract top-level container)
Definition: OMEModel.h:62
static ome::compat::shared_ptr< External > create(const common::xml::dom::Element &element, ome::xml::model::OMEModel &model)
Create a External model object from DOM element.
Definition: External.cpp:149
const std::string & getXMLNamespace() const
Get the XML namespace for this model object.
Definition: External.cpp:324
const std::string & elementName() const
Get the element name of this model object.
Definition: External.cpp:158
ome::compat::shared_ptr< ome::xml::model::enums::Compression > getCompression()
Get the Compression property.
Definition: External.cpp:237
OME model object (concrete implementation).
Definition: OMEModelObject.h:64
const std::string & gethref() const
Get the href property.
Definition: External.cpp:223
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: External.cpp:208
bool validElementName(const std::string &name) const
Check if a given element name is valid for processing by this model object.
Definition: External.cpp:165
Open Microscopy Environment C++ implementation.
External()
Default constructor.
Definition: External.cpp:125
void setCompression(ome::compat::shared_ptr< ome::xml::model::enums::Compression > &compression)
Set the Compression property.
Definition: External.cpp:251
ome::compat::shared_ptr< Impl > impl
Private implementation details.
Definition: External.h:81
void sethref(const std::string &href)
Set the href property.
Definition: External.cpp:230
void setSHA1(const std::string &sha1)
Set the SHA1 property.
Definition: External.cpp:265
virtual common::xml::dom::Element asXMLElement(common::xml::dom::Document &document) const
Transform the object hierarchy rooted at this element to XML.
Definition: External.cpp:272
virtual ~External()
Destructor.
Definition: External.cpp:144
const std::string & getSHA1() const
Get the SHA1 property.
Definition: External.cpp:258
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: External.cpp:279
Private implementation details of External model object.
Definition: External.cpp:71
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: External.cpp:174