ome-xml  5.5.1
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 
129  private:
131  TiffData&
132  operator= (const TiffData&);
133 
134  public:
135  // -- OMEModelObject API methods --
136 
138  virtual void
139  update(const common::xml::dom::Element& element,
141 
142  public:
143  // -- TiffData API methods --
144 
146  bool
147  link (std::shared_ptr<Reference>& reference,
148  std::shared_ptr<ome::xml::model::OMEModelObject>& object);
149 
155  std::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
156  getIFD ();
157 
163  const std::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
164  getIFD () const;
165 
171  void
172  setIFD (std::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>& ifd);
173 
179  std::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
180  getPlaneCount ();
181 
187  const std::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
188  getPlaneCount () const;
189 
195  void
196  setPlaneCount (std::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>& planeCount);
197 
203  std::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
204  getFirstZ ();
205 
211  const std::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
212  getFirstZ () const;
213 
219  void
220  setFirstZ (std::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>& firstZ);
221 
227  std::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
228  getFirstC ();
229 
235  const std::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
236  getFirstC () const;
237 
243  void
244  setFirstC (std::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>& firstC);
245 
251  std::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
252  getFirstT ();
253 
259  const std::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
260  getFirstT () const;
261 
267  void
268  setFirstT (std::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>& firstT);
269 
275  std::shared_ptr<ome::xml::model::UUID>
276  getUUID ();
277 
283  const std::shared_ptr<ome::xml::model::UUID>
284  getUUID () const;
285 
291  void
292  setUUID (std::shared_ptr<ome::xml::model::UUID>& uuid);
293 
299  std::weak_ptr<ome::xml::model::Pixels>
300  getPixels ();
301 
307  const std::weak_ptr<ome::xml::model::Pixels>
308  getPixels () const;
309 
315  void
316  setPixels (std::weak_ptr<ome::xml::model::Pixels>& pixels_BackReference);
317 
318  protected:
319  // Documented in base class.
320  virtual void
322  common::xml::dom::Element& element) const;
323 
324  public:
325  // Documented in superclass.
326  const std::string&
327  getXMLNamespace() const;
328  };
329 
330  }
331  }
332 }
333 
334 #endif // OME_XML_MODEL_TIFFDATA_H
335 
336 /*
337  * Local Variables:
338  * mode:C++
339  * End:
340  */
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:383
std::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > getFirstZ()
Get the FirstZ property.
Definition: TiffData.cpp:327
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:341
TiffData()
Default constructor.
Definition: TiffData.cpp:153
void setPixels(std::weak_ptr< ome::xml::model::Pixels > &pixels_BackReference)
Set the Pixels property.
Definition: TiffData.cpp:425
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:270
virtual ~TiffData()
Destructor.
Definition: TiffData.cpp:168
void setUUID(std::shared_ptr< ome::xml::model::UUID > &uuid)
Set the UUID property.
Definition: TiffData.cpp:404
std::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > getFirstC()
Get the FirstC property.
Definition: TiffData.cpp:348
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:195
bool validElementName(const std::string &name) const
Check if a given element name is valid for processing by this model object.
Definition: TiffData.cpp:189
const std::string & getXMLNamespace() const
Get the XML namespace for this model object.
Definition: TiffData.cpp:506
void setFirstC(std::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > &firstC)
Set the FirstC property.
Definition: TiffData.cpp:362
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
TiffData & operator=(const TiffData &)
Assignment operator (deleted).
std::shared_ptr< ome::xml::model::UUID > getUUID()
Get the UUID property.
Definition: TiffData.cpp:390
std::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > getPlaneCount()
Get the PlaneCount property.
Definition: TiffData.cpp:306
void setPlaneCount(std::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > &planeCount)
Set the PlaneCount property.
Definition: TiffData.cpp:320
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:431
const std::string & elementName() const
Get the element name of this model object.
Definition: TiffData.cpp:182
void setIFD(std::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > &ifd)
Set the IFD property.
Definition: TiffData.cpp:299
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:173
std::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > getFirstT()
Get the FirstT property.
Definition: TiffData.cpp:369
std::weak_ptr< ome::xml::model::Pixels > getPixels()
Get the Pixels property.
Definition: TiffData.cpp:411
std::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > getIFD()
Get the IFD property.
Definition: TiffData.cpp:285