46 #ifndef OME_XML_MODEL_BINDATA_H
47 #define OME_XML_MODEL_BINDATA_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/Mask.h>
63 #include <ome/xml/model/Pixels.h>
64 #include <ome/xml/model/detail/OMEModelObject.h>
65 #include <ome/xml/model/enums/Compression.h>
66 #include <ome/xml/model/primitives/NonNegativeLong.h>
89 ome::compat::shared_ptr<ome::xml::model::enums::Compression>
compression;
91 ome::compat::weak_ptr<ome::xml::model::Pixels>
pixels;
93 ome::compat::weak_ptr<ome::xml::model::Mask>
mask;
126 static ome::compat::shared_ptr< BinData>
151 link (ome::compat::shared_ptr<Reference>& reference,
152 ome::compat::shared_ptr< ome::xml::model::OMEModelObject>&
object);
191 ome::compat::shared_ptr<ome::xml::model::enums::Compression>
199 const ome::compat::shared_ptr<ome::xml::model::enums::Compression>
208 setCompression (ome::compat::shared_ptr<ome::xml::model::enums::Compression>& compression);
215 ome::compat::weak_ptr<ome::xml::model::Pixels>
223 const ome::compat::weak_ptr<ome::xml::model::Pixels>
232 setPixels (ome::compat::weak_ptr<ome::xml::model::Pixels>& pixels_BackReference);
239 ome::compat::weak_ptr<ome::xml::model::Mask>
247 const ome::compat::weak_ptr<ome::xml::model::Mask>
256 setMask (ome::compat::weak_ptr<ome::xml::model::Mask>& mask_BackReference);
280 #endif // OME_XML_MODEL_BINDATA_H
OME model interface (abstract top-level container)
Definition: OMEModel.h:62
const std::string & getXMLNamespace() const
Get the XML namespace for this model object.
Definition: BinData.cpp:367
ome::compat::weak_ptr< ome::xml::model::Mask > getMask()
Get the Mask property.
Definition: BinData.cpp:290
ome::xml::model::primitives::NonNegativeLong length
Length property.
Definition: BinData.h:87
void setBigEndian(bool bigEndian)
Set the BigEndian property.
Definition: BinData.cpp:227
const ome::xml::model::primitives::NonNegativeLong & getLength() const
Get the Length property.
Definition: BinData.cpp:234
DOM Document wrapper.
Definition: Document.h:82
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: BinData.cpp:318
DOM Element wrapper.
Definition: Element.h:66
OME model object (concrete implementation).
Definition: OMEModelObject.h:64
void setMask(ome::compat::weak_ptr< ome::xml::model::Mask > &mask_BackReference)
Set the Mask property.
Definition: BinData.cpp:304
bool getBigEndian() const
Get the BigEndian property.
Definition: BinData.cpp:220
bool bigEndian
BigEndian property.
Definition: BinData.h:85
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: BinData.cpp:167
virtual ~BinData()
Destructor.
Definition: BinData.cpp:137
ome::compat::weak_ptr< ome::xml::model::Pixels > getPixels()
Get the Pixels property.
Definition: BinData.cpp:269
virtual common::xml::dom::Element asXMLElement(common::xml::dom::Document &document) const
Transform the object hierarchy rooted at this element to XML.
Definition: BinData.cpp:311
BinData()
Default constructor.
Definition: BinData.cpp:110
ome::compat::weak_ptr< ome::xml::model::Pixels > pixels
Pixels_BackReference back reference.
Definition: BinData.h:91
ome::compat::shared_ptr< ome::xml::model::enums::Compression > getCompression()
Get the Compression property.
Definition: BinData.cpp:248
void setLength(const ome::xml::model::primitives::NonNegativeLong &length)
Set the Length property.
Definition: BinData.cpp:241
Open Microscopy Environment C++ implementation.
Definition: CoreMetadata.cpp:40
ome::compat::shared_ptr< ome::xml::model::enums::Compression > compression
Compression property.
Definition: BinData.h:89
static ome::compat::shared_ptr< BinData > create(const common::xml::dom::Element &element, ome::xml::model::OMEModel &model)
Create a BinData model object from DOM element.
Definition: BinData.cpp:142
bool validElementName(const std::string &name) const
Check if a given element name is valid for processing by this model object.
Definition: BinData.cpp:158
void setPixels(ome::compat::weak_ptr< ome::xml::model::Pixels > &pixels_BackReference)
Set the Pixels property.
Definition: BinData.cpp:283
BinData model object.
Definition: BinData.h:81
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: BinData.cpp:205
ome::compat::weak_ptr< ome::xml::model::Mask > mask
Mask_BackReference back reference.
Definition: BinData.h:93
const std::string & elementName() const
Get the element name of this model object.
Definition: BinData.cpp:151
void setCompression(ome::compat::shared_ptr< ome::xml::model::enums::Compression > &compression)
Set the Compression property.
Definition: BinData.cpp:262
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