ome-xml  5.6.0
Plate.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_PLATE_H
47 #define OME_XML_MODEL_PLATE_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/detail/OMEModelObject.h>
64 #include <ome/xml/model/enums/NamingConvention.h>
65 #include <ome/xml/model/enums/UnitsLength.h>
66 #include <ome/xml/model/primitives/NonNegativeInteger.h>
67 #include <ome/xml/model/primitives/PositiveInteger.h>
68 
69 namespace ome
70 {
71  namespace xml
72  {
73  namespace model
74  {
75 
76  // Forward declarations.
77  class Annotation;
78  class OMEModel;
79  class PlateAcquisition;
80  class Screen;
81  class Well;
82 
87  {
88  private:
89  class Impl;
91  std::shared_ptr<Impl> impl;
92 
93  public:
95  Plate();
96 
102  Plate (const Plate& copy);
103 
105  virtual
106  ~Plate ();
107 
122  static std::shared_ptr<Plate>
123  create(const common::xml::dom::Element& element,
125 
126  // Documented in superclass.
127  const std::string&
128  elementName() const;
129 
130  // Documented in superclass.
131  bool
132  validElementName(const std::string& name) const;
133 
135  Plate&
136  operator= (const Plate&) = delete;
138 
139  // -- OMEModelObject API methods --
140 
142  virtual void
143  update(const common::xml::dom::Element& element,
145 
146  public:
147  // -- Plate 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<std::string>
160  getStatus ();
161 
167  const std::shared_ptr<std::string>
168  getStatus () const;
169 
175  void
176  setStatus (std::shared_ptr<std::string>& status);
177 
183  std::shared_ptr<ome::xml::model::primitives::PositiveInteger>
184  getRows ();
185 
191  const std::shared_ptr<ome::xml::model::primitives::PositiveInteger>
192  getRows () const;
193 
199  void
200  setRows (std::shared_ptr<ome::xml::model::primitives::PositiveInteger>& rows);
201 
207  std::shared_ptr<std::string>
209 
215  const std::shared_ptr<std::string>
216  getExternalIdentifier () const;
217 
223  void
224  setExternalIdentifier (std::shared_ptr<std::string>& externalIdentifier);
225 
231  std::shared_ptr<ome::xml::model::enums::NamingConvention>
233 
239  const std::shared_ptr<ome::xml::model::enums::NamingConvention>
240  getRowNamingConvention () const;
241 
247  void
248  setRowNamingConvention (std::shared_ptr<ome::xml::model::enums::NamingConvention>& rowNamingConvention);
249 
255  std::shared_ptr<ome::xml::model::enums::NamingConvention>
257 
263  const std::shared_ptr<ome::xml::model::enums::NamingConvention>
264  getColumnNamingConvention () const;
265 
271  void
272  setColumnNamingConvention (std::shared_ptr<ome::xml::model::enums::NamingConvention>& columnNamingConvention);
273 
279  std::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
280  getFieldIndex ();
281 
287  const std::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
288  getFieldIndex () const;
289 
295  void
296  setFieldIndex (std::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>& fieldIndex);
297 
303  std::shared_ptr<ome::xml::model::primitives::PositiveInteger>
304  getColumns ();
305 
311  const std::shared_ptr<ome::xml::model::primitives::PositiveInteger>
312  getColumns () const;
313 
319  void
320  setColumns (std::shared_ptr<ome::xml::model::primitives::PositiveInteger>& columns);
321 
327  std::shared_ptr<ome::xml::model::primitives::Quantity<ome::xml::model::enums::UnitsLength > >&
328  getWellOriginY ();
329 
335  const std::shared_ptr<ome::xml::model::primitives::Quantity<ome::xml::model::enums::UnitsLength > >&
336  getWellOriginY () const;
337 
343  void
345 
351  std::shared_ptr<ome::xml::model::primitives::Quantity<ome::xml::model::enums::UnitsLength > >&
352  getWellOriginX ();
353 
359  const std::shared_ptr<ome::xml::model::primitives::Quantity<ome::xml::model::enums::UnitsLength > >&
360  getWellOriginX () const;
361 
367  void
369 
375  const std::string&
376  getID () const;
377 
383  void
384  setID (const std::string& id);
385 
391  std::shared_ptr<std::string>
392  getName ();
393 
399  const std::shared_ptr<std::string>
400  getName () const;
401 
407  void
408  setName (std::shared_ptr<std::string>& name);
409 
415  std::shared_ptr<std::string>
416  getDescription ();
417 
423  const std::shared_ptr<std::string>
424  getDescription () const;
425 
431  void
432  setDescription (std::shared_ptr<std::string>& description);
433 
439  std::vector<std::shared_ptr<ome::xml::model::Well>>::size_type
440  sizeOfWellList () const;
441 
448  std::vector<std::shared_ptr<ome::xml::model::Well>>&
449  getWellList ();
450 
457  const std::vector<std::shared_ptr<ome::xml::model::Well>>&
458  getWellList () const;
459 
467  std::shared_ptr<ome::xml::model::Well>&
468  getWell (std::vector<std::shared_ptr<ome::xml::model::Well>>::size_type index);
469 
477  const std::shared_ptr<ome::xml::model::Well>&
478  getWell (std::vector<std::shared_ptr<ome::xml::model::Well>>::size_type index) const;
479 
487  void
488  setWell (std::vector<std::shared_ptr<ome::xml::model::Well>>::size_type index,
489  std::shared_ptr<ome::xml::model::Well>& well);
490 
499  void
500  addWell (std::shared_ptr<ome::xml::model::Well>& well);
501 
511  void
512  removeWell (std::shared_ptr<ome::xml::model::Well>& well);
513 
521 
528  getLinkedAnnotationList () const;
529 
537  const std::weak_ptr<ome::xml::model::Annotation>&
539 
550  const std::weak_ptr<ome::xml::model::Annotation>&
552  const std::shared_ptr<ome::xml::model::Annotation>& annotation);
553 
564  bool
565  linkAnnotation (const std::shared_ptr<ome::xml::model::Annotation>& annotation);
566 
582  bool
583  unlinkAnnotation (const std::shared_ptr<ome::xml::model::Annotation>& annotation);
584 
590  std::vector<std::shared_ptr<ome::xml::model::PlateAcquisition>>::size_type
592 
599  std::vector<std::shared_ptr<ome::xml::model::PlateAcquisition>>&
601 
608  const std::vector<std::shared_ptr<ome::xml::model::PlateAcquisition>>&
609  getPlateAcquisitionList () const;
610 
618  std::shared_ptr<ome::xml::model::PlateAcquisition>&
619  getPlateAcquisition (std::vector<std::shared_ptr<ome::xml::model::PlateAcquisition>>::size_type index);
620 
628  const std::shared_ptr<ome::xml::model::PlateAcquisition>&
629  getPlateAcquisition (std::vector<std::shared_ptr<ome::xml::model::PlateAcquisition>>::size_type index) const;
630 
638  void
639  setPlateAcquisition (std::vector<std::shared_ptr<ome::xml::model::PlateAcquisition>>::size_type index,
640  std::shared_ptr<ome::xml::model::PlateAcquisition>& plateAcquisition);
641 
650  void
651  addPlateAcquisition (std::shared_ptr<ome::xml::model::PlateAcquisition>& plateAcquisition);
652 
662  void
663  removePlateAcquisition (std::shared_ptr<ome::xml::model::PlateAcquisition>& plateAcquisition);
664 
671  sizeOfLinkedScreenList () const;
672 
679  getLinkedScreenList () const;
680 
688  const std::weak_ptr<ome::xml::model::Screen>&
690 
701  const std::weak_ptr<ome::xml::model::Screen>&
703  const std::shared_ptr<ome::xml::model::Screen>& screen_BackReference);
704 
715  bool
716  linkScreen (const std::shared_ptr<ome::xml::model::Screen>& screen_BackReference);
717 
733  bool
734  unlinkScreen (const std::shared_ptr<ome::xml::model::Screen>& screen_BackReference);
735 
736  protected:
737  // Documented in base class.
738  virtual void
740  common::xml::dom::Element& element) const;
741 
742  public:
743  // Documented in superclass.
744  const std::string&
745  getXMLNamespace() const;
746  };
747 
748  }
749  }
750 }
751 
752 #endif // OME_XML_MODEL_PLATE_H
753 
754 /*
755  * Local Variables:
756  * mode:C++
757  * End:
758  */
OME model interface (abstract top-level container)
Definition: OMEModel.h:61
void setExternalIdentifier(std::shared_ptr< std::string > &externalIdentifier)
Set the ExternalIdentifier property.
Definition: Plate.cpp:535
virtual ~Plate()
Destructor.
Definition: Plate.cpp:250
void setFieldIndex(std::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > &fieldIndex)
Set the FieldIndex property.
Definition: Plate.cpp:598
std::shared_ptr< std::string > getStatus()
Get the Status property.
Definition: Plate.cpp:479
Plate model object.
Definition: Plate.h:86
std::shared_ptr< ome::xml::model::enums::NamingConvention > getColumnNamingConvention()
Get the ColumnNamingConvention property.
Definition: Plate.cpp:563
const std::string & elementName() const
Get the element name of this model object.
Definition: Plate.cpp:264
OMEModelObject::indexed_container< ome::xml::model::Screen, std::weak_ptr >::type::size_type sizeOfLinkedScreenList() const
Get size of linked Screen list.
Definition: Plate.cpp:900
std::shared_ptr< ome::xml::model::primitives::PositiveInteger > getRows()
Get the Rows property.
Definition: Plate.cpp:500
bool unlinkScreen(const std::shared_ptr< ome::xml::model::Screen > &screen_BackReference)
Unlink Screen.
Definition: Plate.cpp:941
std::shared_ptr< std::string > getDescription()
Get the Description property.
Definition: Plate.cpp:703
bool linkScreen(const std::shared_ptr< ome::xml::model::Screen > &screen_BackReference)
Link Screen.
Definition: Plate.cpp:928
std::vector< std::shared_ptr< ome::xml::model::Well > >::size_type sizeOfWellList() const
Get size of linked Well list.
Definition: Plate.cpp:724
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: Plate.cpp:277
const std::weak_ptr< ome::xml::model::Annotation > & getLinkedAnnotation(OMEModelObject::indexed_container< ome::xml::model::Annotation, std::weak_ptr >::type::size_type index) const
Get linked Annotation.
Definition: Plate.cpp:794
std::shared_ptr< ome::xml::model::primitives::Quantity< ome::xml::model::enums::UnitsLength > > & getWellOriginX()
Get the WellOriginX property.
Definition: Plate.cpp:647
void setID(const std::string &id)
Set the ID property.
Definition: Plate.cpp:675
std::shared_ptr< ome::xml::model::Well > & getWell(std::vector< std::shared_ptr< ome::xml::model::Well >>::size_type index)
Get Well.
Definition: Plate.cpp:742
const std::string & getID() const
Get the ID property.
Definition: Plate.cpp:668
std::shared_ptr< ome::xml::model::enums::NamingConvention > getRowNamingConvention()
Get the RowNamingConvention property.
Definition: Plate.cpp:542
bool linkAnnotation(const std::shared_ptr< ome::xml::model::Annotation > &annotation)
Link Annotation.
Definition: Plate.cpp:810
std::shared_ptr< std::string > getExternalIdentifier()
Get the ExternalIdentifier property.
Definition: Plate.cpp:521
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 > >, std::owner_less< Ptr< T > > > > > type
Multi-index container type.
Definition: OMEModelObject.h:93
OME model object (concrete implementation).
Definition: OMEModelObject.h:64
const std::weak_ptr< ome::xml::model::Annotation > & setLinkedAnnotation(OMEModelObject::indexed_container< ome::xml::model::Annotation, std::weak_ptr >::type::size_type index, const std::shared_ptr< ome::xml::model::Annotation > &annotation)
Set linked Annotation.
Definition: Plate.cpp:800
std::shared_ptr< std::string > getName()
Get the Name property.
Definition: Plate.cpp:682
Plate()
Default constructor.
Definition: Plate.cpp:231
void removePlateAcquisition(std::shared_ptr< ome::xml::model::PlateAcquisition > &plateAcquisition)
Remove PlateAcquisition.
Definition: Plate.cpp:889
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: Plate.cpp:448
bool validElementName(const std::string &name) const
Check if a given element name is valid for processing by this model object.
Definition: Plate.cpp:271
std::vector< std::shared_ptr< ome::xml::model::PlateAcquisition > >::size_type sizeOfPlateAcquisitionList() const
Get size of linked PlateAcquisition list.
Definition: Plate.cpp:842
std::vector< std::shared_ptr< ome::xml::model::PlateAcquisition > > & getPlateAcquisitionList()
Get the PlateAcquisition list.
Definition: Plate.cpp:848
void setRows(std::shared_ptr< ome::xml::model::primitives::PositiveInteger > &rows)
Set the Rows property.
Definition: Plate.cpp:514
Multi-index container for efficient ordered insertion and deletion of model object references...
Definition: OMEModelObject.h:84
bool unlinkAnnotation(const std::shared_ptr< ome::xml::model::Annotation > &annotation)
Unlink Annotation.
Definition: Plate.cpp:824
void setWellOriginY(const std::shared_ptr< ome::xml::model::primitives::Quantity< ome::xml::model::enums::UnitsLength > > &wellOriginY)
Set the WellOriginY property.
Definition: Plate.cpp:640
Open Microscopy Environment C++ implementation.
void setColumns(std::shared_ptr< ome::xml::model::primitives::PositiveInteger > &columns)
Set the Columns property.
Definition: Plate.cpp:619
const std::weak_ptr< ome::xml::model::Screen > & getLinkedScreen(OMEModelObject::indexed_container< ome::xml::model::Screen, std::weak_ptr >::type::size_type index) const
Get linked Screen.
Definition: Plate.cpp:912
std::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > getFieldIndex()
Get the FieldIndex property.
Definition: Plate.cpp:584
const std::weak_ptr< ome::xml::model::Screen > & setLinkedScreen(OMEModelObject::indexed_container< ome::xml::model::Screen, std::weak_ptr >::type::size_type index, const std::shared_ptr< ome::xml::model::Screen > &screen_BackReference)
Set linked Screen.
Definition: Plate.cpp:918
std::shared_ptr< ome::xml::model::PlateAcquisition > & getPlateAcquisition(std::vector< std::shared_ptr< ome::xml::model::PlateAcquisition >>::size_type index)
Get PlateAcquisition.
Definition: Plate.cpp:860
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: Plate.cpp:957
void setRowNamingConvention(std::shared_ptr< ome::xml::model::enums::NamingConvention > &rowNamingConvention)
Set the RowNamingConvention property.
Definition: Plate.cpp:556
void setName(std::shared_ptr< std::string > &name)
Set the Name property.
Definition: Plate.cpp:696
void setWellOriginX(const std::shared_ptr< ome::xml::model::primitives::Quantity< ome::xml::model::enums::UnitsLength > > &wellOriginX)
Set the WellOriginX property.
Definition: Plate.cpp:661
const std::string & getXMLNamespace() const
Get the XML namespace for this model object.
Definition: Plate.cpp:1139
A quantity of a defined unit.
Definition: Quantity.h:57
void setWell(std::vector< std::shared_ptr< ome::xml::model::Well >>::size_type index, std::shared_ptr< ome::xml::model::Well > &well)
Set Well.
Definition: Plate.cpp:754
std::shared_ptr< Impl > impl
Private implementation details.
Definition: Plate.h:89
void setDescription(std::shared_ptr< std::string > &description)
Set the Description property.
Definition: Plate.cpp:717
OMEModelObject::indexed_container< ome::xml::model::Annotation, std::weak_ptr >::type::size_type sizeOfLinkedAnnotationList() const
Get size of linked Annotation list.
Definition: Plate.cpp:782
std::vector< std::shared_ptr< ome::xml::model::Well > > & getWellList()
Get the Well list.
Definition: Plate.cpp:730
std::shared_ptr< ome::xml::model::primitives::PositiveInteger > getColumns()
Get the Columns property.
Definition: Plate.cpp:605
void removeWell(std::shared_ptr< ome::xml::model::Well > &well)
Remove Well.
Definition: Plate.cpp:771
void setStatus(std::shared_ptr< std::string > &status)
Set the Status property.
Definition: Plate.cpp:493
void addPlateAcquisition(std::shared_ptr< ome::xml::model::PlateAcquisition > &plateAcquisition)
Add PlateAcquisition.
Definition: Plate.cpp:881
std::shared_ptr< ome::xml::model::primitives::Quantity< ome::xml::model::enums::UnitsLength > > & getWellOriginY()
Get the WellOriginY property.
Definition: Plate.cpp:626
void setColumnNamingConvention(std::shared_ptr< ome::xml::model::enums::NamingConvention > &columnNamingConvention)
Set the ColumnNamingConvention property.
Definition: Plate.cpp:577
OMEModelObject::indexed_container< ome::xml::model::Annotation, std::weak_ptr >::type getLinkedAnnotationList() const
Get the linked Annotation list.
Definition: Plate.cpp:788
void addWell(std::shared_ptr< ome::xml::model::Well > &well)
Add Well.
Definition: Plate.cpp:763
static std::shared_ptr< Plate > create(const common::xml::dom::Element &element, ome::xml::model::OMEModel &model)
Create a Plate model object from DOM element.
Definition: Plate.cpp:255
OMEModelObject::indexed_container< ome::xml::model::Screen, std::weak_ptr >::type getLinkedScreenList() const
Get the linked Screen list.
Definition: Plate.cpp:906
Private implementation details of Plate model object.
Definition: Plate.cpp:83
void setPlateAcquisition(std::vector< std::shared_ptr< ome::xml::model::PlateAcquisition >>::size_type index, std::shared_ptr< ome::xml::model::PlateAcquisition > &plateAcquisition)
Set PlateAcquisition.
Definition: Plate.cpp:872