46 #ifndef OME_XML_MODEL_PLATE_H 47 #define OME_XML_MODEL_PLATE_H 57 #include <ome/common/xml/dom/Document.h> 58 #include <ome/common/xml/dom/Element.h> 59 #include <ome/common/xml/dom/Node.h> 61 #include <ome/xml/model/primitives/Quantity.h> 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> 79 class PlateAcquisition;
91 std::shared_ptr<Impl>
impl;
122 static std::shared_ptr<Plate>
136 operator= (
const Plate&) =
delete;
151 link (std::shared_ptr<Reference>& reference,
152 std::shared_ptr<ome::xml::model::OMEModelObject>&
object);
159 std::shared_ptr<std::string>
167 const std::shared_ptr<std::string>
176 setStatus (std::shared_ptr<std::string>& status);
183 std::shared_ptr<ome::xml::model::primitives::PositiveInteger>
191 const std::shared_ptr<ome::xml::model::primitives::PositiveInteger>
200 setRows (std::shared_ptr<ome::xml::model::primitives::PositiveInteger>& rows);
207 std::shared_ptr<std::string>
215 const std::shared_ptr<std::string>
231 std::shared_ptr<ome::xml::model::enums::NamingConvention>
239 const std::shared_ptr<ome::xml::model::enums::NamingConvention>
255 std::shared_ptr<ome::xml::model::enums::NamingConvention>
263 const std::shared_ptr<ome::xml::model::enums::NamingConvention>
279 std::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
287 const std::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>
296 setFieldIndex (std::shared_ptr<ome::xml::model::primitives::NonNegativeInteger>& fieldIndex);
303 std::shared_ptr<ome::xml::model::primitives::PositiveInteger>
311 const std::shared_ptr<ome::xml::model::primitives::PositiveInteger>
320 setColumns (std::shared_ptr<ome::xml::model::primitives::PositiveInteger>& columns);
327 std::shared_ptr<ome::xml::model::primitives::Quantity<ome::xml::model::enums::UnitsLength > >&
335 const std::shared_ptr<ome::xml::model::primitives::Quantity<ome::xml::model::enums::UnitsLength > >&
351 std::shared_ptr<ome::xml::model::primitives::Quantity<ome::xml::model::enums::UnitsLength > >&
359 const std::shared_ptr<ome::xml::model::primitives::Quantity<ome::xml::model::enums::UnitsLength > >&
384 setID (
const std::string&
id);
391 std::shared_ptr<std::string>
399 const std::shared_ptr<std::string>
408 setName (std::shared_ptr<std::string>& name);
415 std::shared_ptr<std::string>
423 const std::shared_ptr<std::string>
439 std::vector<std::shared_ptr<ome::xml::model::Well>>::size_type
448 std::vector<std::shared_ptr<ome::xml::model::Well>>&
457 const std::vector<std::shared_ptr<ome::xml::model::Well>>&
467 std::shared_ptr<ome::xml::model::Well>&
468 getWell (std::vector<std::shared_ptr<ome::xml::model::Well>>::size_type index);
477 const std::shared_ptr<ome::xml::model::Well>&
478 getWell (std::vector<std::shared_ptr<ome::xml::model::Well>>::size_type index)
const;
488 setWell (std::vector<std::shared_ptr<ome::xml::model::Well>>::size_type index,
489 std::shared_ptr<ome::xml::model::Well>& well);
500 addWell (std::shared_ptr<ome::xml::model::Well>& well);
512 removeWell (std::shared_ptr<ome::xml::model::Well>& well);
537 const std::weak_ptr<ome::xml::model::Annotation>&
550 const std::weak_ptr<ome::xml::model::Annotation>&
552 const std::shared_ptr<ome::xml::model::Annotation>& annotation);
565 linkAnnotation (
const std::shared_ptr<ome::xml::model::Annotation>& annotation);
583 unlinkAnnotation (
const std::shared_ptr<ome::xml::model::Annotation>& annotation);
590 std::vector<std::shared_ptr<ome::xml::model::PlateAcquisition>>::size_type
599 std::vector<std::shared_ptr<ome::xml::model::PlateAcquisition>>&
608 const std::vector<std::shared_ptr<ome::xml::model::PlateAcquisition>>&
618 std::shared_ptr<ome::xml::model::PlateAcquisition>&
619 getPlateAcquisition (std::vector<std::shared_ptr<ome::xml::model::PlateAcquisition>>::size_type index);
628 const std::shared_ptr<ome::xml::model::PlateAcquisition>&
629 getPlateAcquisition (std::vector<std::shared_ptr<ome::xml::model::PlateAcquisition>>::size_type index)
const;
639 setPlateAcquisition (std::vector<std::shared_ptr<ome::xml::model::PlateAcquisition>>::size_type index,
640 std::shared_ptr<ome::xml::model::PlateAcquisition>& plateAcquisition);
651 addPlateAcquisition (std::shared_ptr<ome::xml::model::PlateAcquisition>& plateAcquisition);
688 const std::weak_ptr<ome::xml::model::Screen>&
701 const std::weak_ptr<ome::xml::model::Screen>&
703 const std::shared_ptr<ome::xml::model::Screen>& screen_BackReference);
716 linkScreen (
const std::shared_ptr<ome::xml::model::Screen>& screen_BackReference);
734 unlinkScreen (
const std::shared_ptr<ome::xml::model::Screen>& screen_BackReference);
752 #endif // OME_XML_MODEL_PLATE_H 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