ome-xml  5.6.0
OME.h
1 /*
2  * #%L
3  * OME-XML C++ library for working with OME-XML metadata structures.
4  * %%
5  * Copyright © 2006 - 2016 Open Microscopy Environment:
6  * - Massachusetts Institute of Technology
7  * - National Institutes of Health
8  * - University of Dundee
9  * - Board of Regents of the University of Wisconsin-Madison
10  * - Glencoe Software, Inc.
11  * %%
12  * Redistribution and use in source and binary forms, with or without
13  * modification, are permitted provided that the following conditions are met:
14  *
15  * 1. Redistributions of source code must retain the above copyright notice,
16  * this list of conditions and the following disclaimer.
17  * 2. Redistributions in binary form must reproduce the above copyright notice,
18  * this list of conditions and the following disclaimer in the documentation
19  * and/or other materials provided with the distribution.
20  *
21  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
25  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31  * POSSIBILITY OF SUCH DAMAGE.
32  *
33  * The views and conclusions contained in the software and documentation are
34  * those of the authors and should not be interpreted as representing official
35  * policies, either expressed or implied, of any organization.
36  * #L%
37  */
38 
39 /*─────────────────────────────────────────────────────────────────────────────
40  *
41  * THIS IS AUTOMATICALLY GENERATED CODE. DO NOT MODIFY.
42  *
43  *─────────────────────────────────────────────────────────────────────────────
44  */
45 
46 #ifndef OME_XML_MODEL_OME_H
47 #define OME_XML_MODEL_OME_H
48 
49 #include <algorithm>
50 #include <list>
51 #include <stdexcept>
52 #include <string>
53 #include <vector>
54 
55 #include <ome/common/log.h>
56 
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 
61 #include <ome/xml/model/primitives/Quantity.h>
62 
63 #include <ome/xml/model/BinaryOnly.h>
64 #include <ome/xml/model/Rights.h>
65 #include <ome/xml/model/StructuredAnnotations.h>
66 #include <ome/xml/model/detail/OMEModelObject.h>
67 
68 namespace ome
69 {
70  namespace xml
71  {
72  namespace model
73  {
74 
75  // Forward declarations.
76  class Dataset;
77  class Experiment;
78  class Experimenter;
79  class ExperimenterGroup;
80  class Folder;
81  class Image;
82  class Instrument;
83  class OMEModel;
84  class Plate;
85  class Project;
86  class ROI;
87  class Screen;
88 
92  class OME : public detail::OMEModelObject
93  {
94  private:
95  class Impl;
97  std::shared_ptr<Impl> impl;
98 
99  public:
101  OME();
102 
108  OME (const OME& copy);
109 
111  virtual
112  ~OME ();
113 
128  static std::shared_ptr<OME>
129  create(const common::xml::dom::Element& element,
131 
132  // Documented in superclass.
133  const std::string&
134  elementName() const;
135 
136  // Documented in superclass.
137  bool
138  validElementName(const std::string& name) const;
139 
141  OME&
142  operator= (const OME&) = delete;
144 
145  // -- OMEModelObject API methods --
146 
148  virtual void
149  update(const common::xml::dom::Element& element,
151 
152  public:
153  // -- OME API methods --
154 
156  bool
157  link (std::shared_ptr<Reference>& reference,
158  std::shared_ptr<ome::xml::model::OMEModelObject>& object);
159 
165  std::shared_ptr<std::string>
166  getUUID ();
167 
173  const std::shared_ptr<std::string>
174  getUUID () const;
175 
181  void
182  setUUID (std::shared_ptr<std::string>& uuid);
183 
189  std::shared_ptr<std::string>
190  getCreator ();
191 
197  const std::shared_ptr<std::string>
198  getCreator () const;
199 
205  void
206  setCreator (std::shared_ptr<std::string>& creator);
207 
213  std::shared_ptr<ome::xml::model::Rights>
214  getRights ();
215 
221  const std::shared_ptr<ome::xml::model::Rights>
222  getRights () const;
223 
229  void
230  setRights (std::shared_ptr<ome::xml::model::Rights>& rights);
231 
237  std::vector<std::shared_ptr<ome::xml::model::Project>>::size_type
238  sizeOfProjectList () const;
239 
246  std::vector<std::shared_ptr<ome::xml::model::Project>>&
247  getProjectList ();
248 
255  const std::vector<std::shared_ptr<ome::xml::model::Project>>&
256  getProjectList () const;
257 
265  std::shared_ptr<ome::xml::model::Project>&
266  getProject (std::vector<std::shared_ptr<ome::xml::model::Project>>::size_type index);
267 
275  const std::shared_ptr<ome::xml::model::Project>&
276  getProject (std::vector<std::shared_ptr<ome::xml::model::Project>>::size_type index) const;
277 
285  void
286  setProject (std::vector<std::shared_ptr<ome::xml::model::Project>>::size_type index,
287  std::shared_ptr<ome::xml::model::Project>& project);
288 
297  void
298  addProject (std::shared_ptr<ome::xml::model::Project>& project);
299 
309  void
310  removeProject (std::shared_ptr<ome::xml::model::Project>& project);
311 
317  std::vector<std::shared_ptr<ome::xml::model::Dataset>>::size_type
318  sizeOfDatasetList () const;
319 
326  std::vector<std::shared_ptr<ome::xml::model::Dataset>>&
327  getDatasetList ();
328 
335  const std::vector<std::shared_ptr<ome::xml::model::Dataset>>&
336  getDatasetList () const;
337 
345  std::shared_ptr<ome::xml::model::Dataset>&
346  getDataset (std::vector<std::shared_ptr<ome::xml::model::Dataset>>::size_type index);
347 
355  const std::shared_ptr<ome::xml::model::Dataset>&
356  getDataset (std::vector<std::shared_ptr<ome::xml::model::Dataset>>::size_type index) const;
357 
365  void
366  setDataset (std::vector<std::shared_ptr<ome::xml::model::Dataset>>::size_type index,
367  std::shared_ptr<ome::xml::model::Dataset>& dataset);
368 
377  void
378  addDataset (std::shared_ptr<ome::xml::model::Dataset>& dataset);
379 
389  void
390  removeDataset (std::shared_ptr<ome::xml::model::Dataset>& dataset);
391 
397  std::vector<std::shared_ptr<ome::xml::model::Folder>>::size_type
398  sizeOfFolderList () const;
399 
406  std::vector<std::shared_ptr<ome::xml::model::Folder>>&
407  getFolderList ();
408 
415  const std::vector<std::shared_ptr<ome::xml::model::Folder>>&
416  getFolderList () const;
417 
425  std::shared_ptr<ome::xml::model::Folder>&
426  getFolder (std::vector<std::shared_ptr<ome::xml::model::Folder>>::size_type index);
427 
435  const std::shared_ptr<ome::xml::model::Folder>&
436  getFolder (std::vector<std::shared_ptr<ome::xml::model::Folder>>::size_type index) const;
437 
445  void
446  setFolder (std::vector<std::shared_ptr<ome::xml::model::Folder>>::size_type index,
447  std::shared_ptr<ome::xml::model::Folder>& folder);
448 
457  void
458  addFolder (std::shared_ptr<ome::xml::model::Folder>& folder);
459 
469  void
470  removeFolder (std::shared_ptr<ome::xml::model::Folder>& folder);
471 
477  std::vector<std::shared_ptr<ome::xml::model::Experiment>>::size_type
478  sizeOfExperimentList () const;
479 
486  std::vector<std::shared_ptr<ome::xml::model::Experiment>>&
488 
495  const std::vector<std::shared_ptr<ome::xml::model::Experiment>>&
496  getExperimentList () const;
497 
505  std::shared_ptr<ome::xml::model::Experiment>&
506  getExperiment (std::vector<std::shared_ptr<ome::xml::model::Experiment>>::size_type index);
507 
515  const std::shared_ptr<ome::xml::model::Experiment>&
516  getExperiment (std::vector<std::shared_ptr<ome::xml::model::Experiment>>::size_type index) const;
517 
525  void
526  setExperiment (std::vector<std::shared_ptr<ome::xml::model::Experiment>>::size_type index,
527  std::shared_ptr<ome::xml::model::Experiment>& experiment);
528 
537  void
538  addExperiment (std::shared_ptr<ome::xml::model::Experiment>& experiment);
539 
549  void
550  removeExperiment (std::shared_ptr<ome::xml::model::Experiment>& experiment);
551 
557  std::vector<std::shared_ptr<ome::xml::model::Plate>>::size_type
558  sizeOfPlateList () const;
559 
566  std::vector<std::shared_ptr<ome::xml::model::Plate>>&
567  getPlateList ();
568 
575  const std::vector<std::shared_ptr<ome::xml::model::Plate>>&
576  getPlateList () const;
577 
585  std::shared_ptr<ome::xml::model::Plate>&
586  getPlate (std::vector<std::shared_ptr<ome::xml::model::Plate>>::size_type index);
587 
595  const std::shared_ptr<ome::xml::model::Plate>&
596  getPlate (std::vector<std::shared_ptr<ome::xml::model::Plate>>::size_type index) const;
597 
605  void
606  setPlate (std::vector<std::shared_ptr<ome::xml::model::Plate>>::size_type index,
607  std::shared_ptr<ome::xml::model::Plate>& plate);
608 
617  void
618  addPlate (std::shared_ptr<ome::xml::model::Plate>& plate);
619 
629  void
630  removePlate (std::shared_ptr<ome::xml::model::Plate>& plate);
631 
637  std::vector<std::shared_ptr<ome::xml::model::Screen>>::size_type
638  sizeOfScreenList () const;
639 
646  std::vector<std::shared_ptr<ome::xml::model::Screen>>&
647  getScreenList ();
648 
655  const std::vector<std::shared_ptr<ome::xml::model::Screen>>&
656  getScreenList () const;
657 
665  std::shared_ptr<ome::xml::model::Screen>&
666  getScreen (std::vector<std::shared_ptr<ome::xml::model::Screen>>::size_type index);
667 
675  const std::shared_ptr<ome::xml::model::Screen>&
676  getScreen (std::vector<std::shared_ptr<ome::xml::model::Screen>>::size_type index) const;
677 
685  void
686  setScreen (std::vector<std::shared_ptr<ome::xml::model::Screen>>::size_type index,
687  std::shared_ptr<ome::xml::model::Screen>& screen);
688 
697  void
698  addScreen (std::shared_ptr<ome::xml::model::Screen>& screen);
699 
709  void
710  removeScreen (std::shared_ptr<ome::xml::model::Screen>& screen);
711 
717  std::vector<std::shared_ptr<ome::xml::model::Experimenter>>::size_type
718  sizeOfExperimenterList () const;
719 
726  std::vector<std::shared_ptr<ome::xml::model::Experimenter>>&
728 
735  const std::vector<std::shared_ptr<ome::xml::model::Experimenter>>&
736  getExperimenterList () const;
737 
745  std::shared_ptr<ome::xml::model::Experimenter>&
746  getExperimenter (std::vector<std::shared_ptr<ome::xml::model::Experimenter>>::size_type index);
747 
755  const std::shared_ptr<ome::xml::model::Experimenter>&
756  getExperimenter (std::vector<std::shared_ptr<ome::xml::model::Experimenter>>::size_type index) const;
757 
765  void
766  setExperimenter (std::vector<std::shared_ptr<ome::xml::model::Experimenter>>::size_type index,
767  std::shared_ptr<ome::xml::model::Experimenter>& experimenter);
768 
777  void
778  addExperimenter (std::shared_ptr<ome::xml::model::Experimenter>& experimenter);
779 
789  void
790  removeExperimenter (std::shared_ptr<ome::xml::model::Experimenter>& experimenter);
791 
797  std::vector<std::shared_ptr<ome::xml::model::ExperimenterGroup>>::size_type
799 
806  std::vector<std::shared_ptr<ome::xml::model::ExperimenterGroup>>&
808 
815  const std::vector<std::shared_ptr<ome::xml::model::ExperimenterGroup>>&
816  getExperimenterGroupList () const;
817 
825  std::shared_ptr<ome::xml::model::ExperimenterGroup>&
826  getExperimenterGroup (std::vector<std::shared_ptr<ome::xml::model::ExperimenterGroup>>::size_type index);
827 
835  const std::shared_ptr<ome::xml::model::ExperimenterGroup>&
836  getExperimenterGroup (std::vector<std::shared_ptr<ome::xml::model::ExperimenterGroup>>::size_type index) const;
837 
845  void
846  setExperimenterGroup (std::vector<std::shared_ptr<ome::xml::model::ExperimenterGroup>>::size_type index,
847  std::shared_ptr<ome::xml::model::ExperimenterGroup>& experimenterGroup);
848 
857  void
858  addExperimenterGroup (std::shared_ptr<ome::xml::model::ExperimenterGroup>& experimenterGroup);
859 
869  void
870  removeExperimenterGroup (std::shared_ptr<ome::xml::model::ExperimenterGroup>& experimenterGroup);
871 
877  std::vector<std::shared_ptr<ome::xml::model::Instrument>>::size_type
878  sizeOfInstrumentList () const;
879 
886  std::vector<std::shared_ptr<ome::xml::model::Instrument>>&
888 
895  const std::vector<std::shared_ptr<ome::xml::model::Instrument>>&
896  getInstrumentList () const;
897 
905  std::shared_ptr<ome::xml::model::Instrument>&
906  getInstrument (std::vector<std::shared_ptr<ome::xml::model::Instrument>>::size_type index);
907 
915  const std::shared_ptr<ome::xml::model::Instrument>&
916  getInstrument (std::vector<std::shared_ptr<ome::xml::model::Instrument>>::size_type index) const;
917 
925  void
926  setInstrument (std::vector<std::shared_ptr<ome::xml::model::Instrument>>::size_type index,
927  std::shared_ptr<ome::xml::model::Instrument>& instrument);
928 
937  void
938  addInstrument (std::shared_ptr<ome::xml::model::Instrument>& instrument);
939 
949  void
950  removeInstrument (std::shared_ptr<ome::xml::model::Instrument>& instrument);
951 
957  std::vector<std::shared_ptr<ome::xml::model::Image>>::size_type
958  sizeOfImageList () const;
959 
966  std::vector<std::shared_ptr<ome::xml::model::Image>>&
967  getImageList ();
968 
975  const std::vector<std::shared_ptr<ome::xml::model::Image>>&
976  getImageList () const;
977 
985  std::shared_ptr<ome::xml::model::Image>&
986  getImage (std::vector<std::shared_ptr<ome::xml::model::Image>>::size_type index);
987 
995  const std::shared_ptr<ome::xml::model::Image>&
996  getImage (std::vector<std::shared_ptr<ome::xml::model::Image>>::size_type index) const;
997 
1005  void
1006  setImage (std::vector<std::shared_ptr<ome::xml::model::Image>>::size_type index,
1007  std::shared_ptr<ome::xml::model::Image>& image);
1008 
1017  void
1018  addImage (std::shared_ptr<ome::xml::model::Image>& image);
1019 
1029  void
1030  removeImage (std::shared_ptr<ome::xml::model::Image>& image);
1031 
1037  std::shared_ptr<ome::xml::model::StructuredAnnotations>
1039 
1045  const std::shared_ptr<ome::xml::model::StructuredAnnotations>
1046  getStructuredAnnotations () const;
1047 
1053  void
1054  setStructuredAnnotations (std::shared_ptr<ome::xml::model::StructuredAnnotations>& structuredAnnotations);
1055 
1061  std::vector<std::shared_ptr<ome::xml::model::ROI>>::size_type
1062  sizeOfROIList () const;
1063 
1070  std::vector<std::shared_ptr<ome::xml::model::ROI>>&
1071  getROIList ();
1072 
1079  const std::vector<std::shared_ptr<ome::xml::model::ROI>>&
1080  getROIList () const;
1081 
1089  std::shared_ptr<ome::xml::model::ROI>&
1090  getROI (std::vector<std::shared_ptr<ome::xml::model::ROI>>::size_type index);
1091 
1099  const std::shared_ptr<ome::xml::model::ROI>&
1100  getROI (std::vector<std::shared_ptr<ome::xml::model::ROI>>::size_type index) const;
1101 
1109  void
1110  setROI (std::vector<std::shared_ptr<ome::xml::model::ROI>>::size_type index,
1111  std::shared_ptr<ome::xml::model::ROI>& roi);
1112 
1121  void
1122  addROI (std::shared_ptr<ome::xml::model::ROI>& roi);
1123 
1133  void
1134  removeROI (std::shared_ptr<ome::xml::model::ROI>& roi);
1135 
1141  std::shared_ptr<ome::xml::model::BinaryOnly>
1142  getBinaryOnly ();
1143 
1149  const std::shared_ptr<ome::xml::model::BinaryOnly>
1150  getBinaryOnly () const;
1151 
1157  void
1158  setBinaryOnly (std::shared_ptr<ome::xml::model::BinaryOnly>& binaryOnly);
1159 
1160  protected:
1161  // Documented in base class.
1162  virtual void
1164  common::xml::dom::Element& element) const;
1165 
1166  public:
1167  // Documented in superclass.
1168  const std::string&
1169  getXMLNamespace() const;
1170  };
1171 
1172  }
1173  }
1174 }
1175 
1176 #endif // OME_XML_MODEL_OME_H
1177 
1178 /*
1179  * Local Variables:
1180  * mode:C++
1181  * End:
1182  */
OME model interface (abstract top-level container)
Definition: OMEModel.h:61
void addExperimenter(std::shared_ptr< ome::xml::model::Experimenter > &experimenter)
Add Experimenter.
Definition: OME.cpp:1008
void setROI(std::vector< std::shared_ptr< ome::xml::model::ROI >>::size_type index, std::shared_ptr< ome::xml::model::ROI > &roi)
Set ROI.
Definition: OME.cpp:1238
void addExperiment(std::shared_ptr< ome::xml::model::Experiment > &experiment)
Add Experiment.
Definition: OME.cpp:846
std::vector< std::shared_ptr< ome::xml::model::Image > >::size_type sizeOfImageList() const
Get size of linked Image list.
Definition: OME.cpp:1133
std::shared_ptr< ome::xml::model::Image > & getImage(std::vector< std::shared_ptr< ome::xml::model::Image >>::size_type index)
Get Image.
Definition: OME.cpp:1151
void removeInstrument(std::shared_ptr< ome::xml::model::Instrument > &instrument)
Remove Instrument.
Definition: OME.cpp:1122
std::shared_ptr< ome::xml::model::Experiment > & getExperiment(std::vector< std::shared_ptr< ome::xml::model::Experiment >>::size_type index)
Get Experiment.
Definition: OME.cpp:827
void removeROI(std::shared_ptr< ome::xml::model::ROI > &roi)
Remove ROI.
Definition: OME.cpp:1251
Private implementation details of OME model object.
Definition: OME.cpp:185
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: OME.cpp:569
void setProject(std::vector< std::shared_ptr< ome::xml::model::Project >>::size_type index, std::shared_ptr< ome::xml::model::Project > &project)
Set Project.
Definition: OME.cpp:677
void setDataset(std::vector< std::shared_ptr< ome::xml::model::Dataset >>::size_type index, std::shared_ptr< ome::xml::model::Dataset > &dataset)
Set Dataset.
Definition: OME.cpp:731
OME model object.
Definition: OME.h:92
void addProject(std::shared_ptr< ome::xml::model::Project > &project)
Add Project.
Definition: OME.cpp:684
const std::string & elementName() const
Get the element name of this model object.
Definition: OME.cpp:366
std::vector< std::shared_ptr< ome::xml::model::Plate > > & getPlateList()
Get the Plate list.
Definition: OME.cpp:869
std::shared_ptr< ome::xml::model::Instrument > & getInstrument(std::vector< std::shared_ptr< ome::xml::model::Instrument >>::size_type index)
Get Instrument.
Definition: OME.cpp:1097
std::vector< std::shared_ptr< ome::xml::model::Screen > >::size_type sizeOfScreenList() const
Get size of linked Screen list.
Definition: OME.cpp:917
void setBinaryOnly(std::shared_ptr< ome::xml::model::BinaryOnly > &binaryOnly)
Set the BinaryOnly property.
Definition: OME.cpp:1276
std::shared_ptr< ome::xml::model::ROI > & getROI(std::vector< std::shared_ptr< ome::xml::model::ROI >>::size_type index)
Get ROI.
Definition: OME.cpp:1226
std::vector< std::shared_ptr< ome::xml::model::Image > > & getImageList()
Get the Image list.
Definition: OME.cpp:1139
std::shared_ptr< ome::xml::model::Folder > & getFolder(std::vector< std::shared_ptr< ome::xml::model::Folder >>::size_type index)
Get Folder.
Definition: OME.cpp:773
OME model object (concrete implementation).
Definition: OMEModelObject.h:64
void removeDataset(std::shared_ptr< ome::xml::model::Dataset > &dataset)
Remove Dataset.
Definition: OME.cpp:744
void setInstrument(std::vector< std::shared_ptr< ome::xml::model::Instrument >>::size_type index, std::shared_ptr< ome::xml::model::Instrument > &instrument)
Set Instrument.
Definition: OME.cpp:1109
std::vector< std::shared_ptr< ome::xml::model::Plate > >::size_type sizeOfPlateList() const
Get size of linked Plate list.
Definition: OME.cpp:863
void setExperimenterGroup(std::vector< std::shared_ptr< ome::xml::model::ExperimenterGroup >>::size_type index, std::shared_ptr< ome::xml::model::ExperimenterGroup > &experimenterGroup)
Set ExperimenterGroup.
Definition: OME.cpp:1055
std::shared_ptr< std::string > getCreator()
Get the Creator property.
Definition: OME.cpp:605
void removeExperimenter(std::shared_ptr< ome::xml::model::Experimenter > &experimenter)
Remove Experimenter.
Definition: OME.cpp:1014
void addFolder(std::shared_ptr< ome::xml::model::Folder > &folder)
Add Folder.
Definition: OME.cpp:792
std::vector< std::shared_ptr< ome::xml::model::Project > >::size_type sizeOfProjectList() const
Get size of linked Project list.
Definition: OME.cpp:647
std::vector< std::shared_ptr< ome::xml::model::Experiment > >::size_type sizeOfExperimentList() const
Get size of linked Experiment list.
Definition: OME.cpp:809
std::shared_ptr< ome::xml::model::StructuredAnnotations > getStructuredAnnotations()
Get the StructuredAnnotations property.
Definition: OME.cpp:1187
std::vector< std::shared_ptr< ome::xml::model::ROI > > & getROIList()
Get the ROI list.
Definition: OME.cpp:1214
std::vector< std::shared_ptr< ome::xml::model::Folder > >::size_type sizeOfFolderList() const
Get size of linked Folder list.
Definition: OME.cpp:755
virtual ~OME()
Destructor.
Definition: OME.cpp:352
std::shared_ptr< ome::xml::model::Dataset > & getDataset(std::vector< std::shared_ptr< ome::xml::model::Dataset >>::size_type index)
Get Dataset.
Definition: OME.cpp:719
void setRights(std::shared_ptr< ome::xml::model::Rights > &rights)
Set the Rights property.
Definition: OME.cpp:640
std::shared_ptr< ome::xml::model::Experimenter > & getExperimenter(std::vector< std::shared_ptr< ome::xml::model::Experimenter >>::size_type index)
Get Experimenter.
Definition: OME.cpp:989
void setImage(std::vector< std::shared_ptr< ome::xml::model::Image >>::size_type index, std::shared_ptr< ome::xml::model::Image > &image)
Set Image.
Definition: OME.cpp:1163
void removeFolder(std::shared_ptr< ome::xml::model::Folder > &folder)
Remove Folder.
Definition: OME.cpp:798
std::vector< std::shared_ptr< ome::xml::model::Experimenter > >::size_type sizeOfExperimenterList() const
Get size of linked Experimenter list.
Definition: OME.cpp:971
OME()
Default constructor.
Definition: OME.cpp:333
void addDataset(std::shared_ptr< ome::xml::model::Dataset > &dataset)
Add Dataset.
Definition: OME.cpp:738
std::shared_ptr< ome::xml::model::ExperimenterGroup > & getExperimenterGroup(std::vector< std::shared_ptr< ome::xml::model::ExperimenterGroup >>::size_type index)
Get ExperimenterGroup.
Definition: OME.cpp:1043
Open Microscopy Environment C++ implementation.
void removeExperiment(std::shared_ptr< ome::xml::model::Experiment > &experiment)
Remove Experiment.
Definition: OME.cpp:852
void setScreen(std::vector< std::shared_ptr< ome::xml::model::Screen >>::size_type index, std::shared_ptr< ome::xml::model::Screen > &screen)
Set Screen.
Definition: OME.cpp:947
void setCreator(std::shared_ptr< std::string > &creator)
Set the Creator property.
Definition: OME.cpp:619
void removeScreen(std::shared_ptr< ome::xml::model::Screen > &screen)
Remove Screen.
Definition: OME.cpp:960
void addImage(std::shared_ptr< ome::xml::model::Image > &image)
Add Image.
Definition: OME.cpp:1170
std::shared_ptr< ome::xml::model::Screen > & getScreen(std::vector< std::shared_ptr< ome::xml::model::Screen >>::size_type index)
Get Screen.
Definition: OME.cpp:935
std::vector< std::shared_ptr< ome::xml::model::Screen > > & getScreenList()
Get the Screen list.
Definition: OME.cpp:923
std::shared_ptr< ome::xml::model::Rights > getRights()
Get the Rights property.
Definition: OME.cpp:626
void setExperiment(std::vector< std::shared_ptr< ome::xml::model::Experiment >>::size_type index, std::shared_ptr< ome::xml::model::Experiment > &experiment)
Set Experiment.
Definition: OME.cpp:839
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: OME.cpp:379
std::vector< std::shared_ptr< ome::xml::model::ExperimenterGroup > > & getExperimenterGroupList()
Get the ExperimenterGroup list.
Definition: OME.cpp:1031
void addROI(std::shared_ptr< ome::xml::model::ROI > &roi)
Add ROI.
Definition: OME.cpp:1245
std::vector< std::shared_ptr< ome::xml::model::Dataset > >::size_type sizeOfDatasetList() const
Get size of linked Dataset list.
Definition: OME.cpp:701
void removeImage(std::shared_ptr< ome::xml::model::Image > &image)
Remove Image.
Definition: OME.cpp:1176
void addScreen(std::shared_ptr< ome::xml::model::Screen > &screen)
Add Screen.
Definition: OME.cpp:954
std::vector< std::shared_ptr< ome::xml::model::Project > > & getProjectList()
Get the Project list.
Definition: OME.cpp:653
void setExperimenter(std::vector< std::shared_ptr< ome::xml::model::Experimenter >>::size_type index, std::shared_ptr< ome::xml::model::Experimenter > &experimenter)
Set Experimenter.
Definition: OME.cpp:1001
std::vector< std::shared_ptr< ome::xml::model::Instrument > > & getInstrumentList()
Get the Instrument list.
Definition: OME.cpp:1085
const std::string & getXMLNamespace() const
Get the XML namespace for this model object.
Definition: OME.cpp:1489
std::vector< std::shared_ptr< ome::xml::model::Instrument > >::size_type sizeOfInstrumentList() const
Get size of linked Instrument list.
Definition: OME.cpp:1079
void setFolder(std::vector< std::shared_ptr< ome::xml::model::Folder >>::size_type index, std::shared_ptr< ome::xml::model::Folder > &folder)
Set Folder.
Definition: OME.cpp:785
std::vector< std::shared_ptr< ome::xml::model::Experimenter > > & getExperimenterList()
Get the Experimenter list.
Definition: OME.cpp:977
void addInstrument(std::shared_ptr< ome::xml::model::Instrument > &instrument)
Add Instrument.
Definition: OME.cpp:1116
void setPlate(std::vector< std::shared_ptr< ome::xml::model::Plate >>::size_type index, std::shared_ptr< ome::xml::model::Plate > &plate)
Set Plate.
Definition: OME.cpp:893
std::vector< std::shared_ptr< ome::xml::model::Dataset > > & getDatasetList()
Get the Dataset list.
Definition: OME.cpp:707
void addPlate(std::shared_ptr< ome::xml::model::Plate > &plate)
Add Plate.
Definition: OME.cpp:900
static std::shared_ptr< OME > create(const common::xml::dom::Element &element, ome::xml::model::OMEModel &model)
Create a OME model object from DOM element.
Definition: OME.cpp:357
std::shared_ptr< std::string > getUUID()
Get the UUID property.
Definition: OME.cpp:584
std::vector< std::shared_ptr< ome::xml::model::Experiment > > & getExperimentList()
Get the Experiment list.
Definition: OME.cpp:815
void removeProject(std::shared_ptr< ome::xml::model::Project > &project)
Remove Project.
Definition: OME.cpp:690
std::shared_ptr< ome::xml::model::Plate > & getPlate(std::vector< std::shared_ptr< ome::xml::model::Plate >>::size_type index)
Get Plate.
Definition: OME.cpp:881
std::vector< std::shared_ptr< ome::xml::model::Folder > > & getFolderList()
Get the Folder list.
Definition: OME.cpp:761
void removePlate(std::shared_ptr< ome::xml::model::Plate > &plate)
Remove Plate.
Definition: OME.cpp:906
bool validElementName(const std::string &name) const
Check if a given element name is valid for processing by this model object.
Definition: OME.cpp:373
void removeExperimenterGroup(std::shared_ptr< ome::xml::model::ExperimenterGroup > &experimenterGroup)
Remove ExperimenterGroup.
Definition: OME.cpp:1068
std::shared_ptr< ome::xml::model::Project > & getProject(std::vector< std::shared_ptr< ome::xml::model::Project >>::size_type index)
Get Project.
Definition: OME.cpp:665
void addExperimenterGroup(std::shared_ptr< ome::xml::model::ExperimenterGroup > &experimenterGroup)
Add ExperimenterGroup.
Definition: OME.cpp:1062
std::shared_ptr< Impl > impl
Private implementation details.
Definition: OME.h:95
std::vector< std::shared_ptr< ome::xml::model::ExperimenterGroup > >::size_type sizeOfExperimenterGroupList() const
Get size of linked ExperimenterGroup list.
Definition: OME.cpp:1025
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: OME.cpp:1282
void setUUID(std::shared_ptr< std::string > &uuid)
Set the UUID property.
Definition: OME.cpp:598
std::shared_ptr< ome::xml::model::BinaryOnly > getBinaryOnly()
Get the BinaryOnly property.
Definition: OME.cpp:1262
void setStructuredAnnotations(std::shared_ptr< ome::xml::model::StructuredAnnotations > &structuredAnnotations)
Set the StructuredAnnotations property.
Definition: OME.cpp:1201
std::vector< std::shared_ptr< ome::xml::model::ROI > >::size_type sizeOfROIList() const
Get size of linked ROI list.
Definition: OME.cpp:1208