ome-xml  5.5.1
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 
140  private:
142  OME&
143  operator= (const OME&);
144 
145  public:
146  // -- OMEModelObject API methods --
147 
149  virtual void
150  update(const common::xml::dom::Element& element,
152 
153  public:
154  // -- OME API methods --
155 
157  bool
158  link (std::shared_ptr<Reference>& reference,
159  std::shared_ptr<ome::xml::model::OMEModelObject>& object);
160 
166  std::shared_ptr<std::string>
167  getUUID ();
168 
174  const std::shared_ptr<std::string>
175  getUUID () const;
176 
182  void
183  setUUID (std::shared_ptr<std::string>& uuid);
184 
190  std::shared_ptr<std::string>
191  getCreator ();
192 
198  const std::shared_ptr<std::string>
199  getCreator () const;
200 
206  void
207  setCreator (std::shared_ptr<std::string>& creator);
208 
214  std::shared_ptr<ome::xml::model::Rights>
215  getRights ();
216 
222  const std::shared_ptr<ome::xml::model::Rights>
223  getRights () const;
224 
230  void
231  setRights (std::shared_ptr<ome::xml::model::Rights>& rights);
232 
238  std::vector<std::shared_ptr<ome::xml::model::Project>>::size_type
239  sizeOfProjectList () const;
240 
247  std::vector<std::shared_ptr<ome::xml::model::Project>>&
248  getProjectList ();
249 
256  const std::vector<std::shared_ptr<ome::xml::model::Project>>&
257  getProjectList () const;
258 
266  std::shared_ptr<ome::xml::model::Project>&
267  getProject (std::vector<std::shared_ptr<ome::xml::model::Project>>::size_type index);
268 
276  const std::shared_ptr<ome::xml::model::Project>&
277  getProject (std::vector<std::shared_ptr<ome::xml::model::Project>>::size_type index) const;
278 
286  void
287  setProject (std::vector<std::shared_ptr<ome::xml::model::Project>>::size_type index,
288  std::shared_ptr<ome::xml::model::Project>& project);
289 
298  void
299  addProject (std::shared_ptr<ome::xml::model::Project>& project);
300 
310  void
311  removeProject (std::shared_ptr<ome::xml::model::Project>& project);
312 
318  std::vector<std::shared_ptr<ome::xml::model::Dataset>>::size_type
319  sizeOfDatasetList () const;
320 
327  std::vector<std::shared_ptr<ome::xml::model::Dataset>>&
328  getDatasetList ();
329 
336  const std::vector<std::shared_ptr<ome::xml::model::Dataset>>&
337  getDatasetList () const;
338 
346  std::shared_ptr<ome::xml::model::Dataset>&
347  getDataset (std::vector<std::shared_ptr<ome::xml::model::Dataset>>::size_type index);
348 
356  const std::shared_ptr<ome::xml::model::Dataset>&
357  getDataset (std::vector<std::shared_ptr<ome::xml::model::Dataset>>::size_type index) const;
358 
366  void
367  setDataset (std::vector<std::shared_ptr<ome::xml::model::Dataset>>::size_type index,
368  std::shared_ptr<ome::xml::model::Dataset>& dataset);
369 
378  void
379  addDataset (std::shared_ptr<ome::xml::model::Dataset>& dataset);
380 
390  void
391  removeDataset (std::shared_ptr<ome::xml::model::Dataset>& dataset);
392 
398  std::vector<std::shared_ptr<ome::xml::model::Folder>>::size_type
399  sizeOfFolderList () const;
400 
407  std::vector<std::shared_ptr<ome::xml::model::Folder>>&
408  getFolderList ();
409 
416  const std::vector<std::shared_ptr<ome::xml::model::Folder>>&
417  getFolderList () const;
418 
426  std::shared_ptr<ome::xml::model::Folder>&
427  getFolder (std::vector<std::shared_ptr<ome::xml::model::Folder>>::size_type index);
428 
436  const std::shared_ptr<ome::xml::model::Folder>&
437  getFolder (std::vector<std::shared_ptr<ome::xml::model::Folder>>::size_type index) const;
438 
446  void
447  setFolder (std::vector<std::shared_ptr<ome::xml::model::Folder>>::size_type index,
448  std::shared_ptr<ome::xml::model::Folder>& folder);
449 
458  void
459  addFolder (std::shared_ptr<ome::xml::model::Folder>& folder);
460 
470  void
471  removeFolder (std::shared_ptr<ome::xml::model::Folder>& folder);
472 
478  std::vector<std::shared_ptr<ome::xml::model::Experiment>>::size_type
479  sizeOfExperimentList () const;
480 
487  std::vector<std::shared_ptr<ome::xml::model::Experiment>>&
489 
496  const std::vector<std::shared_ptr<ome::xml::model::Experiment>>&
497  getExperimentList () const;
498 
506  std::shared_ptr<ome::xml::model::Experiment>&
507  getExperiment (std::vector<std::shared_ptr<ome::xml::model::Experiment>>::size_type index);
508 
516  const std::shared_ptr<ome::xml::model::Experiment>&
517  getExperiment (std::vector<std::shared_ptr<ome::xml::model::Experiment>>::size_type index) const;
518 
526  void
527  setExperiment (std::vector<std::shared_ptr<ome::xml::model::Experiment>>::size_type index,
528  std::shared_ptr<ome::xml::model::Experiment>& experiment);
529 
538  void
539  addExperiment (std::shared_ptr<ome::xml::model::Experiment>& experiment);
540 
550  void
551  removeExperiment (std::shared_ptr<ome::xml::model::Experiment>& experiment);
552 
558  std::vector<std::shared_ptr<ome::xml::model::Plate>>::size_type
559  sizeOfPlateList () const;
560 
567  std::vector<std::shared_ptr<ome::xml::model::Plate>>&
568  getPlateList ();
569 
576  const std::vector<std::shared_ptr<ome::xml::model::Plate>>&
577  getPlateList () const;
578 
586  std::shared_ptr<ome::xml::model::Plate>&
587  getPlate (std::vector<std::shared_ptr<ome::xml::model::Plate>>::size_type index);
588 
596  const std::shared_ptr<ome::xml::model::Plate>&
597  getPlate (std::vector<std::shared_ptr<ome::xml::model::Plate>>::size_type index) const;
598 
606  void
607  setPlate (std::vector<std::shared_ptr<ome::xml::model::Plate>>::size_type index,
608  std::shared_ptr<ome::xml::model::Plate>& plate);
609 
618  void
619  addPlate (std::shared_ptr<ome::xml::model::Plate>& plate);
620 
630  void
631  removePlate (std::shared_ptr<ome::xml::model::Plate>& plate);
632 
638  std::vector<std::shared_ptr<ome::xml::model::Screen>>::size_type
639  sizeOfScreenList () const;
640 
647  std::vector<std::shared_ptr<ome::xml::model::Screen>>&
648  getScreenList ();
649 
656  const std::vector<std::shared_ptr<ome::xml::model::Screen>>&
657  getScreenList () const;
658 
666  std::shared_ptr<ome::xml::model::Screen>&
667  getScreen (std::vector<std::shared_ptr<ome::xml::model::Screen>>::size_type index);
668 
676  const std::shared_ptr<ome::xml::model::Screen>&
677  getScreen (std::vector<std::shared_ptr<ome::xml::model::Screen>>::size_type index) const;
678 
686  void
687  setScreen (std::vector<std::shared_ptr<ome::xml::model::Screen>>::size_type index,
688  std::shared_ptr<ome::xml::model::Screen>& screen);
689 
698  void
699  addScreen (std::shared_ptr<ome::xml::model::Screen>& screen);
700 
710  void
711  removeScreen (std::shared_ptr<ome::xml::model::Screen>& screen);
712 
718  std::vector<std::shared_ptr<ome::xml::model::Experimenter>>::size_type
719  sizeOfExperimenterList () const;
720 
727  std::vector<std::shared_ptr<ome::xml::model::Experimenter>>&
729 
736  const std::vector<std::shared_ptr<ome::xml::model::Experimenter>>&
737  getExperimenterList () const;
738 
746  std::shared_ptr<ome::xml::model::Experimenter>&
747  getExperimenter (std::vector<std::shared_ptr<ome::xml::model::Experimenter>>::size_type index);
748 
756  const std::shared_ptr<ome::xml::model::Experimenter>&
757  getExperimenter (std::vector<std::shared_ptr<ome::xml::model::Experimenter>>::size_type index) const;
758 
766  void
767  setExperimenter (std::vector<std::shared_ptr<ome::xml::model::Experimenter>>::size_type index,
768  std::shared_ptr<ome::xml::model::Experimenter>& experimenter);
769 
778  void
779  addExperimenter (std::shared_ptr<ome::xml::model::Experimenter>& experimenter);
780 
790  void
791  removeExperimenter (std::shared_ptr<ome::xml::model::Experimenter>& experimenter);
792 
798  std::vector<std::shared_ptr<ome::xml::model::ExperimenterGroup>>::size_type
800 
807  std::vector<std::shared_ptr<ome::xml::model::ExperimenterGroup>>&
809 
816  const std::vector<std::shared_ptr<ome::xml::model::ExperimenterGroup>>&
817  getExperimenterGroupList () const;
818 
826  std::shared_ptr<ome::xml::model::ExperimenterGroup>&
827  getExperimenterGroup (std::vector<std::shared_ptr<ome::xml::model::ExperimenterGroup>>::size_type index);
828 
836  const std::shared_ptr<ome::xml::model::ExperimenterGroup>&
837  getExperimenterGroup (std::vector<std::shared_ptr<ome::xml::model::ExperimenterGroup>>::size_type index) const;
838 
846  void
847  setExperimenterGroup (std::vector<std::shared_ptr<ome::xml::model::ExperimenterGroup>>::size_type index,
848  std::shared_ptr<ome::xml::model::ExperimenterGroup>& experimenterGroup);
849 
858  void
859  addExperimenterGroup (std::shared_ptr<ome::xml::model::ExperimenterGroup>& experimenterGroup);
860 
870  void
871  removeExperimenterGroup (std::shared_ptr<ome::xml::model::ExperimenterGroup>& experimenterGroup);
872 
878  std::vector<std::shared_ptr<ome::xml::model::Instrument>>::size_type
879  sizeOfInstrumentList () const;
880 
887  std::vector<std::shared_ptr<ome::xml::model::Instrument>>&
889 
896  const std::vector<std::shared_ptr<ome::xml::model::Instrument>>&
897  getInstrumentList () const;
898 
906  std::shared_ptr<ome::xml::model::Instrument>&
907  getInstrument (std::vector<std::shared_ptr<ome::xml::model::Instrument>>::size_type index);
908 
916  const std::shared_ptr<ome::xml::model::Instrument>&
917  getInstrument (std::vector<std::shared_ptr<ome::xml::model::Instrument>>::size_type index) const;
918 
926  void
927  setInstrument (std::vector<std::shared_ptr<ome::xml::model::Instrument>>::size_type index,
928  std::shared_ptr<ome::xml::model::Instrument>& instrument);
929 
938  void
939  addInstrument (std::shared_ptr<ome::xml::model::Instrument>& instrument);
940 
950  void
951  removeInstrument (std::shared_ptr<ome::xml::model::Instrument>& instrument);
952 
958  std::vector<std::shared_ptr<ome::xml::model::Image>>::size_type
959  sizeOfImageList () const;
960 
967  std::vector<std::shared_ptr<ome::xml::model::Image>>&
968  getImageList ();
969 
976  const std::vector<std::shared_ptr<ome::xml::model::Image>>&
977  getImageList () const;
978 
986  std::shared_ptr<ome::xml::model::Image>&
987  getImage (std::vector<std::shared_ptr<ome::xml::model::Image>>::size_type index);
988 
996  const std::shared_ptr<ome::xml::model::Image>&
997  getImage (std::vector<std::shared_ptr<ome::xml::model::Image>>::size_type index) const;
998 
1006  void
1007  setImage (std::vector<std::shared_ptr<ome::xml::model::Image>>::size_type index,
1008  std::shared_ptr<ome::xml::model::Image>& image);
1009 
1018  void
1019  addImage (std::shared_ptr<ome::xml::model::Image>& image);
1020 
1030  void
1031  removeImage (std::shared_ptr<ome::xml::model::Image>& image);
1032 
1038  std::shared_ptr<ome::xml::model::StructuredAnnotations>
1040 
1046  const std::shared_ptr<ome::xml::model::StructuredAnnotations>
1047  getStructuredAnnotations () const;
1048 
1054  void
1055  setStructuredAnnotations (std::shared_ptr<ome::xml::model::StructuredAnnotations>& structuredAnnotations);
1056 
1062  std::vector<std::shared_ptr<ome::xml::model::ROI>>::size_type
1063  sizeOfROIList () const;
1064 
1071  std::vector<std::shared_ptr<ome::xml::model::ROI>>&
1072  getROIList ();
1073 
1080  const std::vector<std::shared_ptr<ome::xml::model::ROI>>&
1081  getROIList () const;
1082 
1090  std::shared_ptr<ome::xml::model::ROI>&
1091  getROI (std::vector<std::shared_ptr<ome::xml::model::ROI>>::size_type index);
1092 
1100  const std::shared_ptr<ome::xml::model::ROI>&
1101  getROI (std::vector<std::shared_ptr<ome::xml::model::ROI>>::size_type index) const;
1102 
1110  void
1111  setROI (std::vector<std::shared_ptr<ome::xml::model::ROI>>::size_type index,
1112  std::shared_ptr<ome::xml::model::ROI>& roi);
1113 
1122  void
1123  addROI (std::shared_ptr<ome::xml::model::ROI>& roi);
1124 
1134  void
1135  removeROI (std::shared_ptr<ome::xml::model::ROI>& roi);
1136 
1142  std::shared_ptr<ome::xml::model::BinaryOnly>
1143  getBinaryOnly ();
1144 
1150  const std::shared_ptr<ome::xml::model::BinaryOnly>
1151  getBinaryOnly () const;
1152 
1158  void
1159  setBinaryOnly (std::shared_ptr<ome::xml::model::BinaryOnly>& binaryOnly);
1160 
1161  protected:
1162  // Documented in base class.
1163  virtual void
1165  common::xml::dom::Element& element) const;
1166 
1167  public:
1168  // Documented in superclass.
1169  const std::string&
1170  getXMLNamespace() const;
1171  };
1172 
1173  }
1174  }
1175 }
1176 
1177 #endif // OME_XML_MODEL_OME_H
1178 
1179 /*
1180  * Local Variables:
1181  * mode:C++
1182  * End:
1183  */
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:1000
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:1230
void addExperiment(std::shared_ptr< ome::xml::model::Experiment > &experiment)
Add Experiment.
Definition: OME.cpp:838
std::vector< std::shared_ptr< ome::xml::model::Image > >::size_type sizeOfImageList() const
Get size of linked Image list.
Definition: OME.cpp:1125
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:1143
void removeInstrument(std::shared_ptr< ome::xml::model::Instrument > &instrument)
Remove Instrument.
Definition: OME.cpp:1114
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:819
void removeROI(std::shared_ptr< ome::xml::model::ROI > &roi)
Remove ROI.
Definition: OME.cpp:1243
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:561
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:669
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:723
OME model object.
Definition: OME.h:92
void addProject(std::shared_ptr< ome::xml::model::Project > &project)
Add Project.
Definition: OME.cpp:676
const std::string & elementName() const
Get the element name of this model object.
Definition: OME.cpp:358
std::vector< std::shared_ptr< ome::xml::model::Plate > > & getPlateList()
Get the Plate list.
Definition: OME.cpp:861
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:1089
std::vector< std::shared_ptr< ome::xml::model::Screen > >::size_type sizeOfScreenList() const
Get size of linked Screen list.
Definition: OME.cpp:909
void setBinaryOnly(std::shared_ptr< ome::xml::model::BinaryOnly > &binaryOnly)
Set the BinaryOnly property.
Definition: OME.cpp:1268
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:1218
std::vector< std::shared_ptr< ome::xml::model::Image > > & getImageList()
Get the Image list.
Definition: OME.cpp:1131
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:765
OME model object (concrete implementation).
Definition: OMEModelObject.h:64
void removeDataset(std::shared_ptr< ome::xml::model::Dataset > &dataset)
Remove Dataset.
Definition: OME.cpp:736
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:1101
std::vector< std::shared_ptr< ome::xml::model::Plate > >::size_type sizeOfPlateList() const
Get size of linked Plate list.
Definition: OME.cpp:855
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:1047
std::shared_ptr< std::string > getCreator()
Get the Creator property.
Definition: OME.cpp:597
void removeExperimenter(std::shared_ptr< ome::xml::model::Experimenter > &experimenter)
Remove Experimenter.
Definition: OME.cpp:1006
void addFolder(std::shared_ptr< ome::xml::model::Folder > &folder)
Add Folder.
Definition: OME.cpp:784
std::vector< std::shared_ptr< ome::xml::model::Project > >::size_type sizeOfProjectList() const
Get size of linked Project list.
Definition: OME.cpp:639
std::vector< std::shared_ptr< ome::xml::model::Experiment > >::size_type sizeOfExperimentList() const
Get size of linked Experiment list.
Definition: OME.cpp:801
std::shared_ptr< ome::xml::model::StructuredAnnotations > getStructuredAnnotations()
Get the StructuredAnnotations property.
Definition: OME.cpp:1179
std::vector< std::shared_ptr< ome::xml::model::ROI > > & getROIList()
Get the ROI list.
Definition: OME.cpp:1206
std::vector< std::shared_ptr< ome::xml::model::Folder > >::size_type sizeOfFolderList() const
Get size of linked Folder list.
Definition: OME.cpp:747
virtual ~OME()
Destructor.
Definition: OME.cpp:344
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:711
void setRights(std::shared_ptr< ome::xml::model::Rights > &rights)
Set the Rights property.
Definition: OME.cpp:632
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:981
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:1155
void removeFolder(std::shared_ptr< ome::xml::model::Folder > &folder)
Remove Folder.
Definition: OME.cpp:790
std::vector< std::shared_ptr< ome::xml::model::Experimenter > >::size_type sizeOfExperimenterList() const
Get size of linked Experimenter list.
Definition: OME.cpp:963
OME()
Default constructor.
Definition: OME.cpp:329
void addDataset(std::shared_ptr< ome::xml::model::Dataset > &dataset)
Add Dataset.
Definition: OME.cpp:730
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:1035
Open Microscopy Environment C++ implementation.
void removeExperiment(std::shared_ptr< ome::xml::model::Experiment > &experiment)
Remove Experiment.
Definition: OME.cpp:844
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:939
void setCreator(std::shared_ptr< std::string > &creator)
Set the Creator property.
Definition: OME.cpp:611
void removeScreen(std::shared_ptr< ome::xml::model::Screen > &screen)
Remove Screen.
Definition: OME.cpp:952
void addImage(std::shared_ptr< ome::xml::model::Image > &image)
Add Image.
Definition: OME.cpp:1162
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:927
std::vector< std::shared_ptr< ome::xml::model::Screen > > & getScreenList()
Get the Screen list.
Definition: OME.cpp:915
std::shared_ptr< ome::xml::model::Rights > getRights()
Get the Rights property.
Definition: OME.cpp:618
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:831
virtual 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:371
std::vector< std::shared_ptr< ome::xml::model::ExperimenterGroup > > & getExperimenterGroupList()
Get the ExperimenterGroup list.
Definition: OME.cpp:1023
void addROI(std::shared_ptr< ome::xml::model::ROI > &roi)
Add ROI.
Definition: OME.cpp:1237
std::vector< std::shared_ptr< ome::xml::model::Dataset > >::size_type sizeOfDatasetList() const
Get size of linked Dataset list.
Definition: OME.cpp:693
void removeImage(std::shared_ptr< ome::xml::model::Image > &image)
Remove Image.
Definition: OME.cpp:1168
void addScreen(std::shared_ptr< ome::xml::model::Screen > &screen)
Add Screen.
Definition: OME.cpp:946
std::vector< std::shared_ptr< ome::xml::model::Project > > & getProjectList()
Get the Project list.
Definition: OME.cpp:645
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:993
std::vector< std::shared_ptr< ome::xml::model::Instrument > > & getInstrumentList()
Get the Instrument list.
Definition: OME.cpp:1077
const std::string & getXMLNamespace() const
Get the XML namespace for this model object.
Definition: OME.cpp:1481
std::vector< std::shared_ptr< ome::xml::model::Instrument > >::size_type sizeOfInstrumentList() const
Get size of linked Instrument list.
Definition: OME.cpp:1071
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:777
std::vector< std::shared_ptr< ome::xml::model::Experimenter > > & getExperimenterList()
Get the Experimenter list.
Definition: OME.cpp:969
void addInstrument(std::shared_ptr< ome::xml::model::Instrument > &instrument)
Add Instrument.
Definition: OME.cpp:1108
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:885
std::vector< std::shared_ptr< ome::xml::model::Dataset > > & getDatasetList()
Get the Dataset list.
Definition: OME.cpp:699
void addPlate(std::shared_ptr< ome::xml::model::Plate > &plate)
Add Plate.
Definition: OME.cpp:892
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:349
std::shared_ptr< std::string > getUUID()
Get the UUID property.
Definition: OME.cpp:576
std::vector< std::shared_ptr< ome::xml::model::Experiment > > & getExperimentList()
Get the Experiment list.
Definition: OME.cpp:807
OME & operator=(const OME &)
Assignment operator (deleted).
void removeProject(std::shared_ptr< ome::xml::model::Project > &project)
Remove Project.
Definition: OME.cpp:682
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:873
std::vector< std::shared_ptr< ome::xml::model::Folder > > & getFolderList()
Get the Folder list.
Definition: OME.cpp:753
void removePlate(std::shared_ptr< ome::xml::model::Plate > &plate)
Remove Plate.
Definition: OME.cpp:898
bool validElementName(const std::string &name) const
Check if a given element name is valid for processing by this model object.
Definition: OME.cpp:365
void removeExperimenterGroup(std::shared_ptr< ome::xml::model::ExperimenterGroup > &experimenterGroup)
Remove ExperimenterGroup.
Definition: OME.cpp:1060
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:657
void addExperimenterGroup(std::shared_ptr< ome::xml::model::ExperimenterGroup > &experimenterGroup)
Add ExperimenterGroup.
Definition: OME.cpp:1054
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:1017
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:1274
void setUUID(std::shared_ptr< std::string > &uuid)
Set the UUID property.
Definition: OME.cpp:590
std::shared_ptr< ome::xml::model::BinaryOnly > getBinaryOnly()
Get the BinaryOnly property.
Definition: OME.cpp:1254
void setStructuredAnnotations(std::shared_ptr< ome::xml::model::StructuredAnnotations > &structuredAnnotations)
Set the StructuredAnnotations property.
Definition: OME.cpp:1193
std::vector< std::shared_ptr< ome::xml::model::ROI > >::size_type sizeOfROIList() const
Get size of linked ROI list.
Definition: OME.cpp:1200