ome-xml  5.6.0
TransmittanceRange.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_TRANSMITTANCERANGE_H
47 #define OME_XML_MODEL_TRANSMITTANCERANGE_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/detail/OMEModelObject.h>
64 #include <ome/xml/model/enums/UnitsLength.h>
65 #include <ome/xml/model/primitives/NonNegativeFloat.h>
66 #include <ome/xml/model/primitives/PercentFraction.h>
67 #include <ome/xml/model/primitives/PositiveFloat.h>
68 
69 namespace ome
70 {
71  namespace xml
72  {
73  namespace model
74  {
75 
76  // Forward declarations.
77  class OMEModel;
78 
83  {
84  private:
85  class Impl;
87  std::shared_ptr<Impl> impl;
88 
89  public:
92 
99 
101  virtual
103 
118  static std::shared_ptr<TransmittanceRange>
119  create(const common::xml::dom::Element& element,
121 
122  // Documented in superclass.
123  const std::string&
124  elementName() const;
125 
126  // Documented in superclass.
127  bool
128  validElementName(const std::string& name) const;
129 
132  operator= (const TransmittanceRange&) = delete;
134 
135  // -- OMEModelObject API methods --
136 
138  virtual void
139  update(const common::xml::dom::Element& element,
141 
142  public:
143  // -- TransmittanceRange 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::PercentFraction>
156  getTransmittance ();
157 
163  const std::shared_ptr<ome::xml::model::primitives::PercentFraction>
164  getTransmittance () const;
165 
171  void
172  setTransmittance (std::shared_ptr<ome::xml::model::primitives::PercentFraction>& transmittance);
173 
179  std::shared_ptr<ome::xml::model::primitives::Quantity<ome::xml::model::enums::UnitsLength, ome::xml::model::primitives::NonNegativeFloat > >&
181 
187  const std::shared_ptr<ome::xml::model::primitives::Quantity<ome::xml::model::enums::UnitsLength, ome::xml::model::primitives::NonNegativeFloat > >&
188  getCutInTolerance () const;
189 
195  void
197 
203  std::shared_ptr<ome::xml::model::primitives::Quantity<ome::xml::model::enums::UnitsLength, ome::xml::model::primitives::NonNegativeFloat > >&
205 
211  const std::shared_ptr<ome::xml::model::primitives::Quantity<ome::xml::model::enums::UnitsLength, ome::xml::model::primitives::NonNegativeFloat > >&
212  getCutOutTolerance () const;
213 
219  void
221 
227  std::shared_ptr<ome::xml::model::primitives::Quantity<ome::xml::model::enums::UnitsLength, ome::xml::model::primitives::PositiveFloat > >&
228  getCutIn ();
229 
235  const std::shared_ptr<ome::xml::model::primitives::Quantity<ome::xml::model::enums::UnitsLength, ome::xml::model::primitives::PositiveFloat > >&
236  getCutIn () const;
237 
243  void
245 
251  std::shared_ptr<ome::xml::model::primitives::Quantity<ome::xml::model::enums::UnitsLength, ome::xml::model::primitives::PositiveFloat > >&
252  getCutOut ();
253 
259  const std::shared_ptr<ome::xml::model::primitives::Quantity<ome::xml::model::enums::UnitsLength, ome::xml::model::primitives::PositiveFloat > >&
260  getCutOut () const;
261 
267  void
269 
270  protected:
271  // Documented in base class.
272  virtual void
274  common::xml::dom::Element& element) const;
275 
276  public:
277  // Documented in superclass.
278  const std::string&
279  getXMLNamespace() const;
280  };
281 
282  }
283  }
284 }
285 
286 #endif // OME_XML_MODEL_TRANSMITTANCERANGE_H
287 
288 /*
289  * Local Variables:
290  * mode:C++
291  * End:
292  */
OME model interface (abstract top-level container)
Definition: OMEModel.h:61
void setCutIn(const std::shared_ptr< ome::xml::model::primitives::Quantity< ome::xml::model::enums::UnitsLength, ome::xml::model::primitives::PositiveFloat > > &cutIn)
Set the CutIn property.
Definition: TransmittanceRange.cpp:363
std::shared_ptr< ome::xml::model::primitives::Quantity< ome::xml::model::enums::UnitsLength, ome::xml::model::primitives::PositiveFloat > > & getCutIn()
Get the CutIn property.
Definition: TransmittanceRange.cpp:349
const std::string & elementName() const
Get the element name of this model object.
Definition: TransmittanceRange.cpp:175
void setTransmittance(std::shared_ptr< ome::xml::model::primitives::PercentFraction > &transmittance)
Set the Transmittance property.
Definition: TransmittanceRange.cpp:300
void setCutOut(const std::shared_ptr< ome::xml::model::primitives::Quantity< ome::xml::model::enums::UnitsLength, ome::xml::model::primitives::PositiveFloat > > &cutOut)
Set the CutOut property.
Definition: TransmittanceRange.cpp:384
std::shared_ptr< ome::xml::model::primitives::Quantity< ome::xml::model::enums::UnitsLength, ome::xml::model::primitives::NonNegativeFloat > > & getCutOutTolerance()
Get the CutOutTolerance property.
Definition: TransmittanceRange.cpp:328
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: TransmittanceRange.cpp:271
Private implementation details of TransmittanceRange model object.
Definition: TransmittanceRange.cpp:71
OME model object (concrete implementation).
Definition: OMEModelObject.h:64
void setCutInTolerance(const std::shared_ptr< ome::xml::model::primitives::Quantity< ome::xml::model::enums::UnitsLength, ome::xml::model::primitives::NonNegativeFloat > > &cutInTolerance)
Set the CutInTolerance property.
Definition: TransmittanceRange.cpp:321
bool validElementName(const std::string &name) const
Check if a given element name is valid for processing by this model object.
Definition: TransmittanceRange.cpp:182
static std::shared_ptr< TransmittanceRange > create(const common::xml::dom::Element &element, ome::xml::model::OMEModel &model)
Create a TransmittanceRange model object from DOM element.
Definition: TransmittanceRange.cpp:166
Open Microscopy Environment C++ implementation.
TransmittanceRange()
Default constructor.
Definition: TransmittanceRange.cpp:142
std::shared_ptr< ome::xml::model::primitives::Quantity< ome::xml::model::enums::UnitsLength, ome::xml::model::primitives::PositiveFloat > > & getCutOut()
Get the CutOut property.
Definition: TransmittanceRange.cpp:370
virtual ~TransmittanceRange()
Destructor.
Definition: TransmittanceRange.cpp:161
std::shared_ptr< Impl > impl
Private implementation details.
Definition: TransmittanceRange.h:85
void setCutOutTolerance(const std::shared_ptr< ome::xml::model::primitives::Quantity< ome::xml::model::enums::UnitsLength, ome::xml::model::primitives::NonNegativeFloat > > &cutOutTolerance)
Set the CutOutTolerance property.
Definition: TransmittanceRange.cpp:342
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: TransmittanceRange.cpp:390
A quantity of a defined unit.
Definition: Quantity.h:57
std::shared_ptr< ome::xml::model::primitives::PercentFraction > getTransmittance()
Get the Transmittance property.
Definition: TransmittanceRange.cpp:286
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: TransmittanceRange.cpp:188
std::shared_ptr< ome::xml::model::primitives::Quantity< ome::xml::model::enums::UnitsLength, ome::xml::model::primitives::NonNegativeFloat > > & getCutInTolerance()
Get the CutInTolerance property.
Definition: TransmittanceRange.cpp:307
const std::string & getXMLNamespace() const
Get the XML namespace for this model object.
Definition: TransmittanceRange.cpp:457
TransmittanceRange model object.
Definition: TransmittanceRange.h:82