46 #ifndef OME_XML_MODEL_EXPERIMENT_H
47 #define OME_XML_MODEL_EXPERIMENT_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>
60 #include <ome/common/xml/dom/NodeList.h>
62 #include <ome/xml/model/Experimenter.h>
63 #include <ome/xml/model/detail/OMEModelObject.h>
64 #include <ome/xml/model/enums/ExperimentType.h>
75 class MicrobeamManipulation;
86 ome::compat::shared_ptr<Impl>
impl;
117 static ome::compat::shared_ptr< Experiment>
142 link (ome::compat::shared_ptr<Reference>& reference,
143 ome::compat::shared_ptr< ome::xml::model::OMEModelObject>&
object);
150 ome::compat::shared_ptr<ome::xml::model::enums::ExperimentType>
158 const ome::compat::shared_ptr<ome::xml::model::enums::ExperimentType>
167 setType (ome::compat::shared_ptr<ome::xml::model::enums::ExperimentType>& type);
183 setID (
const std::string&
id);
190 ome::compat::shared_ptr<std::string>
198 const ome::compat::shared_ptr<std::string>
207 setDescription (ome::compat::shared_ptr<std::string>& description);
215 ome::compat::weak_ptr<ome::xml::model::Experimenter>
224 const ome::compat::weak_ptr<ome::xml::model::Experimenter>
233 linkExperimenter (ome::compat::shared_ptr<ome::xml::model::Experimenter>& experimenter);
245 unlinkExperimenter (ome::compat::shared_ptr<ome::xml::model::Experimenter>& experimenter);
252 std::vector<ome::compat::shared_ptr<ome::xml::model::MicrobeamManipulation> >::size_type
261 std::vector<ome::compat::shared_ptr<ome::xml::model::MicrobeamManipulation> >&
270 const std::vector<ome::compat::shared_ptr<ome::xml::model::MicrobeamManipulation> >&
280 ome::compat::shared_ptr<ome::xml::model::MicrobeamManipulation>&
281 getMicrobeamManipulation (std::vector<ome::compat::shared_ptr<ome::xml::model::MicrobeamManipulation> >::size_type index);
290 const ome::compat::shared_ptr<ome::xml::model::MicrobeamManipulation>&
291 getMicrobeamManipulation (std::vector<ome::compat::shared_ptr<ome::xml::model::MicrobeamManipulation> >::size_type index)
const;
301 setMicrobeamManipulation (std::vector<ome::compat::shared_ptr<ome::xml::model::MicrobeamManipulation> >::size_type index,
302 ome::compat::shared_ptr<ome::xml::model::MicrobeamManipulation>& microbeamManipulation);
350 const ome::compat::weak_ptr<ome::xml::model::Image>&
363 const ome::compat::weak_ptr<ome::xml::model::Image>&
365 const ome::compat::shared_ptr<ome::xml::model::Image>& image_BackReference);
378 linkImage (
const ome::compat::shared_ptr<ome::xml::model::Image>& image_BackReference);
396 unlinkImage (
const ome::compat::shared_ptr<ome::xml::model::Image>& image_BackReference);
420 #endif // OME_XML_MODEL_EXPERIMENT_H
ome::compat::shared_ptr< ome::xml::model::MicrobeamManipulation > & getMicrobeamManipulation(std::vector< ome::compat::shared_ptr< ome::xml::model::MicrobeamManipulation > >::size_type index)
Get MicrobeamManipulation.
Definition: Experiment.cpp:406
OME model interface (abstract top-level container)
Definition: OMEModel.h:62
void addMicrobeamManipulation(ome::compat::shared_ptr< ome::xml::model::MicrobeamManipulation > µbeamManipulation)
Add MicrobeamManipulation.
Definition: Experiment.cpp:427
OMEModelObject::indexed_container< ome::xml::model::Image, ome::compat::weak_ptr >::type getLinkedImageList() const
Get the linked Image list.
Definition: Experiment.cpp:452
const ome::compat::weak_ptr< ome::xml::model::Image > & setLinkedImage(OMEModelObject::indexed_container< ome::xml::model::Image, ome::compat::weak_ptr >::type::size_type index, const ome::compat::shared_ptr< ome::xml::model::Image > &image_BackReference)
Set linked Image.
Definition: Experiment.cpp:464
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: Experiment.cpp:204
static ome::compat::shared_ptr< Experiment > create(const common::xml::dom::Element &element, ome::xml::model::OMEModel &model)
Create a Experiment model object from DOM element.
Definition: Experiment.cpp:179
const std::string & getXMLNamespace() const
Get the XML namespace for this model object.
Definition: Experiment.cpp:596
DOM Document wrapper.
Definition: Document.h:83
DOM Element wrapper.
Definition: Element.h:66
OME model object (concrete implementation).
Definition: OMEModelObject.h:64
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
void setType(ome::compat::shared_ptr< ome::xml::model::enums::ExperimentType > &type)
Set the Type property.
Definition: Experiment.cpp:317
void linkExperimenter(ome::compat::shared_ptr< ome::xml::model::Experimenter > &experimenter)
Link Experimenter.
Definition: Experiment.cpp:372
bool validElementName(const std::string &name) const
Check if a given element name is valid for processing by this model object.
Definition: Experiment.cpp:195
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: Experiment.cpp:277
ome::compat::shared_ptr< ome::xml::model::enums::ExperimentType > getType()
Get the Type property.
Definition: Experiment.cpp:303
const std::string & getID() const
Get the ID property.
Definition: Experiment.cpp:324
OMEModelObject::indexed_container< ome::xml::model::Image, ome::compat::weak_ptr >::type::size_type sizeOfLinkedImageList() const
Get size of linked Image list.
Definition: Experiment.cpp:446
const ome::compat::weak_ptr< ome::xml::model::Image > & getLinkedImage(OMEModelObject::indexed_container< ome::xml::model::Image, ome::compat::weak_ptr >::type::size_type index) const
Get linked Image.
Definition: Experiment.cpp:458
std::vector< ome::compat::shared_ptr< ome::xml::model::MicrobeamManipulation > >::size_type sizeOfMicrobeamManipulationList() const
Get size of linked MicrobeamManipulation list.
Definition: Experiment.cpp:388
void removeMicrobeamManipulation(ome::compat::shared_ptr< ome::xml::model::MicrobeamManipulation > µbeamManipulation)
Remove MicrobeamManipulation.
Definition: Experiment.cpp:435
Experiment model object.
Definition: Experiment.h:81
Multi-index container for efficient ordered insertion and deletion of model object references...
Definition: OMEModelObject.h:85
ome::compat::shared_ptr< std::string > getDescription()
Get the Description property.
Definition: Experiment.cpp:338
void setID(const std::string &id)
Set the ID property.
Definition: Experiment.cpp:331
ome::compat::shared_ptr< Impl > impl
Private implementation details.
Definition: Experiment.h:84
Open Microscopy Environment C++ implementation.
Definition: CoreMetadata.cpp:40
Private implementation details of Experiment model object.
Definition: Experiment.cpp:80
bool unlinkImage(const ome::compat::shared_ptr< ome::xml::model::Image > &image_BackReference)
Unlink Image.
Definition: Experiment.cpp:487
void unlinkExperimenter(ome::compat::shared_ptr< ome::xml::model::Experimenter > &experimenter)
Unlink Experimenter.
Definition: Experiment.cpp:378
bool linkImage(const ome::compat::shared_ptr< ome::xml::model::Image > &image_BackReference)
Link Image.
Definition: Experiment.cpp:474
void setDescription(ome::compat::shared_ptr< std::string > &description)
Set the Description property.
Definition: Experiment.cpp:352
Experiment()
Default constructor.
Definition: Experiment.cpp:155
ome::compat::weak_ptr< ome::xml::model::Experimenter > getLinkedExperimenter()
Get linked Experimenter.
Definition: Experiment.cpp:359
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: Experiment.cpp:511
virtual ~Experiment()
Destructor.
Definition: Experiment.cpp:174
void setMicrobeamManipulation(std::vector< ome::compat::shared_ptr< ome::xml::model::MicrobeamManipulation > >::size_type index, ome::compat::shared_ptr< ome::xml::model::MicrobeamManipulation > µbeamManipulation)
Set MicrobeamManipulation.
Definition: Experiment.cpp:418
std::vector< ome::compat::shared_ptr< ome::xml::model::MicrobeamManipulation > > & getMicrobeamManipulationList()
Get the MicrobeamManipulation list.
Definition: Experiment.cpp:394
virtual common::xml::dom::Element asXMLElement(common::xml::dom::Document &document) const
Transform the object hierarchy rooted at this element to XML.
Definition: Experiment.cpp:504
const std::string & elementName() const
Get the element name of this model object.
Definition: Experiment.cpp:188
Xerces-C modern C++ wrapper.
Definition: Base.h:53