bioformats  5.1.3
TiffData.h
1 /*
2  * #%L
3  * OME-XML C++ library for working with OME-XML metadata structures.
4  * %%
5  * Copyright © 2006 - 2015 Open Microscopy Environment:
6  * - Massachusetts Institute of Technology
7  * - National Institutes of Health
8  * - University of Dundee
9  * - Board of Regents of the University of Wisconsin-Madison
10  * - Glencoe Software, Inc.
11  * %%
12  * Redistribution and use in source and binary forms, with or without
13  * modification, are permitted provided that the following conditions are met:
14  *
15  * 1. Redistributions of source code must retain the above copyright notice,
16  * this list of conditions and the following disclaimer.
17  * 2. Redistributions in binary form must reproduce the above copyright notice,
18  * this list of conditions and the following disclaimer in the documentation
19  * and/or other materials provided with the distribution.
20  *
21  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
25  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31  * POSSIBILITY OF SUCH DAMAGE.
32  *
33  * The views and conclusions contained in the software and documentation are
34  * those of the authors and should not be interpreted as representing official
35  * policies, either expressed or implied, of any organization.
36  * #L%
37  */
38 
39 /*─────────────────────────────────────────────────────────────────────────────
40  *
41  * THIS IS AUTOMATICALLY GENERATED CODE. DO NOT MODIFY.
42  *
43  *─────────────────────────────────────────────────────────────────────────────
44  */
45 
46 #ifndef OME_XML_MODEL_TIFFDATA_H
47 #define OME_XML_MODEL_TIFFDATA_H
48 
49 #include <algorithm>
50 #include <list>
51 #include <stdexcept>
52 #include <string>
53 #include <vector>
54 
55 #include <ome/common/log.h>
56 
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>
61 
62 #include <ome/xml/model/Pixels.h>
63 #include <ome/xml/model/UUID.h>
64 #include <ome/xml/model/detail/OMEModelObject.h>
65 #include <ome/xml/model/primitives/NonNegativeInteger.h>
66 
67 namespace ome
68 {
69  namespace xml
70  {
71  namespace model
72  {
73 
74  // Forward declarations.
75  class OMEModel;
76 
81  {
82  private:
84  ome::compat::shared_ptr<ome::xml::model::primitives::NonNegativeInteger> ifd;
86  ome::compat::shared_ptr<ome::xml::model::primitives::NonNegativeInteger> planeCount;
88  ome::compat::shared_ptr<ome::xml::model::primitives::NonNegativeInteger> firstZ;
90  ome::compat::shared_ptr<ome::xml::model::primitives::NonNegativeInteger> firstC;
92  ome::compat::shared_ptr<ome::xml::model::primitives::NonNegativeInteger> firstT;
94  ome::compat::shared_ptr<ome::xml::model::UUID> uuid;
96  ome::compat::weak_ptr<ome::xml::model::Pixels> pixels;
97 
98  public:
100  TiffData ();
101 
107  TiffData (const TiffData& copy);
108 
110  virtual
111  ~TiffData ();
112 
113 
114 
129  static ome::compat::shared_ptr< TiffData>
130  create(const common::xml::dom::Element& element,
132 
133  // Documented in superclass.
134  const std::string&
135  elementName() const;
136 
137  // Documented in superclass.
138  bool
139  validElementName(const std::string& name) const;
140 
141 
142  // -- OMEModelObject API methods --
143 
145  virtual void
146  update(const common::xml::dom::Element& element,
148 
149  public:
150  // -- TiffData API methods --
151 
153  bool
154  link (ome::compat::shared_ptr<Reference>& reference,
155  ome::compat::shared_ptr< ome::xml::model::OMEModelObject>& object);
156 
162  ome::compat::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
163  getIFD ();
164 
170  const ome::compat::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
171  getIFD () const;
172 
178  void
179  setIFD (ome::compat::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>& ifd);
180 
186  ome::compat::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
187  getPlaneCount ();
188 
194  const ome::compat::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
195  getPlaneCount () const;
196 
202  void
203  setPlaneCount (ome::compat::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>& planeCount);
204 
210  ome::compat::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
211  getFirstZ ();
212 
218  const ome::compat::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
219  getFirstZ () const;
220 
226  void
227  setFirstZ (ome::compat::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>& firstZ);
228 
234  ome::compat::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
235  getFirstC ();
236 
242  const ome::compat::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
243  getFirstC () const;
244 
250  void
251  setFirstC (ome::compat::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>& firstC);
252 
258  ome::compat::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
259  getFirstT ();
260 
266  const ome::compat::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
267  getFirstT () const;
268 
274  void
275  setFirstT (ome::compat::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>& firstT);
276 
282  ome::compat::shared_ptr<ome::xml::model::UUID>
283  getUUID ();
284 
290  const ome::compat::shared_ptr<ome::xml::model::UUID>
291  getUUID () const;
292 
298  void
299  setUUID (ome::compat::shared_ptr<ome::xml::model::UUID>& uuid);
300 
306  ome::compat::weak_ptr<ome::xml::model::Pixels>
307  getPixels ();
308 
314  const ome::compat::weak_ptr<ome::xml::model::Pixels>
315  getPixels () const;
316 
322  void
323  setPixels (ome::compat::weak_ptr<ome::xml::model::Pixels>& pixels_BackReference);
324 
325 
328  asXMLElement (common::xml::dom::Document& document) const;
329 
330 
331  protected:
332  // Documented in base class.
335  common::xml::dom::Element& element) const;
336 
337  public:
338  // Documented in superclass.
339  const std::string&
340  getXMLNamespace() const;
341  };
342 
343  }
344  }
345 }
346 
347 #endif // OME_XML_MODEL_TIFFDATA_H
348 
349 /*
350  * Local Variables:
351  * mode:C++
352  * End:
353  */
OME model interface (abstract top-level container)
Definition: OMEModel.h:62
ome::compat::shared_ptr< ome::xml::model::UUID > uuid
UUID property.
Definition: TiffData.h:94
ome::compat::shared_ptr< ome::xml::model::UUID > getUUID()
Get the UUID property.
Definition: TiffData.cpp:370
ome::compat::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > getFirstT()
Get the FirstT property.
Definition: TiffData.cpp:349
TiffData model object.
Definition: TiffData.h:80
bool validElementName(const std::string &name) const
Check if a given element name is valid for processing by this model object.
Definition: TiffData.cpp:167
ome::compat::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > firstC
FirstC property.
Definition: TiffData.h:90
TiffData()
Default constructor.
Definition: TiffData.cpp:115
void setIFD(ome::compat::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > &ifd)
Set the IFD property.
Definition: TiffData.cpp:279
DOM Document wrapper.
Definition: Document.h:82
DOM Element wrapper.
Definition: Element.h:66
OME model object (concrete implementation).
Definition: OMEModelObject.h:64
virtual ~TiffData()
Destructor.
Definition: TiffData.cpp:146
void setPixels(ome::compat::weak_ptr< ome::xml::model::Pixels > &pixels_BackReference)
Set the Pixels property.
Definition: TiffData.cpp:405
const std::string & getXMLNamespace() const
Get the XML namespace for this model object.
Definition: TiffData.cpp:505
void setFirstZ(ome::compat::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > &firstZ)
Set the FirstZ property.
Definition: TiffData.cpp:321
ome::compat::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > firstT
FirstT property.
Definition: TiffData.h:92
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: TiffData.cpp:419
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: TiffData.cpp:176
ome::compat::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > firstZ
FirstZ property.
Definition: TiffData.h:88
ome::compat::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > getFirstZ()
Get the FirstZ property.
Definition: TiffData.cpp:307
ome::compat::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > getPlaneCount()
Get the PlaneCount property.
Definition: TiffData.cpp:286
Open Microscopy Environment C++ implementation.
Definition: CoreMetadata.cpp:40
void setUUID(ome::compat::shared_ptr< ome::xml::model::UUID > &uuid)
Set the UUID property.
Definition: TiffData.cpp:384
virtual common::xml::dom::Element asXMLElement(common::xml::dom::Document &document) const
Transform the object hierarchy rooted at this element to XML.
Definition: TiffData.cpp:412
void setFirstT(ome::compat::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > &firstT)
Set the FirstT property.
Definition: TiffData.cpp:363
ome::compat::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > getFirstC()
Get the FirstC property.
Definition: TiffData.cpp:328
const std::string & elementName() const
Get the element name of this model object.
Definition: TiffData.cpp:160
ome::compat::weak_ptr< ome::xml::model::Pixels > getPixels()
Get the Pixels property.
Definition: TiffData.cpp:391
void setFirstC(ome::compat::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > &firstC)
Set the FirstC property.
Definition: TiffData.cpp:342
void setPlaneCount(ome::compat::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > &planeCount)
Set the PlaneCount property.
Definition: TiffData.cpp:300
static ome::compat::shared_ptr< TiffData > create(const common::xml::dom::Element &element, ome::xml::model::OMEModel &model)
Create a TiffData model object from DOM element.
Definition: TiffData.cpp:151
Boost.Log compatibility.
ome::compat::weak_ptr< ome::xml::model::Pixels > pixels
Pixels_BackReference back reference.
Definition: TiffData.h:96
ome::compat::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > ifd
IFD property.
Definition: TiffData.h:84
ome::compat::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > getIFD()
Get the IFD property.
Definition: TiffData.cpp:265
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: TiffData.cpp:250
Xerces-C modern C++ wrapper.
Definition: Base.h:53
ome::compat::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > planeCount
PlaneCount property.
Definition: TiffData.h:86