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> 60 #include <ome/common/xml/dom/NodeList.h> 62 #include <ome/xml/model/primitives/Quantity.h> 64 #include <ome/xml/model/BinData.h> 65 #include <ome/xml/model/External.h> 66 #include <ome/xml/model/detail/OMEModelObject.h> 67 #include <ome/xml/model/primitives/NonNegativeLong.h> 87 ome::compat::shared_ptr<Impl>
impl;
118 static ome::compat::shared_ptr< BinaryFile>
148 link (ome::compat::shared_ptr<Reference>& reference,
149 ome::compat::shared_ptr< ome::xml::model::OMEModelObject>&
object);
156 ome::compat::shared_ptr<std::string>
164 const ome::compat::shared_ptr<std::string>
173 setMIMEType (ome::compat::shared_ptr<std::string>& mimeType);
212 ome::compat::shared_ptr<ome::xml::model::External>
220 const ome::compat::shared_ptr<ome::xml::model::External>
229 setExternal (ome::compat::shared_ptr<ome::xml::model::External>& external);
236 ome::compat::shared_ptr<ome::xml::model::BinData>
244 const ome::compat::shared_ptr<ome::xml::model::BinData>
253 setBinData (ome::compat::shared_ptr<ome::xml::model::BinData>& binData);
276 #endif // OME_XML_MODEL_BINARYFILE_H OME model interface (abstract top-level container)
Definition: OMEModel.h:62
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:185
virtual common::xml::dom::Element asXMLElement(common::xml::dom::Document &document) const
Transform the object hierarchy rooted at this element to XML.
Definition: BinaryFile.cpp:361
void setBinData(ome::compat::shared_ptr< ome::xml::model::BinData > &binData)
Set the BinData property.
Definition: BinaryFile.cpp:355
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
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: BinaryFile.cpp:368
BinaryFile model object.
Definition: BinaryFile.h:82
const std::string & elementName() const
Get the element name of this model object.
Definition: BinaryFile.cpp:170
virtual ~BinaryFile()
Destructor.
Definition: BinaryFile.cpp:156
const std::string & getFileName() const
Get the FileName property.
Definition: BinaryFile.cpp:306
ome::compat::shared_ptr< std::string > getMIMEType()
Get the MIMEType property.
Definition: BinaryFile.cpp:271
Private implementation details of BinaryFile model object.
Definition: BinaryFile.cpp:74
OME model object (concrete implementation).
Definition: OMEModelObject.h:64
ome::compat::shared_ptr< ome::xml::model::BinData > getBinData()
Get the BinData property.
Definition: BinaryFile.cpp:341
ome::compat::shared_ptr< ome::xml::model::External > getExternal()
Get the External property.
Definition: BinaryFile.cpp:320
Open Microscopy Environment C++ implementation.
void setMIMEType(ome::compat::shared_ptr< std::string > &mimeType)
Set the MIMEType property.
Definition: BinaryFile.cpp:285
BinaryFile & operator=(const BinaryFile &)
Assignment operator (deleted).
void setExternal(ome::compat::shared_ptr< ome::xml::model::External > &external)
Set the External property.
Definition: BinaryFile.cpp:334
void setFileName(const std::string &fileName)
Set the FileName property.
Definition: BinaryFile.cpp:313
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: BinaryFile.cpp:256
BinaryFile()
Default constructor.
Definition: BinaryFile.cpp:141
void setSize(const ome::xml::model::primitives::NonNegativeLong &size)
Set the Size property.
Definition: BinaryFile.cpp:299
const ome::xml::model::primitives::NonNegativeLong & getSize() const
Get the Size property.
Definition: BinaryFile.cpp:292
ome::compat::shared_ptr< Impl > impl
Private implementation details.
Definition: BinaryFile.h:85
static ome::compat::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:431
A numeric type constrained to a subrange (or subranges) of its range limits.
Definition: ConstrainedNumeric.h:119