46 #ifndef OME_XML_MODEL_WELL_H 47 #define OME_XML_MODEL_WELL_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/Plate.h> 64 #include <ome/xml/model/Reagent.h> 65 #include <ome/xml/model/detail/OMEModelObject.h> 66 #include <ome/xml/model/primitives/Color.h> 67 #include <ome/xml/model/primitives/NonNegativeInteger.h> 89 std::shared_ptr<Impl>
impl;
120 static std::shared_ptr<Well>
134 operator= (
const Well&) =
delete;
149 link (std::shared_ptr<Reference>& reference,
150 std::shared_ptr<ome::xml::model::OMEModelObject>&
object);
157 std::shared_ptr<std::string>
165 const std::shared_ptr<std::string>
197 std::shared_ptr<std::string>
205 const std::shared_ptr<std::string>
221 std::shared_ptr<ome::xml::model::primitives::Color>
229 const std::shared_ptr<ome::xml::model::primitives::Color>
238 setColor (std::shared_ptr<ome::xml::model::primitives::Color>& color);
245 std::shared_ptr<std::string>
253 const std::shared_ptr<std::string>
262 setType (std::shared_ptr<std::string>& type);
278 setID (
const std::string&
id);
301 std::vector<std::shared_ptr<ome::xml::model::WellSample>>::size_type
310 std::vector<std::shared_ptr<ome::xml::model::WellSample>>&
319 const std::vector<std::shared_ptr<ome::xml::model::WellSample>>&
329 std::shared_ptr<ome::xml::model::WellSample>&
330 getWellSample (std::vector<std::shared_ptr<ome::xml::model::WellSample>>::size_type index);
339 const std::shared_ptr<ome::xml::model::WellSample>&
340 getWellSample (std::vector<std::shared_ptr<ome::xml::model::WellSample>>::size_type index)
const;
350 setWellSample (std::vector<std::shared_ptr<ome::xml::model::WellSample>>::size_type index,
351 std::shared_ptr<ome::xml::model::WellSample>& wellSample);
362 addWellSample (std::shared_ptr<ome::xml::model::WellSample>& wellSample);
374 removeWellSample (std::shared_ptr<ome::xml::model::WellSample>& wellSample);
382 std::weak_ptr<ome::xml::model::Reagent>
391 const std::weak_ptr<ome::xml::model::Reagent>
400 linkReagent (std::shared_ptr<ome::xml::model::Reagent>& reagent);
412 unlinkReagent (std::shared_ptr<ome::xml::model::Reagent>& reagent);
437 const std::weak_ptr<ome::xml::model::Annotation>&
450 const std::weak_ptr<ome::xml::model::Annotation>&
452 const std::shared_ptr<ome::xml::model::Annotation>& annotation);
465 linkAnnotation (
const std::shared_ptr<ome::xml::model::Annotation>& annotation);
483 unlinkAnnotation (
const std::shared_ptr<ome::xml::model::Annotation>& annotation);
490 std::weak_ptr<ome::xml::model::Plate>
498 const std::weak_ptr<ome::xml::model::Plate>
507 setPlate (std::weak_ptr<ome::xml::model::Plate>& plate_BackReference);
525 #endif // OME_XML_MODEL_WELL_H OME model interface (abstract top-level container)
Definition: OMEModel.h:61
const std::string & getID() const
Get the ID property.
Definition: Well.cpp:491
OMEModelObject::indexed_container< ome::xml::model::Annotation, std::weak_ptr >::type getLinkedAnnotationList() const
Get the linked Annotation list.
Definition: Well.cpp:612
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::string & elementName() const
Get the element name of this model object.
Definition: Well.cpp:226
OME model object (concrete implementation).
Definition: OMEModelObject.h:64
void setRow(const ome::xml::model::primitives::NonNegativeInteger &row)
Set the Row property.
Definition: Well.cpp:512
static std::shared_ptr< Well > create(const common::xml::dom::Element &element, ome::xml::model::OMEModel &model)
Create a Well model object from DOM element.
Definition: Well.cpp:217
void setWellSample(std::vector< std::shared_ptr< ome::xml::model::WellSample >>::size_type index, std::shared_ptr< ome::xml::model::WellSample > &wellSample)
Set WellSample.
Definition: Well.cpp:549
void setType(std::shared_ptr< std::string > &type)
Set the Type property.
Definition: Well.cpp:484
std::vector< std::shared_ptr< ome::xml::model::WellSample > >::size_type sizeOfWellSampleList() const
Get size of linked WellSample list.
Definition: Well.cpp:519
Well model object.
Definition: Well.h:84
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: Well.cpp:686
const std::string & getXMLNamespace() const
Get the XML namespace for this model object.
Definition: Well.cpp:811
virtual ~Well()
Destructor.
Definition: Well.cpp:212
std::vector< std::shared_ptr< ome::xml::model::WellSample > > & getWellSampleList()
Get the WellSample list.
Definition: Well.cpp:525
const ome::xml::model::primitives::NonNegativeInteger & getColumn() const
Get the Column property.
Definition: Well.cpp:414
Multi-index container for efficient ordered insertion and deletion of model object references...
Definition: OMEModelObject.h:84
void setExternalIdentifier(std::shared_ptr< std::string > &externalIdentifier)
Set the ExternalIdentifier property.
Definition: Well.cpp:407
std::weak_ptr< ome::xml::model::Reagent > getLinkedReagent()
Get linked Reagent.
Definition: Well.cpp:577
void unlinkReagent(std::shared_ptr< ome::xml::model::Reagent > &reagent)
Unlink Reagent.
Definition: Well.cpp:596
Open Microscopy Environment C++ implementation.
bool validElementName(const std::string &name) const
Check if a given element name is valid for processing by this model object.
Definition: Well.cpp:233
void setID(const std::string &id)
Set the ID property.
Definition: Well.cpp:498
std::shared_ptr< ome::xml::model::WellSample > & getWellSample(std::vector< std::shared_ptr< ome::xml::model::WellSample >>::size_type index)
Get WellSample.
Definition: Well.cpp:537
bool unlinkAnnotation(const std::shared_ptr< ome::xml::model::Annotation > &annotation)
Unlink Annotation.
Definition: Well.cpp:648
std::shared_ptr< std::string > getExternalIdentifier()
Get the ExternalIdentifier property.
Definition: Well.cpp:393
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: Well.cpp:618
void removeWellSample(std::shared_ptr< ome::xml::model::WellSample > &wellSample)
Remove WellSample.
Definition: Well.cpp:566
void setColumn(const ome::xml::model::primitives::NonNegativeInteger &column)
Set the Column property.
Definition: Well.cpp:421
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: Well.cpp:624
std::shared_ptr< std::string > getType()
Get the Type property.
Definition: Well.cpp:470
void linkReagent(std::shared_ptr< ome::xml::model::Reagent > &reagent)
Link Reagent.
Definition: Well.cpp:590
std::shared_ptr< ome::xml::model::primitives::Color > getColor()
Get the Color property.
Definition: Well.cpp:449
Private implementation details of Well model object.
Definition: Well.cpp:80
OMEModelObject::indexed_container< ome::xml::model::Annotation, std::weak_ptr >::type::size_type sizeOfLinkedAnnotationList() const
Get size of linked Annotation list.
Definition: Well.cpp:606
void setColor(std::shared_ptr< ome::xml::model::primitives::Color > &color)
Set the Color property.
Definition: Well.cpp:463
std::weak_ptr< ome::xml::model::Plate > getPlate()
Get the Plate property.
Definition: Well.cpp:666
void setExternalDescription(std::shared_ptr< std::string > &externalDescription)
Set the ExternalDescription property.
Definition: Well.cpp:442
void addWellSample(std::shared_ptr< ome::xml::model::WellSample > &wellSample)
Add WellSample.
Definition: Well.cpp:558
bool linkAnnotation(const std::shared_ptr< ome::xml::model::Annotation > &annotation)
Link Annotation.
Definition: Well.cpp:634
std::shared_ptr< std::string > getExternalDescription()
Get the ExternalDescription property.
Definition: Well.cpp:428
void setPlate(std::weak_ptr< ome::xml::model::Plate > &plate_BackReference)
Set the Plate property.
Definition: Well.cpp:680
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: Well.cpp:351
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: Well.cpp:239
Well()
Default constructor.
Definition: Well.cpp:193
const ome::xml::model::primitives::NonNegativeInteger & getRow() const
Get the Row property.
Definition: Well.cpp:505
A numeric type constrained to a subrange (or subranges) of its range limits.
Definition: ConstrainedNumeric.h:118
std::shared_ptr< Impl > impl
Private implementation details.
Definition: Well.h:87