ome-xml  5.6.0
PlateAcquisition.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_PLATEACQUISITION_H
47 #define OME_XML_MODEL_PLATEACQUISITION_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/Plate.h>
64 #include <ome/xml/model/detail/OMEModelObject.h>
65 #include <ome/xml/model/primitives/PositiveInteger.h>
66 #include <ome/xml/model/primitives/Timestamp.h>
67 
68 namespace ome
69 {
70  namespace xml
71  {
72  namespace model
73  {
74 
75  // Forward declarations.
76  class Annotation;
77  class OMEModel;
78  class WellSample;
79 
84  {
85  private:
86  class Impl;
88  std::shared_ptr<Impl> impl;
89 
90  public:
93 
99  PlateAcquisition (const PlateAcquisition& copy);
100 
102  virtual
104 
119  static std::shared_ptr<PlateAcquisition>
120  create(const common::xml::dom::Element& element,
122 
123  // Documented in superclass.
124  const std::string&
125  elementName() const;
126 
127  // Documented in superclass.
128  bool
129  validElementName(const std::string& name) const;
130 
133  operator= (const PlateAcquisition&) = delete;
135 
136  // -- OMEModelObject API methods --
137 
139  virtual void
140  update(const common::xml::dom::Element& element,
142 
143  public:
144  // -- PlateAcquisition API methods --
145 
147  bool
148  link (std::shared_ptr<Reference>& reference,
149  std::shared_ptr<ome::xml::model::OMEModelObject>& object);
150 
156  std::shared_ptr<ome::xml::model::primitives::PositiveInteger>
158 
164  const std::shared_ptr<ome::xml::model::primitives::PositiveInteger>
165  getMaximumFieldCount () const;
166 
172  void
173  setMaximumFieldCount (std::shared_ptr<ome::xml::model::primitives::PositiveInteger>& maximumFieldCount);
174 
180  std::shared_ptr<ome::xml::model::primitives::Timestamp>
181  getEndTime ();
182 
188  const std::shared_ptr<ome::xml::model::primitives::Timestamp>
189  getEndTime () const;
190 
196  void
197  setEndTime (std::shared_ptr<ome::xml::model::primitives::Timestamp>& endTime);
198 
204  const std::string&
205  getID () const;
206 
212  void
213  setID (const std::string& id);
214 
220  std::shared_ptr<ome::xml::model::primitives::Timestamp>
221  getStartTime ();
222 
228  const std::shared_ptr<ome::xml::model::primitives::Timestamp>
229  getStartTime () const;
230 
236  void
237  setStartTime (std::shared_ptr<ome::xml::model::primitives::Timestamp>& startTime);
238 
244  std::shared_ptr<std::string>
245  getName ();
246 
252  const std::shared_ptr<std::string>
253  getName () const;
254 
260  void
261  setName (std::shared_ptr<std::string>& name);
262 
268  std::shared_ptr<std::string>
269  getDescription ();
270 
276  const std::shared_ptr<std::string>
277  getDescription () const;
278 
284  void
285  setDescription (std::shared_ptr<std::string>& description);
286 
294 
301  getLinkedWellSampleList () const;
302 
310  const std::weak_ptr<ome::xml::model::WellSample>&
312 
323  const std::weak_ptr<ome::xml::model::WellSample>&
325  const std::shared_ptr<ome::xml::model::WellSample>& wellSample);
326 
337  bool
338  linkWellSample (const std::shared_ptr<ome::xml::model::WellSample>& wellSample);
339 
355  bool
356  unlinkWellSample (const std::shared_ptr<ome::xml::model::WellSample>& wellSample);
357 
365 
372  getLinkedAnnotationList () const;
373 
381  const std::weak_ptr<ome::xml::model::Annotation>&
383 
394  const std::weak_ptr<ome::xml::model::Annotation>&
396  const std::shared_ptr<ome::xml::model::Annotation>& annotation);
397 
408  bool
409  linkAnnotation (const std::shared_ptr<ome::xml::model::Annotation>& annotation);
410 
426  bool
427  unlinkAnnotation (const std::shared_ptr<ome::xml::model::Annotation>& annotation);
428 
434  std::weak_ptr<ome::xml::model::Plate>
435  getPlate ();
436 
442  const std::weak_ptr<ome::xml::model::Plate>
443  getPlate () const;
444 
450  void
451  setPlate (std::weak_ptr<ome::xml::model::Plate>& plate_BackReference);
452 
453  protected:
454  // Documented in base class.
455  virtual void
457  common::xml::dom::Element& element) const;
458 
459  public:
460  // Documented in superclass.
461  const std::string&
462  getXMLNamespace() const;
463  };
464 
465  }
466  }
467 }
468 
469 #endif // OME_XML_MODEL_PLATEACQUISITION_H
470 
471 /*
472  * Local Variables:
473  * mode:C++
474  * End:
475  */
bool linkAnnotation(const std::shared_ptr< ome::xml::model::Annotation > &annotation)
Link Annotation.
Definition: PlateAcquisition.cpp:573
OME model interface (abstract top-level container)
Definition: OMEModel.h:61
std::weak_ptr< ome::xml::model::Plate > getPlate()
Get the Plate property.
Definition: PlateAcquisition.cpp:605
const std::weak_ptr< ome::xml::model::WellSample > & setLinkedWellSample(OMEModelObject::indexed_container< ome::xml::model::WellSample, std::weak_ptr >::type::size_type index, const std::shared_ptr< ome::xml::model::WellSample > &wellSample)
Set linked WellSample.
Definition: PlateAcquisition.cpp:503
std::shared_ptr< ome::xml::model::primitives::Timestamp > getEndTime()
Get the EndTime property.
Definition: PlateAcquisition.cpp:387
void setPlate(std::weak_ptr< ome::xml::model::Plate > &plate_BackReference)
Set the Plate property.
Definition: PlateAcquisition.cpp:619
void setMaximumFieldCount(std::shared_ptr< ome::xml::model::primitives::PositiveInteger > &maximumFieldCount)
Set the MaximumFieldCount property.
Definition: PlateAcquisition.cpp:380
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
const std::weak_ptr< ome::xml::model::WellSample > & getLinkedWellSample(OMEModelObject::indexed_container< ome::xml::model::WellSample, std::weak_ptr >::type::size_type index) const
Get linked WellSample.
Definition: PlateAcquisition.cpp:497
void setDescription(std::shared_ptr< std::string > &description)
Set the Description property.
Definition: PlateAcquisition.cpp:478
OME model object (concrete implementation).
Definition: OMEModelObject.h:64
OMEModelObject::indexed_container< ome::xml::model::WellSample, std::weak_ptr >::type::size_type sizeOfLinkedWellSampleList() const
Get size of linked WellSample list.
Definition: PlateAcquisition.cpp:485
std::shared_ptr< ome::xml::model::primitives::Timestamp > getStartTime()
Get the StartTime property.
Definition: PlateAcquisition.cpp:422
OMEModelObject::indexed_container< ome::xml::model::Annotation, std::weak_ptr >::type::size_type sizeOfLinkedAnnotationList() const
Get size of linked Annotation list.
Definition: PlateAcquisition.cpp:545
std::shared_ptr< ome::xml::model::primitives::PositiveInteger > getMaximumFieldCount()
Get the MaximumFieldCount property.
Definition: PlateAcquisition.cpp:366
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: PlateAcquisition.cpp:319
void setName(std::shared_ptr< std::string > &name)
Set the Name property.
Definition: PlateAcquisition.cpp:457
Private implementation details of PlateAcquisition model object.
Definition: PlateAcquisition.cpp:75
bool validElementName(const std::string &name) const
Check if a given element name is valid for processing by this model object.
Definition: PlateAcquisition.cpp:214
PlateAcquisition model object.
Definition: PlateAcquisition.h:83
Multi-index container for efficient ordered insertion and deletion of model object references...
Definition: OMEModelObject.h:84
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: PlateAcquisition.cpp:220
Open Microscopy Environment C++ implementation.
std::shared_ptr< Impl > impl
Private implementation details.
Definition: PlateAcquisition.h:86
const std::string & getXMLNamespace() const
Get the XML namespace for this model object.
Definition: PlateAcquisition.cpp:740
bool unlinkAnnotation(const std::shared_ptr< ome::xml::model::Annotation > &annotation)
Unlink Annotation.
Definition: PlateAcquisition.cpp:587
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: PlateAcquisition.cpp:557
std::shared_ptr< std::string > getName()
Get the Name property.
Definition: PlateAcquisition.cpp:443
void setID(const std::string &id)
Set the ID property.
Definition: PlateAcquisition.cpp:415
static std::shared_ptr< PlateAcquisition > create(const common::xml::dom::Element &element, ome::xml::model::OMEModel &model)
Create a PlateAcquisition model object from DOM element.
Definition: PlateAcquisition.cpp:198
const std::string & getID() const
Get the ID property.
Definition: PlateAcquisition.cpp:408
const std::string & elementName() const
Get the element name of this model object.
Definition: PlateAcquisition.cpp:207
std::shared_ptr< std::string > getDescription()
Get the Description property.
Definition: PlateAcquisition.cpp:464
bool unlinkWellSample(const std::shared_ptr< ome::xml::model::WellSample > &wellSample)
Unlink WellSample.
Definition: PlateAcquisition.cpp:527
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: PlateAcquisition.cpp:625
bool linkWellSample(const std::shared_ptr< ome::xml::model::WellSample > &wellSample)
Link WellSample.
Definition: PlateAcquisition.cpp:513
void setStartTime(std::shared_ptr< ome::xml::model::primitives::Timestamp > &startTime)
Set the StartTime property.
Definition: PlateAcquisition.cpp:436
OMEModelObject::indexed_container< ome::xml::model::Annotation, std::weak_ptr >::type getLinkedAnnotationList() const
Get the linked Annotation list.
Definition: PlateAcquisition.cpp:551
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: PlateAcquisition.cpp:563
OMEModelObject::indexed_container< ome::xml::model::WellSample, std::weak_ptr >::type getLinkedWellSampleList() const
Get the linked WellSample list.
Definition: PlateAcquisition.cpp:491
virtual ~PlateAcquisition()
Destructor.
Definition: PlateAcquisition.cpp:193
PlateAcquisition()
Default constructor.
Definition: PlateAcquisition.cpp:174
void setEndTime(std::shared_ptr< ome::xml::model::primitives::Timestamp > &endTime)
Set the EndTime property.
Definition: PlateAcquisition.cpp:401