bioformats  5.1.3
PlateAcquisition.h
1 /*
2  * #%L
3  * OME-XML C++ library for working with OME-XML metadata structures.
4  * %%
5  * Copyright © 2006 - 2015 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 #include <ome/common/xml/dom/NodeList.h>
61 
62 #include <ome/xml/model/Plate.h>
63 #include <ome/xml/model/detail/OMEModelObject.h>
64 #include <ome/xml/model/primitives/PositiveInteger.h>
65 #include <ome/xml/model/primitives/Timestamp.h>
66 
67 namespace ome
68 {
69  namespace xml
70  {
71  namespace model
72  {
73 
74  // Forward declarations.
75  class Annotation;
76  class OMEModel;
77  class WellSample;
78 
83  {
84  private:
86  ome::compat::shared_ptr<ome::xml::model::primitives::PositiveInteger> maximumFieldCount;
88  ome::compat::shared_ptr<ome::xml::model::primitives::Timestamp> endTime;
90  std::string id;
92  ome::compat::shared_ptr<ome::xml::model::primitives::Timestamp> startTime;
94  ome::compat::shared_ptr<std::string> name;
96  ome::compat::shared_ptr<std::string> description;
102  ome::compat::weak_ptr<ome::xml::model::Plate> plate;
103 
104  public:
106  PlateAcquisition ();
107 
113  PlateAcquisition (const PlateAcquisition& copy);
114 
116  virtual
118 
119 
120 
135  static ome::compat::shared_ptr< PlateAcquisition>
136  create(const common::xml::dom::Element& element,
138 
139  // Documented in superclass.
140  const std::string&
141  elementName() const;
142 
143  // Documented in superclass.
144  bool
145  validElementName(const std::string& name) const;
146 
147 
148  // -- OMEModelObject API methods --
149 
151  virtual void
152  update(const common::xml::dom::Element& element,
154 
155  public:
156  // -- PlateAcquisition API methods --
157 
159  bool
160  link (ome::compat::shared_ptr<Reference>& reference,
161  ome::compat::shared_ptr< ome::xml::model::OMEModelObject>& object);
162 
168  ome::compat::shared_ptr<ome::xml::model::primitives::PositiveInteger>
170 
176  const ome::compat::shared_ptr<ome::xml::model::primitives::PositiveInteger>
177  getMaximumFieldCount () const;
178 
184  void
185  setMaximumFieldCount (ome::compat::shared_ptr<ome::xml::model::primitives::PositiveInteger>& maximumFieldCount);
186 
192  ome::compat::shared_ptr<ome::xml::model::primitives::Timestamp>
193  getEndTime ();
194 
200  const ome::compat::shared_ptr<ome::xml::model::primitives::Timestamp>
201  getEndTime () const;
202 
208  void
209  setEndTime (ome::compat::shared_ptr<ome::xml::model::primitives::Timestamp>& endTime);
210 
216  const std::string&
217  getID () const;
218 
224  void
225  setID (const std::string& id);
226 
232  ome::compat::shared_ptr<ome::xml::model::primitives::Timestamp>
233  getStartTime ();
234 
240  const ome::compat::shared_ptr<ome::xml::model::primitives::Timestamp>
241  getStartTime () const;
242 
248  void
249  setStartTime (ome::compat::shared_ptr<ome::xml::model::primitives::Timestamp>& startTime);
250 
256  ome::compat::shared_ptr<std::string>
257  getName ();
258 
264  const ome::compat::shared_ptr<std::string>
265  getName () const;
266 
272  void
273  setName (ome::compat::shared_ptr<std::string>& name);
274 
280  ome::compat::shared_ptr<std::string>
281  getDescription ();
282 
288  const ome::compat::shared_ptr<std::string>
289  getDescription () const;
290 
296  void
297  setDescription (ome::compat::shared_ptr<std::string>& description);
298 
306 
313  getLinkedWellSampleList () const;
314 
322  const ome::compat::weak_ptr<ome::xml::model::WellSample>&
324 
335  const ome::compat::weak_ptr<ome::xml::model::WellSample>&
337  const ome::compat::shared_ptr<ome::xml::model::WellSample>& wellSample);
338 
349  bool
350  linkWellSample (const ome::compat::shared_ptr<ome::xml::model::WellSample>& wellSample);
351 
367  bool
368  unlinkWellSample (const ome::compat::shared_ptr<ome::xml::model::WellSample>& wellSample);
369 
377 
384  getLinkedAnnotationList () const;
385 
393  const ome::compat::weak_ptr<ome::xml::model::Annotation>&
395 
406  const ome::compat::weak_ptr<ome::xml::model::Annotation>&
408  const ome::compat::shared_ptr<ome::xml::model::Annotation>& annotation);
409 
420  bool
421  linkAnnotation (const ome::compat::shared_ptr<ome::xml::model::Annotation>& annotation);
422 
438  bool
439  unlinkAnnotation (const ome::compat::shared_ptr<ome::xml::model::Annotation>& annotation);
440 
446  ome::compat::weak_ptr<ome::xml::model::Plate>
447  getPlate ();
448 
454  const ome::compat::weak_ptr<ome::xml::model::Plate>
455  getPlate () const;
456 
462  void
463  setPlate (ome::compat::weak_ptr<ome::xml::model::Plate>& plate_BackReference);
464 
465 
468  asXMLElement (common::xml::dom::Document& document) const;
469 
470 
471  protected:
472  // Documented in base class.
475  common::xml::dom::Element& element) const;
476 
477  public:
478  // Documented in superclass.
479  const std::string&
480  getXMLNamespace() const;
481  };
482 
483  }
484  }
485 }
486 
487 #endif // OME_XML_MODEL_PLATEACQUISITION_H
488 
489 /*
490  * Local Variables:
491  * mode:C++
492  * End:
493  */
OME model interface (abstract top-level container)
Definition: OMEModel.h:62
void setDescription(ome::compat::shared_ptr< std::string > &description)
Set the Description property.
Definition: PlateAcquisition.cpp:450
ome::compat::shared_ptr< std::string > getName()
Get the Name property.
Definition: PlateAcquisition.cpp:415
void setName(ome::compat::shared_ptr< std::string > &name)
Set the Name property.
Definition: PlateAcquisition.cpp:429
OMEModelObject::indexed_container< ome::xml::model::WellSample, ome::compat::weak_ptr >::type wellSamples
WellSampleRef reference (occurs more than once)
Definition: PlateAcquisition.h:98
static ome::compat::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:164
const std::string & getXMLNamespace() const
Get the XML namespace for this model object.
Definition: PlateAcquisition.cpp:738
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: PlateAcquisition.cpp:291
bool linkAnnotation(const ome::compat::shared_ptr< ome::xml::model::Annotation > &annotation)
Link Annotation.
Definition: PlateAcquisition.cpp:545
OMEModelObject::indexed_container< ome::xml::model::Annotation, ome::compat::weak_ptr >::type getLinkedAnnotationList() const
Get the linked Annotation list.
Definition: PlateAcquisition.cpp:523
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: PlateAcquisition.cpp:605
ome::compat::shared_ptr< ome::xml::model::primitives::PositiveInteger > maximumFieldCount
MaximumFieldCount property.
Definition: PlateAcquisition.h:86
DOM Document wrapper.
Definition: Document.h:82
DOM Element wrapper.
Definition: Element.h:66
OME model object (concrete implementation).
Definition: OMEModelObject.h:64
ome::compat::shared_ptr< ome::xml::model::primitives::PositiveInteger > getMaximumFieldCount()
Get the MaximumFieldCount property.
Definition: PlateAcquisition.cpp:338
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
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: PlateAcquisition.cpp:535
OMEModelObject::indexed_container< ome::xml::model::WellSample, ome::compat::weak_ptr >::type::size_type sizeOfLinkedWellSampleList() const
Get size of linked WellSample list.
Definition: PlateAcquisition.cpp:457
OMEModelObject::indexed_container< ome::xml::model::WellSample, ome::compat::weak_ptr >::type getLinkedWellSampleList() const
Get the linked WellSample list.
Definition: PlateAcquisition.cpp:463
const std::string & elementName() const
Get the element name of this model object.
Definition: PlateAcquisition.cpp:173
PlateAcquisition model object.
Definition: PlateAcquisition.h:82
Multi-index container for efficient ordered insertion and deletion of model object references...
Definition: OMEModelObject.h:85
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:189
void setStartTime(ome::compat::shared_ptr< ome::xml::model::primitives::Timestamp > &startTime)
Set the StartTime property.
Definition: PlateAcquisition.cpp:408
OMEModelObject::indexed_container< ome::xml::model::Annotation, ome::compat::weak_ptr >::type::size_type sizeOfLinkedAnnotationList() const
Get size of linked Annotation list.
Definition: PlateAcquisition.cpp:517
Open Microscopy Environment C++ implementation.
Definition: CoreMetadata.cpp:40
ome::compat::shared_ptr< std::string > description
Description property.
Definition: PlateAcquisition.h:96
ome::compat::shared_ptr< std::string > name
Name property.
Definition: PlateAcquisition.h:94
std::string id
ID property.
Definition: PlateAcquisition.h:90
ome::compat::shared_ptr< ome::xml::model::primitives::Timestamp > endTime
EndTime property.
Definition: PlateAcquisition.h:88
OMEModelObject::indexed_container< ome::xml::model::Annotation, ome::compat::weak_ptr >::type annotationLinks
AnnotationRef reference (occurs more than once)
Definition: PlateAcquisition.h:100
ome::compat::shared_ptr< ome::xml::model::primitives::Timestamp > startTime
StartTime property.
Definition: PlateAcquisition.h:92
bool linkWellSample(const ome::compat::shared_ptr< ome::xml::model::WellSample > &wellSample)
Link WellSample.
Definition: PlateAcquisition.cpp:485
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: PlateAcquisition.cpp:529
ome::compat::shared_ptr< std::string > getDescription()
Get the Description property.
Definition: PlateAcquisition.cpp:436
void setID(const std::string &id)
Set the ID property.
Definition: PlateAcquisition.cpp:387
bool unlinkAnnotation(const ome::compat::shared_ptr< ome::xml::model::Annotation > &annotation)
Unlink Annotation.
Definition: PlateAcquisition.cpp:559
ome::compat::weak_ptr< ome::xml::model::Plate > getPlate()
Get the Plate property.
Definition: PlateAcquisition.cpp:577
void setMaximumFieldCount(ome::compat::shared_ptr< ome::xml::model::primitives::PositiveInteger > &maximumFieldCount)
Set the MaximumFieldCount property.
Definition: PlateAcquisition.cpp:352
const std::string & getID() const
Get the ID property.
Definition: PlateAcquisition.cpp:380
bool unlinkWellSample(const ome::compat::shared_ptr< ome::xml::model::WellSample > &wellSample)
Unlink WellSample.
Definition: PlateAcquisition.cpp:499
virtual common::xml::dom::Element asXMLElement(common::xml::dom::Document &document) const
Transform the object hierarchy rooted at this element to XML.
Definition: PlateAcquisition.cpp:598
bool validElementName(const std::string &name) const
Check if a given element name is valid for processing by this model object.
Definition: PlateAcquisition.cpp:180
void setPlate(ome::compat::weak_ptr< ome::xml::model::Plate > &plate_BackReference)
Set the Plate property.
Definition: PlateAcquisition.cpp:591
const ome::compat::weak_ptr< ome::xml::model::WellSample > & getLinkedWellSample(OMEModelObject::indexed_container< ome::xml::model::WellSample, ome::compat::weak_ptr >::type::size_type index) const
Get linked WellSample.
Definition: PlateAcquisition.cpp:469
Boost.Log compatibility.
const ome::compat::weak_ptr< ome::xml::model::WellSample > & setLinkedWellSample(OMEModelObject::indexed_container< ome::xml::model::WellSample, ome::compat::weak_ptr >::type::size_type index, const ome::compat::shared_ptr< ome::xml::model::WellSample > &wellSample)
Set linked WellSample.
Definition: PlateAcquisition.cpp:475
void setEndTime(ome::compat::shared_ptr< ome::xml::model::primitives::Timestamp > &endTime)
Set the EndTime property.
Definition: PlateAcquisition.cpp:373
ome::compat::shared_ptr< ome::xml::model::primitives::Timestamp > getStartTime()
Get the StartTime property.
Definition: PlateAcquisition.cpp:394
ome::compat::shared_ptr< ome::xml::model::primitives::Timestamp > getEndTime()
Get the EndTime property.
Definition: PlateAcquisition.cpp:359
virtual ~PlateAcquisition()
Destructor.
Definition: PlateAcquisition.cpp:159
PlateAcquisition()
Default constructor.
Definition: PlateAcquisition.cpp:124
ome::compat::weak_ptr< ome::xml::model::Plate > plate
Plate_BackReference back reference.
Definition: PlateAcquisition.h:102
Xerces-C modern C++ wrapper.
Definition: Base.h:53