ome-xml  5.2.2
Filter.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_FILTER_H
47 #define OME_XML_MODEL_FILTER_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/primitives/Quantity.h>
63 
64 #include <ome/xml/model/Instrument.h>
65 #include <ome/xml/model/ManufacturerSpec.h>
66 #include <ome/xml/model/TransmittanceRange.h>
67 #include <ome/xml/model/enums/FilterType.h>
68 
69 namespace ome
70 {
71  namespace xml
72  {
73  namespace model
74  {
75 
76  // Forward declarations.
77  class Annotation;
78  class FilterSet;
79  class LightPath;
80  class OMEModel;
81 
85  class Filter : public ManufacturerSpec
86  {
87  private:
88  class Impl;
90  ome::compat::shared_ptr<Impl> impl;
91 
92  public:
94  Filter();
95 
101  Filter (const Filter& copy);
102 
104  virtual
105  ~Filter ();
106 
121  static ome::compat::shared_ptr< Filter>
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  Filter&
136  operator= (const Filter&);
137 
138  public:
139  // -- OMEModelObject API methods --
140 
142  virtual void
143  update(const common::xml::dom::Element& element,
145 
146  public:
147  // -- Filter API methods --
148 
150  bool
151  link (ome::compat::shared_ptr<Reference>& reference,
152  ome::compat::shared_ptr< ome::xml::model::OMEModelObject>& object);
153 
159  ome::compat::shared_ptr<std::string>
160  getFilterWheel ();
161 
167  const ome::compat::shared_ptr<std::string>
168  getFilterWheel () const;
169 
175  void
176  setFilterWheel (ome::compat::shared_ptr<std::string>& filterWheel);
177 
183  ome::compat::shared_ptr<ome::xml::model::enums::FilterType>
184  getType ();
185 
191  const ome::compat::shared_ptr<ome::xml::model::enums::FilterType>
192  getType () const;
193 
199  void
200  setType (ome::compat::shared_ptr<ome::xml::model::enums::FilterType>& type);
201 
207  const std::string&
208  getID () const;
209 
215  void
216  setID (const std::string& id);
217 
223  ome::compat::shared_ptr<ome::xml::model::TransmittanceRange>
225 
231  const ome::compat::shared_ptr<ome::xml::model::TransmittanceRange>
232  getTransmittanceRange () const;
233 
239  void
240  setTransmittanceRange (ome::compat::shared_ptr<ome::xml::model::TransmittanceRange>& transmittanceRange);
241 
249 
256  getLinkedAnnotationList () const;
257 
265  const ome::compat::weak_ptr<ome::xml::model::Annotation>&
267 
278  const ome::compat::weak_ptr<ome::xml::model::Annotation>&
280  const ome::compat::shared_ptr<ome::xml::model::Annotation>& annotation);
281 
292  bool
293  linkAnnotation (const ome::compat::shared_ptr<ome::xml::model::Annotation>& annotation);
294 
310  bool
311  unlinkAnnotation (const ome::compat::shared_ptr<ome::xml::model::Annotation>& annotation);
312 
318  ome::compat::weak_ptr<ome::xml::model::Instrument>
319  getInstrument ();
320 
326  const ome::compat::weak_ptr<ome::xml::model::Instrument>
327  getInstrument () const;
328 
334  void
335  setInstrument (ome::compat::weak_ptr<ome::xml::model::Instrument>& instrument_BackReference);
336 
344 
352 
360  const ome::compat::weak_ptr<ome::xml::model::FilterSet>&
362 
373  const ome::compat::weak_ptr<ome::xml::model::FilterSet>&
375  const ome::compat::shared_ptr<ome::xml::model::FilterSet>& filterSet_BackReference);
376 
387  bool
388  linkFilterSetExcitationFilter (const ome::compat::shared_ptr<ome::xml::model::FilterSet>& filterSet_BackReference);
389 
405  bool
406  unlinkFilterSetExcitationFilter (const ome::compat::shared_ptr<ome::xml::model::FilterSet>& filterSet_BackReference);
407 
415 
423 
431  const ome::compat::weak_ptr<ome::xml::model::FilterSet>&
433 
444  const ome::compat::weak_ptr<ome::xml::model::FilterSet>&
446  const ome::compat::shared_ptr<ome::xml::model::FilterSet>& filterSet_BackReference);
447 
458  bool
459  linkFilterSetEmissionFilter (const ome::compat::shared_ptr<ome::xml::model::FilterSet>& filterSet_BackReference);
460 
476  bool
477  unlinkFilterSetEmissionFilter (const ome::compat::shared_ptr<ome::xml::model::FilterSet>& filterSet_BackReference);
478 
486 
494 
502  const ome::compat::weak_ptr<ome::xml::model::LightPath>&
504 
515  const ome::compat::weak_ptr<ome::xml::model::LightPath>&
517  const ome::compat::shared_ptr<ome::xml::model::LightPath>& lightPath_BackReference);
518 
529  bool
530  linkLightPathExcitationFilter (const ome::compat::shared_ptr<ome::xml::model::LightPath>& lightPath_BackReference);
531 
547  bool
548  unlinkLightPathExcitationFilter (const ome::compat::shared_ptr<ome::xml::model::LightPath>& lightPath_BackReference);
549 
557 
565 
573  const ome::compat::weak_ptr<ome::xml::model::LightPath>&
575 
586  const ome::compat::weak_ptr<ome::xml::model::LightPath>&
588  const ome::compat::shared_ptr<ome::xml::model::LightPath>& lightPath_BackReference);
589 
600  bool
601  linkLightPathEmissionFilter (const ome::compat::shared_ptr<ome::xml::model::LightPath>& lightPath_BackReference);
602 
618  bool
619  unlinkLightPathEmissionFilter (const ome::compat::shared_ptr<ome::xml::model::LightPath>& lightPath_BackReference);
620 
623  asXMLElement (common::xml::dom::Document& document) const;
624 
625 
626  protected:
627  // Documented in base class.
630  common::xml::dom::Element& element) const;
631 
632  public:
633  // Documented in superclass.
634  const std::string&
635  getXMLNamespace() const;
636  };
637 
638  }
639  }
640 }
641 
642 #endif // OME_XML_MODEL_FILTER_H
643 
644 /*
645  * Local Variables:
646  * mode:C++
647  * End:
648  */
OME model interface (abstract top-level container)
Definition: OMEModel.h:62
ome::compat::shared_ptr< Impl > impl
Private implementation details.
Definition: Filter.h:88
const ome::compat::weak_ptr< ome::xml::model::Annotation > & setLinkedAnnotation(OMEModelObject::indexed_container< ome::xml::model::Annotation, ome::compat::weak_ptr >::type::size_type index, const ome::compat::shared_ptr< ome::xml::model::Annotation > &annotation)
Set linked Annotation.
Definition: Filter.cpp:426
bool unlinkAnnotation(const ome::compat::shared_ptr< ome::xml::model::Annotation > &annotation)
Unlink Annotation.
Definition: Filter.cpp:450
OMEModelObject::indexed_container< ome::xml::model::FilterSet, ome::compat::weak_ptr >::type getLinkedFilterSetExcitationFilterList() const
Get the linked FilterSetExcitationFilter list.
Definition: Filter.cpp:495
Filter()
Default constructor.
Definition: Filter.cpp:180
const ome::compat::weak_ptr< ome::xml::model::FilterSet > & setLinkedFilterSetExcitationFilter(OMEModelObject::indexed_container< ome::xml::model::FilterSet, ome::compat::weak_ptr >::type::size_type index, const ome::compat::shared_ptr< ome::xml::model::FilterSet > &filterSet_BackReference)
Set linked FilterSetExcitationFilter.
Definition: Filter.cpp:507
ome::compat::shared_ptr< ome::xml::model::enums::FilterType > getType()
Get the Type property.
Definition: Filter.cpp:352
const ome::compat::weak_ptr< ome::xml::model::LightPath > & setLinkedLightPathEmissionFilter(OMEModelObject::indexed_container< ome::xml::model::LightPath, ome::compat::weak_ptr >::type::size_type index, const ome::compat::shared_ptr< ome::xml::model::LightPath > &lightPath_BackReference)
Set linked LightPathEmissionFilter.
Definition: Filter.cpp:681
const std::string & getXMLNamespace() const
Get the XML namespace for this model object.
Definition: Filter.cpp:816
void setTransmittanceRange(ome::compat::shared_ptr< ome::xml::model::TransmittanceRange > &transmittanceRange)
Set the TransmittanceRange property.
Definition: Filter.cpp:401
virtual ~Filter()
Destructor.
Definition: Filter.cpp:199
ome::compat::shared_ptr< std::string > getFilterWheel()
Get the FilterWheel property.
Definition: Filter.cpp:331
static ome::compat::shared_ptr< Filter > create(const common::xml::dom::Element &element, ome::xml::model::OMEModel &model)
Create a Filter model object from DOM element.
Definition: Filter.cpp:204
Filter & operator=(const Filter &)
Assignment operator (deleted).
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: Filter.cpp:300
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: Filter.cpp:727
OMEModelObject::indexed_container< ome::xml::model::FilterSet, ome::compat::weak_ptr >::type::size_type sizeOfLinkedFilterSetEmissionFilterList() const
Get size of linked FilterSetEmissionFilter list.
Definition: Filter.cpp:547
bool unlinkLightPathEmissionFilter(const ome::compat::shared_ptr< ome::xml::model::LightPath > &lightPath_BackReference)
Unlink LightPathEmissionFilter.
Definition: Filter.cpp:704
boost::multi_index_container< Ptr< T >, boost::multi_index::indexed_by< boost::multi_index::random_access<>, boost::multi_index::ordered_unique< boost::multi_index::identity< Ptr< T > >, ome::compat::owner_less< Ptr< T > > > > > type
Multi-index container type.
Definition: OMEModelObject.h:94
bool unlinkFilterSetExcitationFilter(const ome::compat::shared_ptr< ome::xml::model::FilterSet > &filterSet_BackReference)
Unlink FilterSetExcitationFilter.
Definition: Filter.cpp:530
const ome::compat::weak_ptr< ome::xml::model::LightPath > & setLinkedLightPathExcitationFilter(OMEModelObject::indexed_container< ome::xml::model::LightPath, ome::compat::weak_ptr >::type::size_type index, const ome::compat::shared_ptr< ome::xml::model::LightPath > &lightPath_BackReference)
Set linked LightPathExcitationFilter.
Definition: Filter.cpp:623
bool linkFilterSetExcitationFilter(const ome::compat::shared_ptr< ome::xml::model::FilterSet > &filterSet_BackReference)
Link FilterSetExcitationFilter.
Definition: Filter.cpp:517
bool unlinkFilterSetEmissionFilter(const ome::compat::shared_ptr< ome::xml::model::FilterSet > &filterSet_BackReference)
Unlink FilterSetEmissionFilter.
Definition: Filter.cpp:588
OMEModelObject::indexed_container< ome::xml::model::Annotation, ome::compat::weak_ptr >::type::size_type sizeOfLinkedAnnotationList() const
Get size of linked Annotation list.
Definition: Filter.cpp:408
Multi-index container for efficient ordered insertion and deletion of model object references...
Definition: OMEModelObject.h:85
bool linkLightPathExcitationFilter(const ome::compat::shared_ptr< ome::xml::model::LightPath > &lightPath_BackReference)
Link LightPathExcitationFilter.
Definition: Filter.cpp:633
const ome::compat::weak_ptr< ome::xml::model::LightPath > & getLinkedLightPathEmissionFilter(OMEModelObject::indexed_container< ome::xml::model::LightPath, ome::compat::weak_ptr >::type::size_type index) const
Get linked LightPathEmissionFilter.
Definition: Filter.cpp:675
OMEModelObject::indexed_container< ome::xml::model::FilterSet, ome::compat::weak_ptr >::type::size_type sizeOfLinkedFilterSetExcitationFilterList() const
Get size of linked FilterSetExcitationFilter list.
Definition: Filter.cpp:489
bool linkFilterSetEmissionFilter(const ome::compat::shared_ptr< ome::xml::model::FilterSet > &filterSet_BackReference)
Link FilterSetEmissionFilter.
Definition: Filter.cpp:575
Private implementation details of Filter model object.
Definition: Filter.cpp:78
Open Microscopy Environment C++ implementation.
bool validElementName(const std::string &name) const
Check if a given element name is valid for processing by this model object.
Definition: Filter.cpp:220
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: Filter.cpp:228
OMEModelObject::indexed_container< ome::xml::model::LightPath, ome::compat::weak_ptr >::type::size_type sizeOfLinkedLightPathEmissionFilterList() const
Get size of linked LightPathEmissionFilter list.
Definition: Filter.cpp:663
OMEModelObject::indexed_container< ome::xml::model::LightPath, ome::compat::weak_ptr >::type::size_type sizeOfLinkedLightPathExcitationFilterList() const
Get size of linked LightPathExcitationFilter list.
Definition: Filter.cpp:605
const ome::compat::weak_ptr< ome::xml::model::FilterSet > & getLinkedFilterSetExcitationFilter(OMEModelObject::indexed_container< ome::xml::model::FilterSet, ome::compat::weak_ptr >::type::size_type index) const
Get linked FilterSetExcitationFilter.
Definition: Filter.cpp:501
const std::string & elementName() const
Get the element name of this model object.
Definition: Filter.cpp:213
bool unlinkLightPathExcitationFilter(const ome::compat::shared_ptr< ome::xml::model::LightPath > &lightPath_BackReference)
Unlink LightPathExcitationFilter.
Definition: Filter.cpp:646
ome::compat::weak_ptr< ome::xml::model::Instrument > getInstrument()
Get the Instrument property.
Definition: Filter.cpp:468
void setInstrument(ome::compat::weak_ptr< ome::xml::model::Instrument > &instrument_BackReference)
Set the Instrument property.
Definition: Filter.cpp:482
OMEModelObject::indexed_container< ome::xml::model::LightPath, ome::compat::weak_ptr >::type getLinkedLightPathEmissionFilterList() const
Get the linked LightPathEmissionFilter list.
Definition: Filter.cpp:669
OMEModelObject::indexed_container< ome::xml::model::Annotation, ome::compat::weak_ptr >::type getLinkedAnnotationList() const
Get the linked Annotation list.
Definition: Filter.cpp:414
void setType(ome::compat::shared_ptr< ome::xml::model::enums::FilterType > &type)
Set the Type property.
Definition: Filter.cpp:366
ManufacturerSpec model object.
Definition: ManufacturerSpec.h:79
Filter model object.
Definition: Filter.h:85
const ome::compat::weak_ptr< ome::xml::model::FilterSet > & setLinkedFilterSetEmissionFilter(OMEModelObject::indexed_container< ome::xml::model::FilterSet, ome::compat::weak_ptr >::type::size_type index, const ome::compat::shared_ptr< ome::xml::model::FilterSet > &filterSet_BackReference)
Set linked FilterSetEmissionFilter.
Definition: Filter.cpp:565
const std::string & getID() const
Get the ID property.
Definition: Filter.cpp:373
void setFilterWheel(ome::compat::shared_ptr< std::string > &filterWheel)
Set the FilterWheel property.
Definition: Filter.cpp:345
const ome::compat::weak_ptr< ome::xml::model::LightPath > & getLinkedLightPathExcitationFilter(OMEModelObject::indexed_container< ome::xml::model::LightPath, ome::compat::weak_ptr >::type::size_type index) const
Get linked LightPathExcitationFilter.
Definition: Filter.cpp:617
OMEModelObject::indexed_container< ome::xml::model::LightPath, ome::compat::weak_ptr >::type getLinkedLightPathExcitationFilterList() const
Get the linked LightPathExcitationFilter list.
Definition: Filter.cpp:611
const ome::compat::weak_ptr< ome::xml::model::Annotation > & getLinkedAnnotation(OMEModelObject::indexed_container< ome::xml::model::Annotation, ome::compat::weak_ptr >::type::size_type index) const
Get linked Annotation.
Definition: Filter.cpp:420
OMEModelObject::indexed_container< ome::xml::model::FilterSet, ome::compat::weak_ptr >::type getLinkedFilterSetEmissionFilterList() const
Get the linked FilterSetEmissionFilter list.
Definition: Filter.cpp:553
const ome::compat::weak_ptr< ome::xml::model::FilterSet > & getLinkedFilterSetEmissionFilter(OMEModelObject::indexed_container< ome::xml::model::FilterSet, ome::compat::weak_ptr >::type::size_type index) const
Get linked FilterSetEmissionFilter.
Definition: Filter.cpp:559
ome::compat::shared_ptr< ome::xml::model::TransmittanceRange > getTransmittanceRange()
Get the TransmittanceRange property.
Definition: Filter.cpp:387
void setID(const std::string &id)
Set the ID property.
Definition: Filter.cpp:380
bool linkAnnotation(const ome::compat::shared_ptr< ome::xml::model::Annotation > &annotation)
Link Annotation.
Definition: Filter.cpp:436
virtual common::xml::dom::Element asXMLElement(common::xml::dom::Document &document) const
Transform the object hierarchy rooted at this element to XML.
Definition: Filter.cpp:720
bool linkLightPathEmissionFilter(const ome::compat::shared_ptr< ome::xml::model::LightPath > &lightPath_BackReference)
Link LightPathEmissionFilter.
Definition: Filter.cpp:691