ome-xml  5.5.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 
134  private:
136  Plate&
137  operator= (const Plate&);
138 
139  public:
140  // -- OMEModelObject API methods --
141 
143  virtual void
144  update(const common::xml::dom::Element& element,
146 
147  public:
148  // -- Plate API methods --
149 
151  bool
152  link (std::shared_ptr<Reference>& reference,
153  std::shared_ptr<ome::xml::model::OMEModelObject>& object);
154 
160  std::shared_ptr<std::string>
161  getStatus ();
162 
168  const std::shared_ptr<std::string>
169  getStatus () const;
170 
176  void
177  setStatus (std::shared_ptr<std::string>& status);
178 
184  std::shared_ptr<ome::xml::model::primitives::PositiveInteger>
185  getRows ();
186 
192  const std::shared_ptr<ome::xml::model::primitives::PositiveInteger>
193  getRows () const;
194 
200  void
201  setRows (std::shared_ptr<ome::xml::model::primitives::PositiveInteger>& rows);
202 
208  std::shared_ptr<std::string>
210 
216  const std::shared_ptr<std::string>
217  getExternalIdentifier () const;
218 
224  void
225  setExternalIdentifier (std::shared_ptr<std::string>& externalIdentifier);
226 
232  std::shared_ptr<ome::xml::model::enums::NamingConvention>
234 
240  const std::shared_ptr<ome::xml::model::enums::NamingConvention>
241  getRowNamingConvention () const;
242 
248  void
249  setRowNamingConvention (std::shared_ptr<ome::xml::model::enums::NamingConvention>& rowNamingConvention);
250 
256  std::shared_ptr<ome::xml::model::enums::NamingConvention>
258 
264  const std::shared_ptr<ome::xml::model::enums::NamingConvention>
265  getColumnNamingConvention () const;
266 
272  void
273  setColumnNamingConvention (std::shared_ptr<ome::xml::model::enums::NamingConvention>& columnNamingConvention);
274 
280  std::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
281  getFieldIndex ();
282 
288  const std::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
289  getFieldIndex () const;
290 
296  void
297  setFieldIndex (std::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>& fieldIndex);
298 
304  std::shared_ptr<ome::xml::model::primitives::PositiveInteger>
305  getColumns ();
306 
312  const std::shared_ptr<ome::xml::model::primitives::PositiveInteger>
313  getColumns () const;
314 
320  void
321  setColumns (std::shared_ptr<ome::xml::model::primitives::PositiveInteger>& columns);
322 
328  std::shared_ptr<ome::xml::model::primitives::Quantity<ome::xml::model::enums::UnitsLength > >&
329  getWellOriginY ();
330 
336  const std::shared_ptr<ome::xml::model::primitives::Quantity<ome::xml::model::enums::UnitsLength > >&
337  getWellOriginY () const;
338 
344  void
346 
352  std::shared_ptr<ome::xml::model::primitives::Quantity<ome::xml::model::enums::UnitsLength > >&
353  getWellOriginX ();
354 
360  const std::shared_ptr<ome::xml::model::primitives::Quantity<ome::xml::model::enums::UnitsLength > >&
361  getWellOriginX () const;
362 
368  void
370 
376  const std::string&
377  getID () const;
378 
384  void
385  setID (const std::string& id);
386 
392  std::shared_ptr<std::string>
393  getName ();
394 
400  const std::shared_ptr<std::string>
401  getName () const;
402 
408  void
409  setName (std::shared_ptr<std::string>& name);
410 
416  std::shared_ptr<std::string>
417  getDescription ();
418 
424  const std::shared_ptr<std::string>
425  getDescription () const;
426 
432  void
433  setDescription (std::shared_ptr<std::string>& description);
434 
440  std::vector<std::shared_ptr<ome::xml::model::Well>>::size_type
441  sizeOfWellList () const;
442 
449  std::vector<std::shared_ptr<ome::xml::model::Well>>&
450  getWellList ();
451 
458  const std::vector<std::shared_ptr<ome::xml::model::Well>>&
459  getWellList () const;
460 
468  std::shared_ptr<ome::xml::model::Well>&
469  getWell (std::vector<std::shared_ptr<ome::xml::model::Well>>::size_type index);
470 
478  const std::shared_ptr<ome::xml::model::Well>&
479  getWell (std::vector<std::shared_ptr<ome::xml::model::Well>>::size_type index) const;
480 
488  void
489  setWell (std::vector<std::shared_ptr<ome::xml::model::Well>>::size_type index,
490  std::shared_ptr<ome::xml::model::Well>& well);
491 
500  void
501  addWell (std::shared_ptr<ome::xml::model::Well>& well);
502 
512  void
513  removeWell (std::shared_ptr<ome::xml::model::Well>& well);
514 
522 
529  getLinkedAnnotationList () const;
530 
538  const std::weak_ptr<ome::xml::model::Annotation>&
540 
551  const std::weak_ptr<ome::xml::model::Annotation>&
553  const std::shared_ptr<ome::xml::model::Annotation>& annotation);
554 
565  bool
566  linkAnnotation (const std::shared_ptr<ome::xml::model::Annotation>& annotation);
567 
583  bool
584  unlinkAnnotation (const std::shared_ptr<ome::xml::model::Annotation>& annotation);
585 
591  std::vector<std::shared_ptr<ome::xml::model::PlateAcquisition>>::size_type
593 
600  std::vector<std::shared_ptr<ome::xml::model::PlateAcquisition>>&
602 
609  const std::vector<std::shared_ptr<ome::xml::model::PlateAcquisition>>&
610  getPlateAcquisitionList () const;
611 
619  std::shared_ptr<ome::xml::model::PlateAcquisition>&
620  getPlateAcquisition (std::vector<std::shared_ptr<ome::xml::model::PlateAcquisition>>::size_type index);
621 
629  const std::shared_ptr<ome::xml::model::PlateAcquisition>&
630  getPlateAcquisition (std::vector<std::shared_ptr<ome::xml::model::PlateAcquisition>>::size_type index) const;
631 
639  void
640  setPlateAcquisition (std::vector<std::shared_ptr<ome::xml::model::PlateAcquisition>>::size_type index,
641  std::shared_ptr<ome::xml::model::PlateAcquisition>& plateAcquisition);
642 
651  void
652  addPlateAcquisition (std::shared_ptr<ome::xml::model::PlateAcquisition>& plateAcquisition);
653 
663  void
664  removePlateAcquisition (std::shared_ptr<ome::xml::model::PlateAcquisition>& plateAcquisition);
665 
672  sizeOfLinkedScreenList () const;
673 
680  getLinkedScreenList () const;
681 
689  const std::weak_ptr<ome::xml::model::Screen>&
691 
702  const std::weak_ptr<ome::xml::model::Screen>&
704  const std::shared_ptr<ome::xml::model::Screen>& screen_BackReference);
705 
716  bool
717  linkScreen (const std::shared_ptr<ome::xml::model::Screen>& screen_BackReference);
718 
734  bool
735  unlinkScreen (const std::shared_ptr<ome::xml::model::Screen>& screen_BackReference);
736 
737  protected:
738  // Documented in base class.
739  virtual void
741  common::xml::dom::Element& element) const;
742 
743  public:
744  // Documented in superclass.
745  const std::string&
746  getXMLNamespace() const;
747  };
748 
749  }
750  }
751 }
752 
753 #endif // OME_XML_MODEL_PLATE_H
754 
755 /*
756  * Local Variables:
757  * mode:C++
758  * End:
759  */
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:527
virtual ~Plate()
Destructor.
Definition: Plate.cpp:242
void setFieldIndex(std::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > &fieldIndex)
Set the FieldIndex property.
Definition: Plate.cpp:590
std::shared_ptr< std::string > getStatus()
Get the Status property.
Definition: Plate.cpp:471
Plate model object.
Definition: Plate.h:86
std::shared_ptr< ome::xml::model::enums::NamingConvention > getColumnNamingConvention()
Get the ColumnNamingConvention property.
Definition: Plate.cpp:555
const std::string & elementName() const
Get the element name of this model object.
Definition: Plate.cpp:256
OMEModelObject::indexed_container< ome::xml::model::Screen, std::weak_ptr >::type::size_type sizeOfLinkedScreenList() const
Get size of linked Screen list.
Definition: Plate.cpp:892
std::shared_ptr< ome::xml::model::primitives::PositiveInteger > getRows()
Get the Rows property.
Definition: Plate.cpp:492
bool unlinkScreen(const std::shared_ptr< ome::xml::model::Screen > &screen_BackReference)
Unlink Screen.
Definition: Plate.cpp:933
std::shared_ptr< std::string > getDescription()
Get the Description property.
Definition: Plate.cpp:695
bool linkScreen(const std::shared_ptr< ome::xml::model::Screen > &screen_BackReference)
Link Screen.
Definition: Plate.cpp:920
std::vector< std::shared_ptr< ome::xml::model::Well > >::size_type sizeOfWellList() const
Get size of linked Well list.
Definition: Plate.cpp:716
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: Plate.cpp:269
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:786
std::shared_ptr< ome::xml::model::primitives::Quantity< ome::xml::model::enums::UnitsLength > > & getWellOriginX()
Get the WellOriginX property.
Definition: Plate.cpp:639
void setID(const std::string &id)
Set the ID property.
Definition: Plate.cpp:667
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:734
const std::string & getID() const
Get the ID property.
Definition: Plate.cpp:660
Plate & operator=(const Plate &)
Assignment operator (deleted).
std::shared_ptr< ome::xml::model::enums::NamingConvention > getRowNamingConvention()
Get the RowNamingConvention property.
Definition: Plate.cpp:534
bool linkAnnotation(const std::shared_ptr< ome::xml::model::Annotation > &annotation)
Link Annotation.
Definition: Plate.cpp:802
std::shared_ptr< std::string > getExternalIdentifier()
Get the ExternalIdentifier property.
Definition: Plate.cpp:513
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:792
std::shared_ptr< std::string > getName()
Get the Name property.
Definition: Plate.cpp:674
Plate()
Default constructor.
Definition: Plate.cpp:227
void removePlateAcquisition(std::shared_ptr< ome::xml::model::PlateAcquisition > &plateAcquisition)
Remove PlateAcquisition.
Definition: Plate.cpp:881
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:440
bool validElementName(const std::string &name) const
Check if a given element name is valid for processing by this model object.
Definition: Plate.cpp:263
std::vector< std::shared_ptr< ome::xml::model::PlateAcquisition > >::size_type sizeOfPlateAcquisitionList() const
Get size of linked PlateAcquisition list.
Definition: Plate.cpp:834
std::vector< std::shared_ptr< ome::xml::model::PlateAcquisition > > & getPlateAcquisitionList()
Get the PlateAcquisition list.
Definition: Plate.cpp:840
void setRows(std::shared_ptr< ome::xml::model::primitives::PositiveInteger > &rows)
Set the Rows property.
Definition: Plate.cpp:506
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:816
void setWellOriginY(const std::shared_ptr< ome::xml::model::primitives::Quantity< ome::xml::model::enums::UnitsLength > > &wellOriginY)
Set the WellOriginY property.
Definition: Plate.cpp:632
Open Microscopy Environment C++ implementation.
void setColumns(std::shared_ptr< ome::xml::model::primitives::PositiveInteger > &columns)
Set the Columns property.
Definition: Plate.cpp:611
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:904
std::shared_ptr< ome::xml::model::primitives::NonNegativeInteger > getFieldIndex()
Get the FieldIndex property.
Definition: Plate.cpp:576
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:910
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:852
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:949
void setRowNamingConvention(std::shared_ptr< ome::xml::model::enums::NamingConvention > &rowNamingConvention)
Set the RowNamingConvention property.
Definition: Plate.cpp:548
void setName(std::shared_ptr< std::string > &name)
Set the Name property.
Definition: Plate.cpp:688
void setWellOriginX(const std::shared_ptr< ome::xml::model::primitives::Quantity< ome::xml::model::enums::UnitsLength > > &wellOriginX)
Set the WellOriginX property.
Definition: Plate.cpp:653
const std::string & getXMLNamespace() const
Get the XML namespace for this model object.
Definition: Plate.cpp:1131
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:746
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:709
OMEModelObject::indexed_container< ome::xml::model::Annotation, std::weak_ptr >::type::size_type sizeOfLinkedAnnotationList() const
Get size of linked Annotation list.
Definition: Plate.cpp:774
std::vector< std::shared_ptr< ome::xml::model::Well > > & getWellList()
Get the Well list.
Definition: Plate.cpp:722
std::shared_ptr< ome::xml::model::primitives::PositiveInteger > getColumns()
Get the Columns property.
Definition: Plate.cpp:597
void removeWell(std::shared_ptr< ome::xml::model::Well > &well)
Remove Well.
Definition: Plate.cpp:763
void setStatus(std::shared_ptr< std::string > &status)
Set the Status property.
Definition: Plate.cpp:485
void addPlateAcquisition(std::shared_ptr< ome::xml::model::PlateAcquisition > &plateAcquisition)
Add PlateAcquisition.
Definition: Plate.cpp:873
std::shared_ptr< ome::xml::model::primitives::Quantity< ome::xml::model::enums::UnitsLength > > & getWellOriginY()
Get the WellOriginY property.
Definition: Plate.cpp:618
void setColumnNamingConvention(std::shared_ptr< ome::xml::model::enums::NamingConvention > &columnNamingConvention)
Set the ColumnNamingConvention property.
Definition: Plate.cpp:569
OMEModelObject::indexed_container< ome::xml::model::Annotation, std::weak_ptr >::type getLinkedAnnotationList() const
Get the linked Annotation list.
Definition: Plate.cpp:780
void addWell(std::shared_ptr< ome::xml::model::Well > &well)
Add Well.
Definition: Plate.cpp:755
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:247
OMEModelObject::indexed_container< ome::xml::model::Screen, std::weak_ptr >::type getLinkedScreenList() const
Get the linked Screen list.
Definition: Plate.cpp:898
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:864