46 #ifndef OME_XML_MODEL_SCREEN_H 47 #define OME_XML_MODEL_SCREEN_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> 86 std::shared_ptr<Impl>
impl;
117 static std::shared_ptr<Screen>
131 operator= (
const Screen&) =
delete;
146 link (std::shared_ptr<Reference>& reference,
147 std::shared_ptr<ome::xml::model::OMEModelObject>&
object);
154 std::shared_ptr<std::string>
162 const std::shared_ptr<std::string>
171 setName (std::shared_ptr<std::string>& name);
178 std::shared_ptr<std::string>
186 const std::shared_ptr<std::string>
202 std::shared_ptr<std::string>
210 const std::shared_ptr<std::string>
226 std::shared_ptr<std::string>
234 const std::shared_ptr<std::string>
250 std::shared_ptr<std::string>
258 const std::shared_ptr<std::string>
267 setType (std::shared_ptr<std::string>& type);
283 setID (
const std::string&
id);
290 std::shared_ptr<std::string>
298 const std::shared_ptr<std::string>
314 std::shared_ptr<std::string>
322 const std::shared_ptr<std::string>
338 std::vector<std::shared_ptr<ome::xml::model::Reagent>>::size_type
347 std::vector<std::shared_ptr<ome::xml::model::Reagent>>&
356 const std::vector<std::shared_ptr<ome::xml::model::Reagent>>&
366 std::shared_ptr<ome::xml::model::Reagent>&
367 getReagent (std::vector<std::shared_ptr<ome::xml::model::Reagent>>::size_type index);
376 const std::shared_ptr<ome::xml::model::Reagent>&
377 getReagent (std::vector<std::shared_ptr<ome::xml::model::Reagent>>::size_type index)
const;
387 setReagent (std::vector<std::shared_ptr<ome::xml::model::Reagent>>::size_type index,
388 std::shared_ptr<ome::xml::model::Reagent>& reagent);
399 addReagent (std::shared_ptr<ome::xml::model::Reagent>& reagent);
411 removeReagent (std::shared_ptr<ome::xml::model::Reagent>& reagent);
436 const std::weak_ptr<ome::xml::model::Plate>&
449 const std::weak_ptr<ome::xml::model::Plate>&
451 const std::shared_ptr<ome::xml::model::Plate>& plate);
464 linkPlate (
const std::shared_ptr<ome::xml::model::Plate>& plate);
482 unlinkPlate (
const std::shared_ptr<ome::xml::model::Plate>& plate);
507 const std::weak_ptr<ome::xml::model::Annotation>&
520 const std::weak_ptr<ome::xml::model::Annotation>&
522 const std::shared_ptr<ome::xml::model::Annotation>& annotation);
535 linkAnnotation (
const std::shared_ptr<ome::xml::model::Annotation>& annotation);
553 unlinkAnnotation (
const std::shared_ptr<ome::xml::model::Annotation>& annotation);
571 #endif // OME_XML_MODEL_SCREEN_H OME model interface (abstract top-level container)
Definition: OMEModel.h:61
bool unlinkAnnotation(const std::shared_ptr< ome::xml::model::Annotation > &annotation)
Unlink Annotation.
Definition: Screen.cpp:730
static std::shared_ptr< Screen > create(const common::xml::dom::Element &element, ome::xml::model::OMEModel &model)
Create a Screen model object from DOM element.
Definition: Screen.cpp:213
std::shared_ptr< std::string > getName()
Get the Name property.
Definition: Screen.cpp:409
bool unlinkPlate(const std::shared_ptr< ome::xml::model::Plate > &plate)
Unlink Plate.
Definition: Screen.cpp:670
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: Screen.cpp:706
OMEModelObject::indexed_container< ome::xml::model::Plate, std::weak_ptr >::type::size_type sizeOfLinkedPlateList() const
Get size of linked Plate list.
Definition: Screen.cpp:628
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
OMEModelObject::indexed_container< ome::xml::model::Annotation, std::weak_ptr >::type getLinkedAnnotationList() const
Get the linked Annotation list.
Definition: Screen.cpp:694
OME model object (concrete implementation).
Definition: OMEModelObject.h:64
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: Screen.cpp:700
Screen()
Default constructor.
Definition: Screen.cpp:189
bool validElementName(const std::string &name) const
Check if a given element name is valid for processing by this model object.
Definition: Screen.cpp:229
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: Screen.cpp:235
std::shared_ptr< Impl > impl
Private implementation details.
Definition: Screen.h:84
void setName(std::shared_ptr< std::string > &name)
Set the Name property.
Definition: Screen.cpp:423
void setReagent(std::vector< std::shared_ptr< ome::xml::model::Reagent >>::size_type index, std::shared_ptr< ome::xml::model::Reagent > &reagent)
Set Reagent.
Definition: Screen.cpp:600
std::shared_ptr< std::string > getProtocolDescription()
Get the ProtocolDescription property.
Definition: Screen.cpp:430
bool linkPlate(const std::shared_ptr< ome::xml::model::Plate > &plate)
Link Plate.
Definition: Screen.cpp:656
const std::weak_ptr< ome::xml::model::Plate > & getLinkedPlate(OMEModelObject::indexed_container< ome::xml::model::Plate, std::weak_ptr >::type::size_type index) const
Get linked Plate.
Definition: Screen.cpp:640
bool linkAnnotation(const std::shared_ptr< ome::xml::model::Annotation > &annotation)
Link Annotation.
Definition: Screen.cpp:716
void addReagent(std::shared_ptr< ome::xml::model::Reagent > &reagent)
Add Reagent.
Definition: Screen.cpp:609
std::shared_ptr< std::string > getType()
Get the Type property.
Definition: Screen.cpp:493
void setType(std::shared_ptr< std::string > &type)
Set the Type property.
Definition: Screen.cpp:507
Screen model object.
Definition: Screen.h:81
Multi-index container for efficient ordered insertion and deletion of model object references...
Definition: OMEModelObject.h:84
std::shared_ptr< ome::xml::model::Reagent > & getReagent(std::vector< std::shared_ptr< ome::xml::model::Reagent >>::size_type index)
Get Reagent.
Definition: Screen.cpp:588
Open Microscopy Environment C++ implementation.
void setReagentSetIdentifier(std::shared_ptr< std::string > &reagentSetIdentifier)
Set the ReagentSetIdentifier property.
Definition: Screen.cpp:542
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: Screen.cpp:747
std::shared_ptr< std::string > getReagentSetDescription()
Get the ReagentSetDescription property.
Definition: Screen.cpp:472
std::vector< std::shared_ptr< ome::xml::model::Reagent > >::size_type sizeOfReagentList() const
Get size of linked Reagent list.
Definition: Screen.cpp:570
void removeReagent(std::shared_ptr< ome::xml::model::Reagent > &reagent)
Remove Reagent.
Definition: Screen.cpp:617
void setProtocolDescription(std::shared_ptr< std::string > &protocolDescription)
Set the ProtocolDescription property.
Definition: Screen.cpp:444
OMEModelObject::indexed_container< ome::xml::model::Annotation, std::weak_ptr >::type::size_type sizeOfLinkedAnnotationList() const
Get size of linked Annotation list.
Definition: Screen.cpp:688
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: Screen.cpp:362
virtual ~Screen()
Destructor.
Definition: Screen.cpp:208
void setProtocolIdentifier(std::shared_ptr< std::string > &protocolIdentifier)
Set the ProtocolIdentifier property.
Definition: Screen.cpp:465
void setDescription(std::shared_ptr< std::string > &description)
Set the Description property.
Definition: Screen.cpp:563
void setReagentSetDescription(std::shared_ptr< std::string > &reagentSetDescription)
Set the ReagentSetDescription property.
Definition: Screen.cpp:486
const std::string & elementName() const
Get the element name of this model object.
Definition: Screen.cpp:222
const std::string & getID() const
Get the ID property.
Definition: Screen.cpp:514
Private implementation details of Screen model object.
Definition: Screen.cpp:76
const std::string & getXMLNamespace() const
Get the XML namespace for this model object.
Definition: Screen.cpp:895
std::shared_ptr< std::string > getDescription()
Get the Description property.
Definition: Screen.cpp:549
const std::weak_ptr< ome::xml::model::Plate > & setLinkedPlate(OMEModelObject::indexed_container< ome::xml::model::Plate, std::weak_ptr >::type::size_type index, const std::shared_ptr< ome::xml::model::Plate > &plate)
Set linked Plate.
Definition: Screen.cpp:646
OMEModelObject::indexed_container< ome::xml::model::Plate, std::weak_ptr >::type getLinkedPlateList() const
Get the linked Plate list.
Definition: Screen.cpp:634
std::vector< std::shared_ptr< ome::xml::model::Reagent > > & getReagentList()
Get the Reagent list.
Definition: Screen.cpp:576
std::shared_ptr< std::string > getProtocolIdentifier()
Get the ProtocolIdentifier property.
Definition: Screen.cpp:451
std::shared_ptr< std::string > getReagentSetIdentifier()
Get the ReagentSetIdentifier property.
Definition: Screen.cpp:528
void setID(const std::string &id)
Set the ID property.
Definition: Screen.cpp:521