ome-xml  5.5.1
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 
131  private:
135 
136  public:
137  // -- OMEModelObject API methods --
138 
140  virtual void
141  update(const common::xml::dom::Element& element,
143 
144  public:
145  // -- PlateAcquisition API methods --
146 
148  bool
149  link (std::shared_ptr<Reference>& reference,
150  std::shared_ptr<ome::xml::model::OMEModelObject>& object);
151 
157  std::shared_ptr<ome::xml::model::primitives::PositiveInteger>
159 
165  const std::shared_ptr<ome::xml::model::primitives::PositiveInteger>
166  getMaximumFieldCount () const;
167 
173  void
174  setMaximumFieldCount (std::shared_ptr<ome::xml::model::primitives::PositiveInteger>& maximumFieldCount);
175 
181  std::shared_ptr<ome::xml::model::primitives::Timestamp>
182  getEndTime ();
183 
189  const std::shared_ptr<ome::xml::model::primitives::Timestamp>
190  getEndTime () const;
191 
197  void
198  setEndTime (std::shared_ptr<ome::xml::model::primitives::Timestamp>& endTime);
199 
205  const std::string&
206  getID () const;
207 
213  void
214  setID (const std::string& id);
215 
221  std::shared_ptr<ome::xml::model::primitives::Timestamp>
222  getStartTime ();
223 
229  const std::shared_ptr<ome::xml::model::primitives::Timestamp>
230  getStartTime () const;
231 
237  void
238  setStartTime (std::shared_ptr<ome::xml::model::primitives::Timestamp>& startTime);
239 
245  std::shared_ptr<std::string>
246  getName ();
247 
253  const std::shared_ptr<std::string>
254  getName () const;
255 
261  void
262  setName (std::shared_ptr<std::string>& name);
263 
269  std::shared_ptr<std::string>
270  getDescription ();
271 
277  const std::shared_ptr<std::string>
278  getDescription () const;
279 
285  void
286  setDescription (std::shared_ptr<std::string>& description);
287 
295 
302  getLinkedWellSampleList () const;
303 
311  const std::weak_ptr<ome::xml::model::WellSample>&
313 
324  const std::weak_ptr<ome::xml::model::WellSample>&
326  const std::shared_ptr<ome::xml::model::WellSample>& wellSample);
327 
338  bool
339  linkWellSample (const std::shared_ptr<ome::xml::model::WellSample>& wellSample);
340 
356  bool
357  unlinkWellSample (const std::shared_ptr<ome::xml::model::WellSample>& wellSample);
358 
366 
373  getLinkedAnnotationList () const;
374 
382  const std::weak_ptr<ome::xml::model::Annotation>&
384 
395  const std::weak_ptr<ome::xml::model::Annotation>&
397  const std::shared_ptr<ome::xml::model::Annotation>& annotation);
398 
409  bool
410  linkAnnotation (const std::shared_ptr<ome::xml::model::Annotation>& annotation);
411 
427  bool
428  unlinkAnnotation (const std::shared_ptr<ome::xml::model::Annotation>& annotation);
429 
435  std::weak_ptr<ome::xml::model::Plate>
436  getPlate ();
437 
443  const std::weak_ptr<ome::xml::model::Plate>
444  getPlate () const;
445 
451  void
452  setPlate (std::weak_ptr<ome::xml::model::Plate>& plate_BackReference);
453 
454  protected:
455  // Documented in base class.
456  virtual void
458  common::xml::dom::Element& element) const;
459 
460  public:
461  // Documented in superclass.
462  const std::string&
463  getXMLNamespace() const;
464  };
465 
466  }
467  }
468 }
469 
470 #endif // OME_XML_MODEL_PLATEACQUISITION_H
471 
472 /*
473  * Local Variables:
474  * mode:C++
475  * End:
476  */
bool linkAnnotation(const std::shared_ptr< ome::xml::model::Annotation > &annotation)
Link Annotation.
Definition: PlateAcquisition.cpp:565
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:597
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:495
std::shared_ptr< ome::xml::model::primitives::Timestamp > getEndTime()
Get the EndTime property.
Definition: PlateAcquisition.cpp:379
void setPlate(std::weak_ptr< ome::xml::model::Plate > &plate_BackReference)
Set the Plate property.
Definition: PlateAcquisition.cpp:611
void setMaximumFieldCount(std::shared_ptr< ome::xml::model::primitives::PositiveInteger > &maximumFieldCount)
Set the MaximumFieldCount property.
Definition: PlateAcquisition.cpp:372
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:489
void setDescription(std::shared_ptr< std::string > &description)
Set the Description property.
Definition: PlateAcquisition.cpp:470
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:477
std::shared_ptr< ome::xml::model::primitives::Timestamp > getStartTime()
Get the StartTime property.
Definition: PlateAcquisition.cpp:414
OMEModelObject::indexed_container< ome::xml::model::Annotation, std::weak_ptr >::type::size_type sizeOfLinkedAnnotationList() const
Get size of linked Annotation list.
Definition: PlateAcquisition.cpp:537
std::shared_ptr< ome::xml::model::primitives::PositiveInteger > getMaximumFieldCount()
Get the MaximumFieldCount property.
Definition: PlateAcquisition.cpp:358
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:311
void setName(std::shared_ptr< std::string > &name)
Set the Name property.
Definition: PlateAcquisition.cpp:449
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:206
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 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:212
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:732
bool unlinkAnnotation(const std::shared_ptr< ome::xml::model::Annotation > &annotation)
Unlink Annotation.
Definition: PlateAcquisition.cpp:579
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:549
std::shared_ptr< std::string > getName()
Get the Name property.
Definition: PlateAcquisition.cpp:435
void setID(const std::string &id)
Set the ID property.
Definition: PlateAcquisition.cpp:407
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:190
const std::string & getID() const
Get the ID property.
Definition: PlateAcquisition.cpp:400
const std::string & elementName() const
Get the element name of this model object.
Definition: PlateAcquisition.cpp:199
std::shared_ptr< std::string > getDescription()
Get the Description property.
Definition: PlateAcquisition.cpp:456
bool unlinkWellSample(const std::shared_ptr< ome::xml::model::WellSample > &wellSample)
Unlink WellSample.
Definition: PlateAcquisition.cpp:519
PlateAcquisition & operator=(const PlateAcquisition &)
Assignment operator (deleted).
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:617
bool linkWellSample(const std::shared_ptr< ome::xml::model::WellSample > &wellSample)
Link WellSample.
Definition: PlateAcquisition.cpp:505
void setStartTime(std::shared_ptr< ome::xml::model::primitives::Timestamp > &startTime)
Set the StartTime property.
Definition: PlateAcquisition.cpp:428
OMEModelObject::indexed_container< ome::xml::model::Annotation, std::weak_ptr >::type getLinkedAnnotationList() const
Get the linked Annotation list.
Definition: PlateAcquisition.cpp:543
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:555
OMEModelObject::indexed_container< ome::xml::model::WellSample, std::weak_ptr >::type getLinkedWellSampleList() const
Get the linked WellSample list.
Definition: PlateAcquisition.cpp:483
virtual ~PlateAcquisition()
Destructor.
Definition: PlateAcquisition.cpp:185
PlateAcquisition()
Default constructor.
Definition: PlateAcquisition.cpp:170
void setEndTime(std::shared_ptr< ome::xml::model::primitives::Timestamp > &endTime)
Set the EndTime property.
Definition: PlateAcquisition.cpp:393