ome-xml  5.6.0
Laser.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_LASER_H
47 #define OME_XML_MODEL_LASER_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/LightSource.h>
64 #include <ome/xml/model/enums/LaserMedium.h>
65 #include <ome/xml/model/enums/LaserType.h>
66 #include <ome/xml/model/enums/Pulse.h>
67 #include <ome/xml/model/enums/UnitsFrequency.h>
68 #include <ome/xml/model/enums/UnitsLength.h>
69 #include <ome/xml/model/primitives/PositiveFloat.h>
70 #include <ome/xml/model/primitives/PositiveInteger.h>
71 
72 namespace ome
73 {
74  namespace xml
75  {
76  namespace model
77  {
78 
79  // Forward declarations.
80  class OMEModel;
81 
85  class Laser : public LightSource
86  {
87  private:
88  class Impl;
90  std::shared_ptr<Impl> impl;
91 
92  public:
94  Laser();
95 
101  Laser (const Laser& copy);
102 
104  virtual
105  ~Laser ();
106 
121  static std::shared_ptr<Laser>
122  create(const common::xml::dom::Element& element,
124 
125  // Documented in superclass.
126  const std::string&
127  elementName() const;
128 
129  // Documented in superclass.
130  bool
131  validElementName(const std::string& name) const;
132 
134  Laser&
135  operator= (const Laser&) = delete;
137 
138  // -- OMEModelObject API methods --
139 
141  virtual void
142  update(const common::xml::dom::Element& element,
144 
145  public:
146  // -- Laser API methods --
147 
149  bool
150  link (std::shared_ptr<Reference>& reference,
151  std::shared_ptr<ome::xml::model::OMEModelObject>& object);
152 
158  std::shared_ptr<bool>
159  getPockelCell ();
160 
166  const std::shared_ptr<bool>
167  getPockelCell () const;
168 
174  void
175  setPockelCell (std::shared_ptr<bool>& pockelCell);
176 
182  std::shared_ptr<bool>
183  getTuneable ();
184 
190  const std::shared_ptr<bool>
191  getTuneable () const;
192 
198  void
199  setTuneable (std::shared_ptr<bool>& tuneable);
200 
206  std::shared_ptr<ome::xml::model::enums::LaserMedium>
207  getLaserMedium ();
208 
214  const std::shared_ptr<ome::xml::model::enums::LaserMedium>
215  getLaserMedium () const;
216 
222  void
223  setLaserMedium (std::shared_ptr<ome::xml::model::enums::LaserMedium>& laserMedium);
224 
230  std::shared_ptr<ome::xml::model::enums::Pulse>
231  getPulse ();
232 
238  const std::shared_ptr<ome::xml::model::enums::Pulse>
239  getPulse () const;
240 
246  void
247  setPulse (std::shared_ptr<ome::xml::model::enums::Pulse>& pulse);
248 
254  std::shared_ptr<ome::xml::model::primitives::Quantity<ome::xml::model::enums::UnitsLength, ome::xml::model::primitives::PositiveFloat > >&
255  getWavelength ();
256 
262  const std::shared_ptr<ome::xml::model::primitives::Quantity<ome::xml::model::enums::UnitsLength, ome::xml::model::primitives::PositiveFloat > >&
263  getWavelength () const;
264 
270  void
272 
278  std::shared_ptr<ome::xml::model::primitives::PositiveInteger>
280 
286  const std::shared_ptr<ome::xml::model::primitives::PositiveInteger>
288 
294  void
295  setFrequencyMultiplication (std::shared_ptr<ome::xml::model::primitives::PositiveInteger>& frequencyMultiplication);
296 
302  std::shared_ptr<ome::xml::model::enums::LaserType>
303  getType ();
304 
310  const std::shared_ptr<ome::xml::model::enums::LaserType>
311  getType () const;
312 
318  void
319  setType (std::shared_ptr<ome::xml::model::enums::LaserType>& type);
320 
326  std::shared_ptr<ome::xml::model::primitives::Quantity<ome::xml::model::enums::UnitsFrequency > >&
328 
334  const std::shared_ptr<ome::xml::model::primitives::Quantity<ome::xml::model::enums::UnitsFrequency > >&
335  getRepetitionRate () const;
336 
342  void
344 
351  std::weak_ptr<ome::xml::model::LightSource>
352  getLinkedPump ();
353 
360  const std::weak_ptr<ome::xml::model::LightSource>
361  getLinkedPump () const;
362 
368  void
369  linkPump (std::shared_ptr<ome::xml::model::LightSource>& pump);
370 
380  void
381  unlinkPump (std::shared_ptr<ome::xml::model::LightSource>& pump);
382 
383  const std::string&
384  getLightSourceType() const;
385 
386  protected:
387  // Documented in base class.
388  virtual void
390  common::xml::dom::Element& element) const;
391 
392  public:
393  // Documented in superclass.
394  const std::string&
395  getXMLNamespace() const;
396  };
397 
398  }
399  }
400 }
401 
402 #endif // OME_XML_MODEL_LASER_H
403 
404 /*
405  * Local Variables:
406  * mode:C++
407  * End:
408  */
OME model interface (abstract top-level container)
Definition: OMEModel.h:61
std::shared_ptr< ome::xml::model::enums::LaserType > getType()
Get the Type property.
Definition: Laser.cpp:475
virtual ~Laser()
Destructor.
Definition: Laser.cpp:195
std::shared_ptr< ome::xml::model::primitives::PositiveInteger > getFrequencyMultiplication()
Get the FrequencyMultiplication property.
Definition: Laser.cpp:454
void setFrequencyMultiplication(std::shared_ptr< ome::xml::model::primitives::PositiveInteger > &frequencyMultiplication)
Set the FrequencyMultiplication property.
Definition: Laser.cpp:468
void setPockelCell(std::shared_ptr< bool > &pockelCell)
Set the PockelCell property.
Definition: Laser.cpp:363
std::weak_ptr< ome::xml::model::LightSource > getLinkedPump()
Get linked Pump.
Definition: Laser.cpp:517
std::shared_ptr< bool > getTuneable()
Get the Tuneable property.
Definition: Laser.cpp:370
void setTuneable(std::shared_ptr< bool > &tuneable)
Set the Tuneable property.
Definition: Laser.cpp:384
const std::string & getXMLNamespace() const
Get the XML namespace for this model object.
Definition: Laser.cpp:664
bool validElementName(const std::string &name) const
Check if a given element name is valid for processing by this model object.
Definition: Laser.cpp:216
std::shared_ptr< ome::xml::model::enums::LaserMedium > getLaserMedium()
Get the LaserMedium property.
Definition: Laser.cpp:391
std::shared_ptr< ome::xml::model::primitives::Quantity< ome::xml::model::enums::UnitsLength, ome::xml::model::primitives::PositiveFloat > > & getWavelength()
Get the Wavelength property.
Definition: Laser.cpp:433
void setWavelength(const std::shared_ptr< ome::xml::model::primitives::Quantity< ome::xml::model::enums::UnitsLength, ome::xml::model::primitives::PositiveFloat > > &wavelength)
Set the Wavelength property.
Definition: Laser.cpp:447
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: Laser.cpp:222
std::shared_ptr< ome::xml::model::enums::Pulse > getPulse()
Get the Pulse property.
Definition: Laser.cpp:412
void setPulse(std::shared_ptr< ome::xml::model::enums::Pulse > &pulse)
Set the Pulse property.
Definition: Laser.cpp:426
void linkPump(std::shared_ptr< ome::xml::model::LightSource > &pump)
Link Pump.
Definition: Laser.cpp:530
const std::string & getLightSourceType() const
Get the LightSource type.
Definition: Laser.cpp:545
std::shared_ptr< bool > getPockelCell()
Get the PockelCell property.
Definition: Laser.cpp:349
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: Laser.cpp:324
Open Microscopy Environment C++ implementation.
std::shared_ptr< ome::xml::model::primitives::Quantity< ome::xml::model::enums::UnitsFrequency > > & getRepetitionRate()
Get the RepetitionRate property.
Definition: Laser.cpp:496
Laser()
Default constructor.
Definition: Laser.cpp:176
void unlinkPump(std::shared_ptr< ome::xml::model::LightSource > &pump)
Unlink Pump.
Definition: Laser.cpp:536
static std::shared_ptr< Laser > create(const common::xml::dom::Element &element, ome::xml::model::OMEModel &model)
Create a Laser model object from DOM element.
Definition: Laser.cpp:200
void setLaserMedium(std::shared_ptr< ome::xml::model::enums::LaserMedium > &laserMedium)
Set the LaserMedium property.
Definition: Laser.cpp:405
Laser model object.
Definition: Laser.h:85
std::shared_ptr< Impl > impl
Private implementation details.
Definition: Laser.h:88
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: Laser.cpp:552
A quantity of a defined unit.
Definition: Quantity.h:57
void setType(std::shared_ptr< ome::xml::model::enums::LaserType > &type)
Set the Type property.
Definition: Laser.cpp:489
void setRepetitionRate(const std::shared_ptr< ome::xml::model::primitives::Quantity< ome::xml::model::enums::UnitsFrequency > > &repetitionRate)
Set the RepetitionRate property.
Definition: Laser.cpp:510
Private implementation details of Laser model object.
Definition: Laser.cpp:77
LightSource model object.
Definition: LightSource.h:81
const std::string & elementName() const
Get the element name of this model object.
Definition: Laser.cpp:209