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>
147 link (std::shared_ptr<Reference>& reference,
148 std::shared_ptr<ome::xml::model::OMEModelObject>&
object);
155 std::shared_ptr<std::string>
163 const std::shared_ptr<std::string>
172 setMIMEType (std::shared_ptr<std::string>& mimeType);
211 std::shared_ptr<ome::xml::model::External>
219 const std::shared_ptr<ome::xml::model::External>
228 setExternal (std::shared_ptr<ome::xml::model::External>& external);
235 std::shared_ptr<ome::xml::model::BinData>
243 const std::shared_ptr<ome::xml::model::BinData>
252 setBinData (std::shared_ptr<ome::xml::model::BinData>& binData);
270 #endif // OME_XML_MODEL_BINARYFILE_H OME model interface (abstract top-level container)
Definition: OMEModel.h:61
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: BinaryFile.cpp:183
bool validElementName(const std::string &name) const
Check if a given element name is valid for processing by this model object.
Definition: BinaryFile.cpp:177
BinaryFile model object.
Definition: BinaryFile.h:81
const std::string & elementName() const
Get the element name of this model object.
Definition: BinaryFile.cpp:170
virtual ~BinaryFile()
Destructor.
Definition: BinaryFile.cpp:156
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:254
const std::string & getFileName() const
Get the FileName property.
Definition: BinaryFile.cpp:304
Private implementation details of BinaryFile model object.
Definition: BinaryFile.cpp:74
std::shared_ptr< std::string > getMIMEType()
Get the MIMEType property.
Definition: BinaryFile.cpp:269
OME model object (concrete implementation).
Definition: OMEModelObject.h:64
Open Microscopy Environment C++ implementation.
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:359
BinaryFile & operator=(const BinaryFile &)
Assignment operator (deleted).
void setBinData(std::shared_ptr< ome::xml::model::BinData > &binData)
Set the BinData property.
Definition: BinaryFile.cpp:353
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:318
std::shared_ptr< ome::xml::model::BinData > getBinData()
Get the BinData property.
Definition: BinaryFile.cpp:339
void setExternal(std::shared_ptr< ome::xml::model::External > &external)
Set the External property.
Definition: BinaryFile.cpp:332
void setFileName(const std::string &fileName)
Set the FileName property.
Definition: BinaryFile.cpp:311
BinaryFile()
Default constructor.
Definition: BinaryFile.cpp:141
void setSize(const ome::xml::model::primitives::NonNegativeLong &size)
Set the Size property.
Definition: BinaryFile.cpp:297
const ome::xml::model::primitives::NonNegativeLong & getSize() const
Get the Size property.
Definition: BinaryFile.cpp:290
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:161
const std::string & getXMLNamespace() const
Get the XML namespace for this model object.
Definition: BinaryFile.cpp:416
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:283