46 #ifndef OME_XML_MODEL_LASER_H 47 #define OME_XML_MODEL_LASER_H 57 #include <ome/common/xml/dom/Document.h> 58 #include <ome/common/xml/dom/Element.h> 59 #include <ome/common/xml/dom/Node.h> 61 #include <ome/xml/model/primitives/Quantity.h> 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> 90 std::shared_ptr<Impl>
impl;
121 static std::shared_ptr<Laser>
151 link (std::shared_ptr<Reference>& reference,
152 std::shared_ptr<ome::xml::model::OMEModelObject>&
object);
159 std::shared_ptr<bool>
167 const std::shared_ptr<bool>
183 std::shared_ptr<bool>
191 const std::shared_ptr<bool>
207 std::shared_ptr<ome::xml::model::enums::LaserMedium>
215 const std::shared_ptr<ome::xml::model::enums::LaserMedium>
224 setLaserMedium (std::shared_ptr<ome::xml::model::enums::LaserMedium>& laserMedium);
231 std::shared_ptr<ome::xml::model::enums::Pulse>
239 const std::shared_ptr<ome::xml::model::enums::Pulse>
248 setPulse (std::shared_ptr<ome::xml::model::enums::Pulse>& pulse);
255 std::shared_ptr<ome::xml::model::primitives::Quantity<ome::xml::model::enums::UnitsLength, ome::xml::model::primitives::PositiveFloat > >&
263 const std::shared_ptr<ome::xml::model::primitives::Quantity<ome::xml::model::enums::UnitsLength, ome::xml::model::primitives::PositiveFloat > >&
279 std::shared_ptr<ome::xml::model::primitives::PositiveInteger>
287 const std::shared_ptr<ome::xml::model::primitives::PositiveInteger>
303 std::shared_ptr<ome::xml::model::enums::LaserType>
311 const std::shared_ptr<ome::xml::model::enums::LaserType>
320 setType (std::shared_ptr<ome::xml::model::enums::LaserType>& type);
327 std::shared_ptr<ome::xml::model::primitives::Quantity<ome::xml::model::enums::UnitsFrequency > >&
335 const std::shared_ptr<ome::xml::model::primitives::Quantity<ome::xml::model::enums::UnitsFrequency > >&
352 std::weak_ptr<ome::xml::model::LightSource>
361 const std::weak_ptr<ome::xml::model::LightSource>
370 linkPump (std::shared_ptr<ome::xml::model::LightSource>& pump);
382 unlinkPump (std::shared_ptr<ome::xml::model::LightSource>& pump);
403 #endif // OME_XML_MODEL_LASER_H 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