ome-xml  5.5.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 
133  private:
135  Laser&
136  operator= (const Laser&);
137 
138  public:
139  // -- OMEModelObject API methods --
140 
142  virtual void
143  update(const common::xml::dom::Element& element,
145 
146  public:
147  // -- Laser API methods --
148 
150  bool
151  link (std::shared_ptr<Reference>& reference,
152  std::shared_ptr<ome::xml::model::OMEModelObject>& object);
153 
159  std::shared_ptr<bool>
160  getPockelCell ();
161 
167  const std::shared_ptr<bool>
168  getPockelCell () const;
169 
175  void
176  setPockelCell (std::shared_ptr<bool>& pockelCell);
177 
183  std::shared_ptr<bool>
184  getTuneable ();
185 
191  const std::shared_ptr<bool>
192  getTuneable () const;
193 
199  void
200  setTuneable (std::shared_ptr<bool>& tuneable);
201 
207  std::shared_ptr<ome::xml::model::enums::LaserMedium>
208  getLaserMedium ();
209 
215  const std::shared_ptr<ome::xml::model::enums::LaserMedium>
216  getLaserMedium () const;
217 
223  void
224  setLaserMedium (std::shared_ptr<ome::xml::model::enums::LaserMedium>& laserMedium);
225 
231  std::shared_ptr<ome::xml::model::enums::Pulse>
232  getPulse ();
233 
239  const std::shared_ptr<ome::xml::model::enums::Pulse>
240  getPulse () const;
241 
247  void
248  setPulse (std::shared_ptr<ome::xml::model::enums::Pulse>& pulse);
249 
255  std::shared_ptr<ome::xml::model::primitives::Quantity<ome::xml::model::enums::UnitsLength, ome::xml::model::primitives::PositiveFloat > >&
256  getWavelength ();
257 
263  const std::shared_ptr<ome::xml::model::primitives::Quantity<ome::xml::model::enums::UnitsLength, ome::xml::model::primitives::PositiveFloat > >&
264  getWavelength () const;
265 
271  void
273 
279  std::shared_ptr<ome::xml::model::primitives::PositiveInteger>
281 
287  const std::shared_ptr<ome::xml::model::primitives::PositiveInteger>
289 
295  void
296  setFrequencyMultiplication (std::shared_ptr<ome::xml::model::primitives::PositiveInteger>& frequencyMultiplication);
297 
303  std::shared_ptr<ome::xml::model::enums::LaserType>
304  getType ();
305 
311  const std::shared_ptr<ome::xml::model::enums::LaserType>
312  getType () const;
313 
319  void
320  setType (std::shared_ptr<ome::xml::model::enums::LaserType>& type);
321 
327  std::shared_ptr<ome::xml::model::primitives::Quantity<ome::xml::model::enums::UnitsFrequency > >&
329 
335  const std::shared_ptr<ome::xml::model::primitives::Quantity<ome::xml::model::enums::UnitsFrequency > >&
336  getRepetitionRate () const;
337 
343  void
345 
352  std::weak_ptr<ome::xml::model::LightSource>
353  getLinkedPump ();
354 
361  const std::weak_ptr<ome::xml::model::LightSource>
362  getLinkedPump () const;
363 
369  void
370  linkPump (std::shared_ptr<ome::xml::model::LightSource>& pump);
371 
381  void
382  unlinkPump (std::shared_ptr<ome::xml::model::LightSource>& pump);
383 
384  const std::string&
385  getLightSourceType() const;
386 
387  protected:
388  // Documented in base class.
389  virtual void
391  common::xml::dom::Element& element) const;
392 
393  public:
394  // Documented in superclass.
395  const std::string&
396  getXMLNamespace() const;
397  };
398 
399  }
400  }
401 }
402 
403 #endif // OME_XML_MODEL_LASER_H
404 
405 /*
406  * Local Variables:
407  * mode:C++
408  * End:
409  */
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:467
virtual ~Laser()
Destructor.
Definition: Laser.cpp:187
std::shared_ptr< ome::xml::model::primitives::PositiveInteger > getFrequencyMultiplication()
Get the FrequencyMultiplication property.
Definition: Laser.cpp:446
void setFrequencyMultiplication(std::shared_ptr< ome::xml::model::primitives::PositiveInteger > &frequencyMultiplication)
Set the FrequencyMultiplication property.
Definition: Laser.cpp:460
void setPockelCell(std::shared_ptr< bool > &pockelCell)
Set the PockelCell property.
Definition: Laser.cpp:355
std::weak_ptr< ome::xml::model::LightSource > getLinkedPump()
Get linked Pump.
Definition: Laser.cpp:509
std::shared_ptr< bool > getTuneable()
Get the Tuneable property.
Definition: Laser.cpp:362
void setTuneable(std::shared_ptr< bool > &tuneable)
Set the Tuneable property.
Definition: Laser.cpp:376
const std::string & getXMLNamespace() const
Get the XML namespace for this model object.
Definition: Laser.cpp:656
bool validElementName(const std::string &name) const
Check if a given element name is valid for processing by this model object.
Definition: Laser.cpp:208
std::shared_ptr< ome::xml::model::enums::LaserMedium > getLaserMedium()
Get the LaserMedium property.
Definition: Laser.cpp:383
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:425
Laser & operator=(const Laser &)
Assignment operator (deleted).
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:439
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: Laser.cpp:214
std::shared_ptr< ome::xml::model::enums::Pulse > getPulse()
Get the Pulse property.
Definition: Laser.cpp:404
void setPulse(std::shared_ptr< ome::xml::model::enums::Pulse > &pulse)
Set the Pulse property.
Definition: Laser.cpp:418
void linkPump(std::shared_ptr< ome::xml::model::LightSource > &pump)
Link Pump.
Definition: Laser.cpp:522
const std::string & getLightSourceType() const
Get the LightSource type.
Definition: Laser.cpp:537
std::shared_ptr< bool > getPockelCell()
Get the PockelCell property.
Definition: Laser.cpp:341
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:316
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:488
Laser()
Default constructor.
Definition: Laser.cpp:172
void unlinkPump(std::shared_ptr< ome::xml::model::LightSource > &pump)
Unlink Pump.
Definition: Laser.cpp:528
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:192
void setLaserMedium(std::shared_ptr< ome::xml::model::enums::LaserMedium > &laserMedium)
Set the LaserMedium property.
Definition: Laser.cpp:397
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:544
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:481
void setRepetitionRate(const std::shared_ptr< ome::xml::model::primitives::Quantity< ome::xml::model::enums::UnitsFrequency > > &repetitionRate)
Set the RepetitionRate property.
Definition: Laser.cpp:502
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:201