ome-xml  5.6.0
TiffData.h
1 /*
2  * #%L
3  * OME-XML C++ library for working with OME-XML metadata structures.
4  * %%
5  * Copyright © 2006 - 2016 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 
61 #include <ome/xml/model/primitives/Quantity.h>
62 
63 #include <ome/xml/model/Pixels.h>
64 #include <ome/xml/model/UUID.h>
65 #include <ome/xml/model/detail/OMEModelObject.h>
66 #include <ome/xml/model/primitives/NonNegativeInteger.h>
67 
68 namespace ome
69 {
70  namespace xml
71  {
72  namespace model
73  {
74 
75  // Forward declarations.
76  class OMEModel;
77 
82  {
83  private:
84  class Impl;
86  std::shared_ptr<Impl> impl;
87 
88  public:
90  TiffData();
91 
97  TiffData (const TiffData& copy);
98 
100  virtual
101  ~TiffData ();
102 
117  static std::shared_ptr<TiffData>
118  create(const common::xml::dom::Element& element,
120 
121  // Documented in superclass.
122  const std::string&
123  elementName() const;
124 
125  // Documented in superclass.
126  bool
127  validElementName(const std::string& name) const;
128 
130  TiffData&
131  operator= (const TiffData&) = delete;
133 
134  // -- OMEModelObject API methods --
135 
137  virtual void
138  update(const common::xml::dom::Element& element,
140 
141  public:
142  // -- TiffData API methods --
143 
145  bool
146  link (std::shared_ptr<Reference>& reference,
147  std::shared_ptr<ome::xml::model::OMEModelObject>& object);
148 
154  std::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
155  getIFD ();
156 
162  const std::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
163  getIFD () const;
164 
170  void
171  setIFD (std::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>& ifd);
172 
178  std::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
179  getPlaneCount ();
180 
186  const std::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
187  getPlaneCount () const;
188 
194  void
195  setPlaneCount (std::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>& planeCount);
196 
202  std::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
203  getFirstZ ();
204 
210  const std::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
211  getFirstZ () const;
212 
218  void
219  setFirstZ (std::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>& firstZ);
220 
226  std::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
227  getFirstC ();
228 
234  const std::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
235  getFirstC () const;
236 
242  void
243  setFirstC (std::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>& firstC);
244 
250  std::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
251  getFirstT ();
252 
258  const std::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
259  getFirstT () const;
260 
266  void
267  setFirstT (std::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>& firstT);
268 
274  std::shared_ptr<ome::xml::model::UUID>
275  getUUID ();
276 
282  const std::shared_ptr<ome::xml::model::UUID>
283  getUUID () const;
284 
290  void
291  setUUID (std::shared_ptr<ome::xml::model::UUID>& uuid);
292 
298  std::weak_ptr<ome::xml::model::Pixels>
299  getPixels ();
300 
306  const std::weak_ptr<ome::xml::model::Pixels>
307  getPixels () const;
308 
314  void
315  setPixels (std::weak_ptr<ome::xml::model::Pixels>& pixels_BackReference);
316 
317  protected:
318  // Documented in base class.
319  virtual void
321  common::xml::dom::Element& element) const;
322 
323  public:
324  // Documented in superclass.
325  const std::string&
326  getXMLNamespace() const;
327  };
328 
329  }
330  }
331 }
332 
333 #endif // OME_XML_MODEL_TIFFDATA_H
334 
335 /*
336  * Local Variables:
337  * mode:C++
338  * End:
339  */
OME model interface (abstract top-level container)
Definition: OMEModel.h:61
void setFirstT(std::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > &firstT)
Set the FirstT property.
Definition: TiffData.cpp:391
std::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > getFirstZ()
Get the FirstZ property.
Definition: TiffData.cpp:335
TiffData model object.
Definition: TiffData.h:81
void setFirstZ(std::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > &firstZ)
Set the FirstZ property.
Definition: TiffData.cpp:349
TiffData()
Default constructor.
Definition: TiffData.cpp:157
void setPixels(std::weak_ptr< ome::xml::model::Pixels > &pixels_BackReference)
Set the Pixels property.
Definition: TiffData.cpp:433
OME model object (concrete implementation).
Definition: OMEModelObject.h:64
bool link(std::shared_ptr< Reference > &reference, std::shared_ptr< ome::xml::model::OMEModelObject > &object)
Link a given OME model object to this model object.
Definition: TiffData.cpp:278
virtual ~TiffData()
Destructor.
Definition: TiffData.cpp:176
void setUUID(std::shared_ptr< ome::xml::model::UUID > &uuid)
Set the UUID property.
Definition: TiffData.cpp:412
std::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > getFirstC()
Get the FirstC property.
Definition: TiffData.cpp:356
virtual SKIP 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:203
bool validElementName(const std::string &name) const
Check if a given element name is valid for processing by this model object.
Definition: TiffData.cpp:197
const std::string & getXMLNamespace() const
Get the XML namespace for this model object.
Definition: TiffData.cpp:514
void setFirstC(std::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > &firstC)
Set the FirstC property.
Definition: TiffData.cpp:370
Open Microscopy Environment C++ implementation.
std::shared_ptr< Impl > impl
Private implementation details.
Definition: TiffData.h:84
Private implementation details of TiffData model object.
Definition: TiffData.cpp:72
std::shared_ptr< ome::xml::model::UUID > getUUID()
Get the UUID property.
Definition: TiffData.cpp:398
std::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > getPlaneCount()
Get the PlaneCount property.
Definition: TiffData.cpp:314
void setPlaneCount(std::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > &planeCount)
Set the PlaneCount property.
Definition: TiffData.cpp:328
virtual void 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:439
const std::string & elementName() const
Get the element name of this model object.
Definition: TiffData.cpp:190
void setIFD(std::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > &ifd)
Set the IFD property.
Definition: TiffData.cpp:307
static std::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:181
std::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > getFirstT()
Get the FirstT property.
Definition: TiffData.cpp:377
std::weak_ptr< ome::xml::model::Pixels > getPixels()
Get the Pixels property.
Definition: TiffData.cpp:419
std::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > getIFD()
Get the IFD property.
Definition: TiffData.cpp:293