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 std::shared_ptr<::ome::xml::model::OMEModelObject>
79 std::shared_ptr<::ome::xml::model::OMEModelObject>&
object);
82 std::shared_ptr<::ome::xml::model::OMEModelObject>
86 std::shared_ptr<::ome::xml::model::OMEModelObject>
95 addReference (std::shared_ptr<::ome::xml::model::OMEModelObject>& a,
96 std::shared_ptr<Reference>& b);
113 #endif // OME_XML_MODEL_DETAIL_OMEMODEL_H OME model interface (abstract top-level container)
Definition: OMEModel.h:61
const reference_map_type & getReferences() const
Retrieve all references from the model.
Definition: OMEModel.cpp:134
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:63
size_type resolveReferences()
Resolve all references.
Definition: OMEModel.cpp:140
bool addReference(std::shared_ptr<::ome::xml::model::OMEModelObject > &a, std::shared_ptr< Reference > &b)
Add a reference to a model object.
Definition: OMEModel.cpp:118
std::map< std::string, std::shared_ptr< OMEModelObject > > object_map_type
A map of string model object identifiers to model objects.
Definition: OMEModel.h:67
reference_map_type references
Mapping of model object to reference.
Definition: OMEModel.h:67
std::shared_ptr<::ome::xml::model::OMEModelObject > addModelObject(const std::string &id, std::shared_ptr<::ome::xml::model::OMEModelObject > &object)
Add a model object to the model.
Definition: OMEModel.cpp:68
Open Microscopy Environment C++ implementation.
std::shared_ptr<::ome::xml::model::OMEModelObject > removeModelObject(const std::string &id)
Remove a model object from the model.
Definition: OMEModel.cpp:85
std::shared_ptr<::ome::xml::model::OMEModelObject > getModelObject(const std::string &id) const
Retrieve a model object from the model.
Definition: OMEModel.cpp:100
OMEModel()
Constructor.
Definition: OMEModel.cpp:55
const object_map_type & getModelObjects() const
Retrieve all model objects from the model.
Definition: OMEModel.cpp:112
reference_map_type::size_type size_type
Size type for reference map.
Definition: OMEModel.h:71
OME model (concrete implementation).
Definition: OMEModel.h:59
std::map< std::shared_ptr< OMEModelObject >, reference_list_type > reference_map_type
A map of model objects to list of Reference objects.
Definition: OMEModel.h:69
ome::common::Logger logger
Message logger.
Definition: OMEModel.h:63