46 #ifndef OME_XML_MODEL_FOLDER_H 47 #define OME_XML_MODEL_FOLDER_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<Folder>
131 operator= (
const Folder&) =
delete;
146 link (std::shared_ptr<Reference>& reference,
147 std::shared_ptr<ome::xml::model::OMEModelObject>&
object);
163 setID (
const std::string&
id);
170 std::shared_ptr<std::string>
178 const std::shared_ptr<std::string>
187 setName (std::shared_ptr<std::string>& name);
194 std::shared_ptr<std::string>
202 const std::shared_ptr<std::string>
236 const std::weak_ptr<ome::xml::model::Folder>&
249 const std::weak_ptr<ome::xml::model::Folder>&
251 const std::shared_ptr<ome::xml::model::Folder>& folder);
264 linkFolder (
const std::shared_ptr<ome::xml::model::Folder>& folder);
282 unlinkFolder (
const std::shared_ptr<ome::xml::model::Folder>& folder);
307 const std::weak_ptr<ome::xml::model::Image>&
320 const std::weak_ptr<ome::xml::model::Image>&
322 const std::shared_ptr<ome::xml::model::Image>& image);
335 linkImage (
const std::shared_ptr<ome::xml::model::Image>& image);
353 unlinkImage (
const std::shared_ptr<ome::xml::model::Image>& image);
378 const std::weak_ptr<ome::xml::model::ROI>&
391 const std::weak_ptr<ome::xml::model::ROI>&
393 const std::shared_ptr<ome::xml::model::ROI>& roi);
406 linkROI (
const std::shared_ptr<ome::xml::model::ROI>& roi);
424 unlinkROI (
const std::shared_ptr<ome::xml::model::ROI>& roi);
449 const std::weak_ptr<ome::xml::model::Annotation>&
462 const std::weak_ptr<ome::xml::model::Annotation>&
464 const std::shared_ptr<ome::xml::model::Annotation>& annotation);
477 linkAnnotation (
const std::shared_ptr<ome::xml::model::Annotation>& annotation);
495 unlinkAnnotation (
const std::shared_ptr<ome::xml::model::Annotation>& annotation);
520 const std::weak_ptr<ome::xml::model::Folder>&
533 const std::weak_ptr<ome::xml::model::Folder>&
535 const std::shared_ptr<ome::xml::model::Folder>& folder_BackReference);
548 linkChildFolder (
const std::shared_ptr<ome::xml::model::Folder>& folder_BackReference);
566 unlinkChildFolder (
const std::shared_ptr<ome::xml::model::Folder>& folder_BackReference);
584 #endif // OME_XML_MODEL_FOLDER_H OME model interface (abstract top-level container)
Definition: OMEModel.h:61
OMEModelObject::indexed_container< ome::xml::model::Annotation, std::weak_ptr >::type getLinkedAnnotationList() const
Get the linked Annotation list.
Definition: Folder.cpp:625
const std::weak_ptr< ome::xml::model::Folder > & getLinkedFolder(OMEModelObject::indexed_container< ome::xml::model::Folder, std::weak_ptr >::type::size_type index) const
Get linked Folder.
Definition: Folder.cpp:453
OMEModelObject::indexed_container< ome::xml::model::ROI, std::weak_ptr >::type::size_type sizeOfLinkedROIList() const
Get size of linked ROI list.
Definition: Folder.cpp:559
bool unlinkFolder(const std::shared_ptr< ome::xml::model::Folder > &folder)
Unlink Folder.
Definition: Folder.cpp:482
bool linkAnnotation(const std::shared_ptr< ome::xml::model::Annotation > &annotation)
Link Annotation.
Definition: Folder.cpp:647
virtual ~Folder()
Destructor.
Definition: Folder.cpp:188
const std::weak_ptr< ome::xml::model::Image > & setLinkedImage(OMEModelObject::indexed_container< ome::xml::model::Image, std::weak_ptr >::type::size_type index, const std::shared_ptr< ome::xml::model::Image > &image)
Set linked Image.
Definition: Folder.cpp:517
const std::string & getXMLNamespace() const
Get the XML namespace for this model object.
Definition: Folder.cpp:859
bool linkFolder(const std::shared_ptr< ome::xml::model::Folder > &folder)
Link Folder.
Definition: Folder.cpp:469
const std::string & getID() const
Get the ID property.
Definition: Folder.cpp:385
OMEModelObject::indexed_container< ome::xml::model::Image, std::weak_ptr >::type getLinkedImageList() const
Get the linked Image list.
Definition: Folder.cpp:505
bool unlinkAnnotation(const std::shared_ptr< ome::xml::model::Annotation > &annotation)
Unlink Annotation.
Definition: Folder.cpp:661
OMEModelObject::indexed_container< ome::xml::model::Folder, std::weak_ptr >::type::size_type sizeOfLinkedFolderList() const
Get size of linked Folder list.
Definition: Folder.cpp:441
OMEModelObject::indexed_container< ome::xml::model::Image, std::weak_ptr >::type::size_type sizeOfLinkedImageList() const
Get size of linked Image list.
Definition: Folder.cpp:499
const std::weak_ptr< ome::xml::model::Folder > & setLinkedChildFolder(OMEModelObject::indexed_container< ome::xml::model::Folder, std::weak_ptr >::type::size_type index, const std::shared_ptr< ome::xml::model::Folder > &folder_BackReference)
Set linked ChildFolder.
Definition: Folder.cpp:697
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
const std::weak_ptr< ome::xml::model::Folder > & getLinkedChildFolder(OMEModelObject::indexed_container< ome::xml::model::Folder, std::weak_ptr >::type::size_type index) const
Get linked ChildFolder.
Definition: Folder.cpp:691
OME model object (concrete implementation).
Definition: OMEModelObject.h:64
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: Folder.cpp:637
Folder model object.
Definition: Folder.h:81
const std::weak_ptr< ome::xml::model::ROI > & getLinkedROI(OMEModelObject::indexed_container< ome::xml::model::ROI, std::weak_ptr >::type::size_type index) const
Get linked ROI.
Definition: Folder.cpp:571
std::shared_ptr< Impl > impl
Private implementation details.
Definition: Folder.h:84
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: Folder.cpp:631
OMEModelObject::indexed_container< ome::xml::model::Folder, std::weak_ptr >::type::size_type sizeOfLinkedChildFolderList() const
Get size of linked ChildFolder list.
Definition: Folder.cpp:679
bool linkImage(const std::shared_ptr< ome::xml::model::Image > &image)
Link Image.
Definition: Folder.cpp:527
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: Folder.cpp:215
Private implementation details of Folder model object.
Definition: Folder.cpp:77
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: Folder.cpp:307
void setName(std::shared_ptr< std::string > &name)
Set the Name property.
Definition: Folder.cpp:413
Multi-index container for efficient ordered insertion and deletion of model object references...
Definition: OMEModelObject.h:84
static std::shared_ptr< Folder > create(const common::xml::dom::Element &element, ome::xml::model::OMEModel &model)
Create a Folder model object from DOM element.
Definition: Folder.cpp:193
OMEModelObject::indexed_container< ome::xml::model::Annotation, std::weak_ptr >::type::size_type sizeOfLinkedAnnotationList() const
Get size of linked Annotation list.
Definition: Folder.cpp:619
void setID(const std::string &id)
Set the ID property.
Definition: Folder.cpp:392
std::shared_ptr< std::string > getDescription()
Get the Description property.
Definition: Folder.cpp:420
Open Microscopy Environment C++ implementation.
void setDescription(std::shared_ptr< std::string > &description)
Set the Description property.
Definition: Folder.cpp:434
OMEModelObject::indexed_container< ome::xml::model::Folder, std::weak_ptr >::type getLinkedFolderList() const
Get the linked Folder list.
Definition: Folder.cpp:447
OMEModelObject::indexed_container< ome::xml::model::Folder, std::weak_ptr >::type getLinkedChildFolderList() const
Get the linked ChildFolder list.
Definition: Folder.cpp:685
bool unlinkROI(const std::shared_ptr< ome::xml::model::ROI > &roi)
Unlink ROI.
Definition: Folder.cpp:601
bool linkROI(const std::shared_ptr< ome::xml::model::ROI > &roi)
Link ROI.
Definition: Folder.cpp:587
const std::weak_ptr< ome::xml::model::ROI > & setLinkedROI(OMEModelObject::indexed_container< ome::xml::model::ROI, std::weak_ptr >::type::size_type index, const std::shared_ptr< ome::xml::model::ROI > &roi)
Set linked ROI.
Definition: Folder.cpp:577
const std::string & elementName() const
Get the element name of this model object.
Definition: Folder.cpp:202
bool unlinkImage(const std::shared_ptr< ome::xml::model::Image > &image)
Unlink Image.
Definition: Folder.cpp:541
std::shared_ptr< std::string > getName()
Get the Name property.
Definition: Folder.cpp:399
bool unlinkChildFolder(const std::shared_ptr< ome::xml::model::Folder > &folder_BackReference)
Unlink ChildFolder.
Definition: Folder.cpp:720
const std::weak_ptr< ome::xml::model::Image > & getLinkedImage(OMEModelObject::indexed_container< ome::xml::model::Image, std::weak_ptr >::type::size_type index) const
Get linked Image.
Definition: Folder.cpp:511
bool linkChildFolder(const std::shared_ptr< ome::xml::model::Folder > &folder_BackReference)
Link ChildFolder.
Definition: Folder.cpp:707
Folder()
Default constructor.
Definition: Folder.cpp:169
OMEModelObject::indexed_container< ome::xml::model::ROI, std::weak_ptr >::type getLinkedROIList() const
Get the linked ROI list.
Definition: Folder.cpp:565
bool validElementName(const std::string &name) const
Check if a given element name is valid for processing by this model object.
Definition: Folder.cpp:209
const std::weak_ptr< ome::xml::model::Folder > & setLinkedFolder(OMEModelObject::indexed_container< ome::xml::model::Folder, std::weak_ptr >::type::size_type index, const std::shared_ptr< ome::xml::model::Folder > &folder)
Set linked Folder.
Definition: Folder.cpp:459
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: Folder.cpp:736