46 #ifndef OME_XML_MODEL_BINARYFILE_H
47 #define OME_XML_MODEL_BINARYFILE_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/BinData.h>
64 #include <ome/xml/model/External.h>
65 #include <ome/xml/model/detail/OMEModelObject.h>
66 #include <ome/xml/model/primitives/NonNegativeLong.h>
86 std::shared_ptr<Impl>
impl;
117 static std::shared_ptr<BinaryFile>
146 link (std::shared_ptr<Reference>& reference,
147 std::shared_ptr<ome::xml::model::OMEModelObject>&
object);
154 std::shared_ptr<std::string>
162 const std::shared_ptr<std::string>
171 setMIMEType (std::shared_ptr<std::string>& mimeType);
210 std::shared_ptr<ome::xml::model::External>
218 const std::shared_ptr<ome::xml::model::External>
227 setExternal (std::shared_ptr<ome::xml::model::External>& external);
234 std::shared_ptr<ome::xml::model::BinData>
242 const std::shared_ptr<ome::xml::model::BinData>
251 setBinData (std::shared_ptr<ome::xml::model::BinData>& binData);
269 #endif // OME_XML_MODEL_BINARYFILE_H
OME model interface (abstract top-level container)
Definition: OMEModel.h:61
virtual SKIP void update(const common::xml::dom::Element &element, ome::xml::model::OMEModel &model)
Update the object hierarchy recursively from an XML DOM tree.
Definition: BinaryFile.cpp:191
BinaryFile model object.
Definition: BinaryFile.h:81
const std::string & getXMLNamespace() const
Get the XML namespace for this model object.
Definition: BinaryFile.cpp:424
virtual ~BinaryFile()
Destructor.
Definition: BinaryFile.cpp:164
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: BinaryFile.cpp:262
const ome::xml::model::primitives::NonNegativeLong & getSize() const
Get the Size property.
Definition: BinaryFile.cpp:298
Private implementation details of BinaryFile model object.
Definition: BinaryFile.cpp:74
std::shared_ptr< std::string > getMIMEType()
Get the MIMEType property.
Definition: BinaryFile.cpp:277
OME model object (concrete implementation).
Definition: OMEModelObject.h:64
const std::string & getFileName() const
Get the FileName property.
Definition: BinaryFile.cpp:312
void setBinData(std::shared_ptr< ome::xml::model::BinData > &binData)
Set the BinData property.
Definition: BinaryFile.cpp:361
const std::string & elementName() const
Get the element name of this model object.
Definition: BinaryFile.cpp:178
std::shared_ptr< Impl > impl
Private implementation details.
Definition: BinaryFile.h:84
std::shared_ptr< ome::xml::model::External > getExternal()
Get the External property.
Definition: BinaryFile.cpp:326
std::shared_ptr< ome::xml::model::BinData > getBinData()
Get the BinData property.
Definition: BinaryFile.cpp:347
void setExternal(std::shared_ptr< ome::xml::model::External > &external)
Set the External property.
Definition: BinaryFile.cpp:340
void setFileName(const std::string &fileName)
Set the FileName property.
Definition: BinaryFile.cpp:319
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: BinaryFile.cpp:367
BinaryFile()
Default constructor.
Definition: BinaryFile.cpp:145
void setSize(const ome::xml::model::primitives::NonNegativeLong &size)
Set the Size property.
Definition: BinaryFile.cpp:305
static std::shared_ptr< BinaryFile > create(const common::xml::dom::Element &element, ome::xml::model::OMEModel &model)
Create a BinaryFile model object from DOM element.
Definition: BinaryFile.cpp:169
bool validElementName(const std::string &name) const
Check if a given element name is valid for processing by this model object.
Definition: BinaryFile.cpp:185
A numeric type constrained to a subrange (or subranges) of its range limits.
Definition: ConstrainedNumeric.h:118
void setMIMEType(std::shared_ptr< std::string > &mimeType)
Set the MIMEType property.
Definition: BinaryFile.cpp:291