39 #ifndef OME_XML_MODEL_DETAIL_OMEMODEL_H 40 #define OME_XML_MODEL_DETAIL_OMEMODEL_H 44 #include <ome/xml/model/OMEModel.h> 45 #include <ome/xml/model/OMEModelObject.h> 77 ome::compat::shared_ptr< ::ome::xml::model::OMEModelObject>
79 ome::compat::shared_ptr< ::ome::xml::model::OMEModelObject>&
object);
82 ome::compat::shared_ptr< ::ome::xml::model::OMEModelObject>
86 ome::compat::shared_ptr< ::ome::xml::model::OMEModelObject>
95 addReference (ome::compat::shared_ptr< ::ome::xml::model::OMEModelObject>& a,
96 ome::compat::shared_ptr<Reference>& b);
113 #endif // OME_XML_MODEL_DETAIL_OMEMODEL_H OME model interface (abstract top-level container)
Definition: OMEModel.h:62
logging::sources::severity_logger_mt< logging::trivial::severity_level > Logger
object_map_type modelObjects
Mapping of id to model object.
Definition: OMEModel.h:65
~OMEModel()
Destructor.
Definition: OMEModel.cpp:64
size_type resolveReferences()
Resolve all references.
Definition: OMEModel.cpp:141
std::map< std::string, ome::compat::shared_ptr< OMEModelObject > > object_map_type
A map of string model object identifiers to model objects.
Definition: OMEModel.h:68
reference_map_type references
Mapping of model object to reference.
Definition: OMEModel.h:67
ome::compat::shared_ptr< ::ome::xml::model::OMEModelObject > addModelObject(const std::string &id, ome::compat::shared_ptr< ::ome::xml::model::OMEModelObject > &object)
Add a model object to the model.
Definition: OMEModel.cpp:69
const object_map_type & getModelObjects() const
Retrieve all model objects from the model.
Definition: OMEModel.cpp:113
Open Microscopy Environment C++ implementation.
std::map< ome::compat::shared_ptr< OMEModelObject >, reference_list_type > reference_map_type
A map of model objects to list of Reference objects.
Definition: OMEModel.h:70
bool addReference(ome::compat::shared_ptr< ::ome::xml::model::OMEModelObject > &a, ome::compat::shared_ptr< Reference > &b)
Add a reference to a model object.
Definition: OMEModel.cpp:119
OMEModel()
Constructor.
Definition: OMEModel.cpp:56
ome::compat::shared_ptr< ::ome::xml::model::OMEModelObject > removeModelObject(const std::string &id)
Remove a model object from the model.
Definition: OMEModel.cpp:86
reference_map_type::size_type size_type
Size type for reference map.
Definition: OMEModel.h:72
const reference_map_type & getReferences() const
Retrieve all references from the model.
Definition: OMEModel.cpp:135
ome::compat::shared_ptr< ::ome::xml::model::OMEModelObject > getModelObject(const std::string &id) const
Retrieve a model object from the model.
Definition: OMEModel.cpp:101
OME model (concrete implementation).
Definition: OMEModel.h:59
ome::common::Logger logger
Message logger.
Definition: OMEModel.h:63