bioformats  5.1.3
DetectorSettings.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_DETECTORSETTINGS_H
47 #define OME_XML_MODEL_DETECTORSETTINGS_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/Detector.h>
63 #include <ome/xml/model/Settings.h>
64 #include <ome/xml/model/enums/Binning.h>
65 #include <ome/xml/model/primitives/PositiveInteger.h>
66 
67 namespace ome
68 {
69  namespace xml
70  {
71  namespace model
72  {
73 
74  // Forward declarations.
75  class OMEModel;
76 
80  class DetectorSettings : public Settings
81  {
82  private:
84  ome::compat::shared_ptr<double> zoom;
86  ome::compat::shared_ptr<ome::xml::model::enums::Binning> binning;
88  ome::compat::shared_ptr<ome::xml::model::primitives::PositiveInteger> integration;
90  ome::compat::shared_ptr<double> readOutRate;
92  ome::compat::shared_ptr<double> gain;
94  ome::compat::shared_ptr<double> offset;
96  std::string id;
98  ome::compat::shared_ptr<double> voltage;
100  ome::compat::weak_ptr<ome::xml::model::Detector> detector;
101 
102  public:
104  DetectorSettings ();
105 
111  DetectorSettings (const DetectorSettings& copy);
112 
114  virtual
116 
117 
118 
133  static ome::compat::shared_ptr< DetectorSettings>
134  create(const common::xml::dom::Element& element,
136 
137  // Documented in superclass.
138  const std::string&
139  elementName() const;
140 
141  // Documented in superclass.
142  bool
143  validElementName(const std::string& name) const;
144 
145 
146  // -- OMEModelObject API methods --
147 
149  virtual void
150  update(const common::xml::dom::Element& element,
152 
153  public:
154  // -- DetectorSettings API methods --
155 
157  bool
158  link (ome::compat::shared_ptr<Reference>& reference,
159  ome::compat::shared_ptr< ome::xml::model::OMEModelObject>& object);
160 
166  ome::compat::shared_ptr<double>
167  getZoom ();
168 
174  const ome::compat::shared_ptr<double>
175  getZoom () const;
176 
182  void
183  setZoom (ome::compat::shared_ptr<double>& zoom);
184 
190  ome::compat::shared_ptr<ome::xml::model::enums::Binning>
191  getBinning ();
192 
198  const ome::compat::shared_ptr<ome::xml::model::enums::Binning>
199  getBinning () const;
200 
206  void
207  setBinning (ome::compat::shared_ptr<ome::xml::model::enums::Binning>& binning);
208 
214  ome::compat::shared_ptr<ome::xml::model::primitives::PositiveInteger>
215  getIntegration ();
216 
222  const ome::compat::shared_ptr<ome::xml::model::primitives::PositiveInteger>
223  getIntegration () const;
224 
230  void
231  setIntegration (ome::compat::shared_ptr<ome::xml::model::primitives::PositiveInteger>& integration);
232 
238  ome::compat::shared_ptr<double>
239  getReadOutRate ();
240 
246  const ome::compat::shared_ptr<double>
247  getReadOutRate () const;
248 
254  void
255  setReadOutRate (ome::compat::shared_ptr<double>& readOutRate);
256 
262  ome::compat::shared_ptr<double>
263  getGain ();
264 
270  const ome::compat::shared_ptr<double>
271  getGain () const;
272 
278  void
279  setGain (ome::compat::shared_ptr<double>& gain);
280 
286  ome::compat::shared_ptr<double>
287  getOffset ();
288 
294  const ome::compat::shared_ptr<double>
295  getOffset () const;
296 
302  void
303  setOffset (ome::compat::shared_ptr<double>& offset);
304 
310  const std::string&
311  getID () const;
312 
318  void
319  setID (const std::string& id);
320 
326  ome::compat::shared_ptr<double>
327  getVoltage ();
328 
334  const ome::compat::shared_ptr<double>
335  getVoltage () const;
336 
342  void
343  setVoltage (ome::compat::shared_ptr<double>& voltage);
344 
350  ome::compat::weak_ptr<ome::xml::model::Detector>
351  getDetector ();
352 
358  const ome::compat::weak_ptr<ome::xml::model::Detector>
359  getDetector () const;
360 
366  void
367  setDetector (ome::compat::weak_ptr<ome::xml::model::Detector>& detector);
368 
369 
372  asXMLElement (common::xml::dom::Document& document) const;
373 
374 
375  protected:
376  // Documented in base class.
379  common::xml::dom::Element& element) const;
380 
381  public:
382  // Documented in superclass.
383  const std::string&
384  getXMLNamespace() const;
385  };
386 
387  }
388  }
389 }
390 
391 #endif // OME_XML_MODEL_DETECTORSETTINGS_H
392 
393 /*
394  * Local Variables:
395  * mode:C++
396  * End:
397  */
OME model interface (abstract top-level container)
Definition: OMEModel.h:62
void setReadOutRate(ome::compat::shared_ptr< double > &readOutRate)
Set the ReadOutRate property.
Definition: DetectorSettings.cpp:366
void setDetector(ome::compat::weak_ptr< ome::xml::model::Detector > &detector)
Set the Detector property.
Definition: DetectorSettings.cpp:464
ome::compat::shared_ptr< double > getReadOutRate()
Get the ReadOutRate property.
Definition: DetectorSettings.cpp:352
ome::compat::shared_ptr< double > getVoltage()
Get the Voltage property.
Definition: DetectorSettings.cpp:429
bool validElementName(const std::string &name) const
Check if a given element name is valid for processing by this model object.
Definition: DetectorSettings.cpp:177
Settings model object.
Definition: Settings.h:77
ome::compat::shared_ptr< double > getGain()
Get the Gain property.
Definition: DetectorSettings.cpp:373
const std::string & elementName() const
Get the element name of this model object.
Definition: DetectorSettings.cpp:170
ome::compat::shared_ptr< double > offset
Offset property.
Definition: DetectorSettings.h:94
void setZoom(ome::compat::shared_ptr< double > &zoom)
Set the Zoom property.
Definition: DetectorSettings.cpp:303
void setBinning(ome::compat::shared_ptr< ome::xml::model::enums::Binning > &binning)
Set the Binning property.
Definition: DetectorSettings.cpp:324
ome::compat::weak_ptr< ome::xml::model::Detector > getDetector()
Get the Detector property.
Definition: DetectorSettings.cpp:450
DOM Document wrapper.
Definition: Document.h:82
DOM Element wrapper.
Definition: Element.h:66
void setGain(ome::compat::shared_ptr< double > &gain)
Set the Gain property.
Definition: DetectorSettings.cpp:387
ome::compat::shared_ptr< double > getZoom()
Get the Zoom property.
Definition: DetectorSettings.cpp:289
ome::compat::shared_ptr< ome::xml::model::primitives::PositiveInteger > getIntegration()
Get the Integration property.
Definition: DetectorSettings.cpp:331
ome::compat::shared_ptr< ome::xml::model::enums::Binning > binning
Binning property.
Definition: DetectorSettings.h:86
void setIntegration(ome::compat::shared_ptr< ome::xml::model::primitives::PositiveInteger > &integration)
Set the Integration property.
Definition: DetectorSettings.cpp:345
virtual common::xml::dom::Element asXMLElement(common::xml::dom::Document &document) const
Transform the object hierarchy rooted at this element to XML.
Definition: DetectorSettings.cpp:471
ome::compat::shared_ptr< double > zoom
Zoom property.
Definition: DetectorSettings.h:84
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: DetectorSettings.cpp:274
Open Microscopy Environment C++ implementation.
Definition: CoreMetadata.cpp:40
DetectorSettings()
Default constructor.
Definition: DetectorSettings.cpp:121
DetectorSettings model object.
Definition: DetectorSettings.h:80
static ome::compat::shared_ptr< DetectorSettings > create(const common::xml::dom::Element &element, ome::xml::model::OMEModel &model)
Create a DetectorSettings model object from DOM element.
Definition: DetectorSettings.cpp:161
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: DetectorSettings.cpp:186
ome::compat::shared_ptr< ome::xml::model::enums::Binning > getBinning()
Get the Binning property.
Definition: DetectorSettings.cpp:310
void setID(const std::string &id)
Set the ID property.
Definition: DetectorSettings.cpp:422
const std::string & getXMLNamespace() const
Get the XML namespace for this model object.
Definition: DetectorSettings.cpp:588
ome::compat::shared_ptr< double > readOutRate
ReadOutRate property.
Definition: DetectorSettings.h:90
ome::compat::shared_ptr< double > getOffset()
Get the Offset property.
Definition: DetectorSettings.cpp:394
const std::string & getID() const
Get the ID property.
Definition: DetectorSettings.cpp:415
std::string id
ID property.
Definition: DetectorSettings.h:96
ome::compat::shared_ptr< double > voltage
Voltage property.
Definition: DetectorSettings.h:98
void setVoltage(ome::compat::shared_ptr< double > &voltage)
Set the Voltage property.
Definition: DetectorSettings.cpp:443
ome::compat::weak_ptr< ome::xml::model::Detector > detector
DetectorRef back reference.
Definition: DetectorSettings.h:100
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: DetectorSettings.cpp:478
Boost.Log compatibility.
ome::compat::shared_ptr< double > gain
Gain property.
Definition: DetectorSettings.h:92
virtual ~DetectorSettings()
Destructor.
Definition: DetectorSettings.cpp:156
void setOffset(ome::compat::shared_ptr< double > &offset)
Set the Offset property.
Definition: DetectorSettings.cpp:408
Xerces-C modern C++ wrapper.
Definition: Base.h:53
ome::compat::shared_ptr< ome::xml::model::primitives::PositiveInteger > integration
Integration property.
Definition: DetectorSettings.h:88