46 #ifndef OME_XML_MODEL_ENUMS_LASERMEDIUM_H 47 #define OME_XML_MODEL_ENUMS_LASERMEDIUM_H 55 #include <ome/xml/model/enums/EnumerationException.h> 58 #define OME_XML_MODEL_ENUMS_LASERMEDIUM_VALUES (CU)(AG)(ARFL)(ARCL)(KRFL)(KRCL)(XEFL)(XECL)(XEBR)(N)(AR)(KR)(XE)(HENE)(HECD)(CO)(CO2)(H2O)(HFL)(NDGLASS)(NDYAG)(ERGLASS)(ERYAG)(HOYLF)(HOYAG)(RUBY)(TISAPPHIRE)(ALEXANDRITE)(RHODAMINE6G)(COUMARINC30)(GAAS)(GAALAS)(EMINUS)(OTHER) 209 operator const std::string& ()
const 224 static const string_map_type&
232 static const value_map_type&
241 static const string_map_type&
301 const std::string& rhs)
303 return static_cast<const std::string&
>(lhs) == rhs;
317 return lhs ==
static_cast<const std::string&
>(rhs);
371 const std::string& rhs)
373 return static_cast<const std::string&
>(lhs) != rhs;
387 return lhs !=
static_cast<const std::string&
>(rhs);
397 template<
class charT,
class traits>
398 inline std::basic_ostream<charT,traits>&
399 operator<< (std::basic_ostream<charT,traits>& os,
402 return os << static_cast<const std::string&>(enumeration);
412 template<
class charT,
class traits>
413 inline std::basic_istream<charT,traits>&
427 is.setstate(std::ios::failbit);
439 #endif // OME_XML_MODEL_ENUMS_LASERMEDIUM_H std::basic_istream< charT, traits > & operator>>(std::basic_istream< charT, traits > &is, AcquisitionMode &enumeration)
Set AcquisitionMode from input stream.
Definition: AcquisitionMode.h:392
enum_value
Enumeration values.
Definition: LaserMedium.h:76
bool operator!=(const AcquisitionMode &lhs, const AcquisitionMode &rhs)
Compare two AcquisitionMode objects for non-equality.
Definition: AcquisitionMode.h:306
GaAlAs.
Definition: LaserMedium.h:141
XeFl.
Definition: LaserMedium.h:91
Ar.
Definition: LaserMedium.h:99
NdGlass.
Definition: LaserMedium.h:117
Other.
Definition: LaserMedium.h:145
CO.
Definition: LaserMedium.h:109
CoumarinC30.
Definition: LaserMedium.h:137
EnumerationException is thrown when an enumeration is invalid or not found.
Definition: EnumerationException.h:74
Kr.
Definition: LaserMedium.h:101
GaAs.
Definition: LaserMedium.h:139
ArFl.
Definition: LaserMedium.h:83
XeBr.
Definition: LaserMedium.h:95
CO2.
Definition: LaserMedium.h:111
Alexandrite.
Definition: LaserMedium.h:133
HeNe.
Definition: LaserMedium.h:105
HoYAG.
Definition: LaserMedium.h:127
H2O.
Definition: LaserMedium.h:113
Ruby.
Definition: LaserMedium.h:129
const std::string * name
Enumeration name.
Definition: LaserMedium.h:247
ErYAG.
Definition: LaserMedium.h:123
XeCl.
Definition: LaserMedium.h:93
Ag.
Definition: LaserMedium.h:81
static const value_map_type & values()
Get a map of valid enum values and string names.
Definition: LaserMedium.cpp:189
HeCd.
Definition: LaserMedium.h:107
Rhodamine6G.
Definition: LaserMedium.h:135
ErGlass.
Definition: LaserMedium.h:121
EMinus.
Definition: LaserMedium.h:143
std::map< std::string, LaserMedium::enum_value > string_map_type
String map type.
Definition: LaserMedium.h:215
Open Microscopy Environment C++ implementation.
TiSapphire.
Definition: LaserMedium.h:131
ArCl.
Definition: LaserMedium.h:85
HFl.
Definition: LaserMedium.h:115
enum_value value
Enumeration value.
Definition: LaserMedium.h:245
bool operator==(const AcquisitionMode &lhs, const AcquisitionMode &rhs)
Compare two AcquisitionMode objects for equality.
Definition: AcquisitionMode.h:236
NdYAG.
Definition: LaserMedium.h:119
LaserMedium & operator=(const LaserMedium &rhs)
Assignment operator.
Definition: LaserMedium.h:185
std::map< LaserMedium::enum_value, std::string > value_map_type
Value map type.
Definition: LaserMedium.h:217
KrCl.
Definition: LaserMedium.h:89
static const string_map_type & lowercase_strings()
Get a map of valid lowercased string names and enum values.
Definition: LaserMedium.cpp:233
static const string_map_type & strings()
Get a map of valid string names and enum values.
Definition: LaserMedium.cpp:145
N.
Definition: LaserMedium.h:97
Xe.
Definition: LaserMedium.h:103
KrFl.
Definition: LaserMedium.h:87
LaserMedium(enum_value value)
Construct a LaserMedium enumeration by an enumeration value.
Definition: LaserMedium.cpp:67
Cu.
Definition: LaserMedium.h:79
HoYLF.
Definition: LaserMedium.h:125
LaserMedium enumeration.
Definition: LaserMedium.h:72