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> 61 #include <ome/xml/model/primitives/Quantity.h> 63 #include <ome/xml/model/detail/OMEModelObject.h> 64 #include <ome/xml/model/enums/Compression.h> 84 std::shared_ptr<Impl>
impl;
115 static std::shared_ptr<External>
145 link (std::shared_ptr<Reference>& reference,
146 std::shared_ptr<ome::xml::model::OMEModelObject>&
object);
162 sethref (
const std::string& href);
169 std::shared_ptr<ome::xml::model::enums::Compression>
177 const std::shared_ptr<ome::xml::model::enums::Compression>
186 setCompression (std::shared_ptr<ome::xml::model::enums::Compression>& compression);
202 setSHA1 (
const std::string& sha1);
220 #endif // OME_XML_MODEL_EXTERNAL_H External model object.
Definition: External.h:79
std::shared_ptr< ome::xml::model::enums::Compression > getCompression()
Get the Compression property.
Definition: External.cpp:230
OME model interface (abstract top-level container)
Definition: OMEModel.h:61
const std::string & getSHA1() const
Get the SHA1 property.
Definition: External.cpp:251
OME model object (concrete implementation).
Definition: OMEModelObject.h:64
const std::string & getXMLNamespace() const
Get the XML namespace for this model object.
Definition: External.cpp:305
static std::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:144
Open Microscopy Environment C++ implementation.
External()
Default constructor.
Definition: External.cpp:124
const std::string & gethref() const
Get the href property.
Definition: External.cpp:216
bool validElementName(const std::string &name) const
Check if a given element name is valid for processing by this model object.
Definition: External.cpp:160
void setCompression(std::shared_ptr< ome::xml::model::enums::Compression > &compression)
Set the Compression property.
Definition: External.cpp:244
External & operator=(const External &)
Assignment operator (deleted).
void sethref(const std::string &href)
Set the href property.
Definition: External.cpp:223
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: External.cpp:264
void setSHA1(const std::string &sha1)
Set the SHA1 property.
Definition: External.cpp:258
const std::string & elementName() const
Get the element name of this model object.
Definition: External.cpp:153
virtual ~External()
Destructor.
Definition: External.cpp:139
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: External.cpp:201
std::shared_ptr< Impl > impl
Private implementation details.
Definition: External.h:82
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:166