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>
85 ome::compat::shared_ptr<Impl>
impl;
116 static ome::compat::shared_ptr< BinaryFile>
141 link (ome::compat::shared_ptr<Reference>& reference,
142 ome::compat::shared_ptr< ome::xml::model::OMEModelObject>&
object);
149 ome::compat::shared_ptr<std::string>
157 const ome::compat::shared_ptr<std::string>
166 setMIMEType (ome::compat::shared_ptr<std::string>& mimeType);
205 ome::compat::shared_ptr<ome::xml::model::External>
213 const ome::compat::shared_ptr<ome::xml::model::External>
222 setExternal (ome::compat::shared_ptr<ome::xml::model::External>& external);
229 ome::compat::shared_ptr<ome::xml::model::BinData>
237 const ome::compat::shared_ptr<ome::xml::model::BinData>
246 setBinData (ome::compat::shared_ptr<ome::xml::model::BinData>& binData);
270 #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:192
void setBinData(ome::compat::shared_ptr< ome::xml::model::BinData > &binData)
Set the BinData property.
Definition: BinaryFile.cpp:361
BinaryFile model object.
Definition: BinaryFile.h:80
const std::string & getXMLNamespace() const
Get the XML namespace for this model object.
Definition: BinaryFile.cpp:438
virtual ~BinaryFile()
Destructor.
Definition: BinaryFile.cpp:162
const ome::xml::model::primitives::NonNegativeLong & getSize() const
Get the Size property.
Definition: BinaryFile.cpp:298
ome::compat::shared_ptr< std::string > getMIMEType()
Get the MIMEType property.
Definition: BinaryFile.cpp:277
Private implementation details of BinaryFile model object.
Definition: BinaryFile.cpp:75
DOM Document wrapper.
Definition: Document.h:83
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:347
const std::string & getFileName() const
Get the FileName property.
Definition: BinaryFile.cpp:312
ome::compat::shared_ptr< ome::xml::model::External > getExternal()
Get the External property.
Definition: BinaryFile.cpp:326
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:375
void setMIMEType(ome::compat::shared_ptr< std::string > &mimeType)
Set the MIMEType property.
Definition: BinaryFile.cpp:291
const std::string & elementName() const
Get the element name of this model object.
Definition: BinaryFile.cpp:176
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:368
void setExternal(ome::compat::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
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:262
BinaryFile()
Default constructor.
Definition: BinaryFile.cpp:143
void setSize(const ome::xml::model::primitives::NonNegativeLong &size)
Set the Size property.
Definition: BinaryFile.cpp:305
bool validElementName(const std::string &name) const
Check if a given element name is valid for processing by this model object.
Definition: BinaryFile.cpp:183
ome::compat::shared_ptr< Impl > impl
Private implementation details.
Definition: BinaryFile.h:83
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:167
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