bioformats
5.1.6
|
OME model interface (abstract top-level container) More...
#include <ome/xml/model/OMEModel.h>
Public Types | |
typedef std::vector< ome::compat::shared_ptr< Reference > > | reference_list_type |
A list of Reference objects. | |
typedef std::map< std::string, ome::compat::shared_ptr< OMEModelObject > > | object_map_type |
A map of string model object identifiers to model objects. | |
typedef std::map< ome::compat::shared_ptr< OMEModelObject >, reference_list_type > | reference_map_type |
A map of model objects to list of Reference objects. | |
typedef reference_map_type::size_type | size_type |
Size type for reference map. | |
Public Member Functions | |
virtual | ~OMEModel () |
Destructor. | |
virtual ome::compat::shared_ptr< OMEModelObject > | addModelObject (const std::string &id, ome::compat::shared_ptr< OMEModelObject > &object)=0 |
Add a model object to the model. More... | |
virtual ome::compat::shared_ptr< OMEModelObject > | removeModelObject (const std::string &id)=0 |
Remove a model object from the model. More... | |
virtual ome::compat::shared_ptr< OMEModelObject > | getModelObject (const std::string &id) const =0 |
Retrieve a model object from the model. More... | |
virtual const object_map_type & | getModelObjects () const =0 |
Retrieve all model objects from the model. More... | |
virtual bool | addReference (ome::compat::shared_ptr< OMEModelObject > &a, ome::compat::shared_ptr< Reference > &b)=0 |
Add a reference to a model object. More... | |
virtual const reference_map_type & | getReferences () const =0 |
Retrieve all references from the model. More... | |
virtual size_type | resolveReferences ()=0 |
Resolve all references. More... | |
Protected Member Functions | |
OMEModel () | |
Constructor. | |
Private Member Functions | |
OMEModel (const OMEModel &) | |
Copy constructor (deleted). | |
OMEModel & | operator= (const OMEModel &) |
Assignment operator (deleted). | |
OME model interface (abstract top-level container)
|
pure virtual |
Add a model object to the model.
Note that the concrete implementation will not add types derived from Reference.
id | the model object identifier. |
object | the model object to add. |
Referenced by ome::xml::model::LightSource::update(), ome::xml::model::Shape::update(), ome::xml::model::Annotation::update(), ome::xml::model::ChannelRef::update(), ome::xml::model::ExperimentRef::update(), ome::xml::model::PlateRef::update(), ome::xml::model::FilterRef::update(), ome::xml::model::ProjectRef::update(), ome::xml::model::AnnotationRef::update(), ome::xml::model::FilterSetRef::update(), ome::xml::model::ReagentRef::update(), ome::xml::model::ROIRef::update(), ome::xml::model::DichroicRef::update(), ome::xml::model::ImageRef::update(), ome::xml::model::WellSampleRef::update(), ome::xml::model::DatasetRef::update(), ome::xml::model::InstrumentRef::update(), ome::xml::model::ExperimenterGroupRef::update(), ome::xml::model::MicrobeamManipulationRef::update(), ome::xml::model::ExperimenterRef::update(), ome::xml::model::Pump::update(), ome::xml::model::Leader::update(), ome::xml::model::Detector::update(), ome::xml::model::ObjectiveSettings::update(), ome::xml::model::DetectorSettings::update(), ome::xml::model::Dichroic::update(), ome::xml::model::Screen::update(), ome::xml::model::Reagent::update(), ome::xml::model::Objective::update(), ome::xml::model::Experiment::update(), ome::xml::model::Project::update(), ome::xml::model::ROI::update(), ome::xml::model::FilterSet::update(), ome::xml::model::LightSourceSettings::update(), ome::xml::model::PlateAcquisition::update(), ome::xml::model::Dataset::update(), ome::xml::model::Filter::update(), ome::xml::model::ExperimenterGroup::update(), ome::xml::model::MicrobeamManipulation::update(), ome::xml::model::Well::update(), ome::xml::model::WellSample::update(), ome::xml::model::Plate::update(), ome::xml::model::Experimenter::update(), ome::xml::model::Instrument::update(), ome::xml::model::Pixels::update(), ome::xml::model::Channel::update(), and ome::xml::model::Image::update().
|
pure virtual |
Add a reference to a model object.
a | the model object to reference. |
b | the reference to add. |
Referenced by ome::xml::model::Annotation::update(), ome::xml::model::LightPath::update(), ome::xml::model::Reagent::update(), ome::xml::model::Screen::update(), ome::xml::model::Plane::update(), ome::xml::model::Laser::update(), ome::xml::model::Project::update(), ome::xml::model::ROI::update(), ome::xml::model::Experiment::update(), ome::xml::model::FilterSet::update(), ome::xml::model::PlateAcquisition::update(), ome::xml::model::ExperimenterGroup::update(), ome::xml::model::Dataset::update(), ome::xml::model::WellSample::update(), ome::xml::model::Well::update(), ome::xml::model::MicrobeamManipulation::update(), ome::xml::model::Experimenter::update(), ome::xml::model::Plate::update(), ome::xml::model::Pixels::update(), ome::xml::model::Channel::update(), and ome::xml::model::Image::update().
|
pure virtual |
Retrieve a model object from the model.
id | the model object identifier of the model object to retrieve. |
Implemented in ome::xml::model::detail::OMEModel.
|
pure virtual |
Retrieve all model objects from the model.
Implemented in ome::xml::model::detail::OMEModel.
|
pure virtual |
Retrieve all references from the model.
Implemented in ome::xml::model::detail::OMEModel.
|
pure virtual |
Remove a model object from the model.
id | the model object identifier of the model object to remove. |
Implemented in ome::xml::model::detail::OMEModel.
|
pure virtual |
Resolve all references.
Check for invalid references and null model objects.
Implemented in ome::xml::model::detail::OMEModel.