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/BinData.h>
63 #include <ome/xml/model/External.h>
64 #include <ome/xml/model/detail/OMEModelObject.h>
65 #include <ome/xml/model/primitives/NonNegativeLong.h>
90 ome::compat::shared_ptr<ome::xml::model::External>
external;
92 ome::compat::shared_ptr<ome::xml::model::BinData>
binData;
125 static ome::compat::shared_ptr< BinaryFile>
150 link (ome::compat::shared_ptr<Reference>& reference,
151 ome::compat::shared_ptr< ome::xml::model::OMEModelObject>&
object);
158 ome::compat::shared_ptr<std::string>
166 const ome::compat::shared_ptr<std::string>
175 setMIMEType (ome::compat::shared_ptr<std::string>& mimeType);
214 ome::compat::shared_ptr<ome::xml::model::External>
222 const ome::compat::shared_ptr<ome::xml::model::External>
231 setExternal (ome::compat::shared_ptr<ome::xml::model::External>& external);
238 ome::compat::shared_ptr<ome::xml::model::BinData>
246 const ome::compat::shared_ptr<ome::xml::model::BinData>
255 setBinData (ome::compat::shared_ptr<ome::xml::model::BinData>& binData);
279 #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:169
void setBinData(ome::compat::shared_ptr< ome::xml::model::BinData > &binData)
Set the BinData property.
Definition: BinaryFile.cpp:338
BinaryFile model object.
Definition: BinaryFile.h:80
const std::string & getXMLNamespace() const
Get the XML namespace for this model object.
Definition: BinaryFile.cpp:415
virtual ~BinaryFile()
Destructor.
Definition: BinaryFile.cpp:139
const ome::xml::model::primitives::NonNegativeLong & getSize() const
Get the Size property.
Definition: BinaryFile.cpp:275
ome::compat::shared_ptr< std::string > getMIMEType()
Get the MIMEType property.
Definition: BinaryFile.cpp:254
DOM Document wrapper.
Definition: Document.h:82
DOM Element wrapper.
Definition: Element.h:66
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:324
ome::compat::shared_ptr< std::string > mimeType
MIMEType property.
Definition: BinaryFile.h:84
ome::compat::shared_ptr< ome::xml::model::BinData > binData
BinData property.
Definition: BinaryFile.h:92
const std::string & getFileName() const
Get the FileName property.
Definition: BinaryFile.cpp:289
ome::compat::shared_ptr< ome::xml::model::External > external
External property.
Definition: BinaryFile.h:90
ome::compat::shared_ptr< ome::xml::model::External > getExternal()
Get the External property.
Definition: BinaryFile.cpp:303
Open Microscopy Environment C++ implementation.
Definition: CoreMetadata.cpp:40
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:352
void setMIMEType(ome::compat::shared_ptr< std::string > &mimeType)
Set the MIMEType property.
Definition: BinaryFile.cpp:268
std::string fileName
FileName property.
Definition: BinaryFile.h:88
ome::xml::model::primitives::NonNegativeLong size
Size property.
Definition: BinaryFile.h:86
const std::string & elementName() const
Get the element name of this model object.
Definition: BinaryFile.cpp:153
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:345
void setExternal(ome::compat::shared_ptr< ome::xml::model::External > &external)
Set the External property.
Definition: BinaryFile.cpp:317
void setFileName(const std::string &fileName)
Set the FileName property.
Definition: BinaryFile.cpp:296
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:239
BinaryFile()
Default constructor.
Definition: BinaryFile.cpp:112
void setSize(const ome::xml::model::primitives::NonNegativeLong &size)
Set the Size property.
Definition: BinaryFile.cpp:282
bool validElementName(const std::string &name) const
Check if a given element name is valid for processing by this model object.
Definition: BinaryFile.cpp:160
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:144
A numeric type constrained to a subrange (or subranges) of its range limits.
Definition: ConstrainedNumeric.h:119
Xerces-C modern C++ wrapper.
Definition: Base.h:53