46 #ifndef OME_XML_MODEL_ENUMS_CORRECTION_H 47 #define OME_XML_MODEL_ENUMS_CORRECTION_H 55 #include <ome/xml/model/enums/EnumerationException.h> 58 #define OME_XML_MODEL_ENUMS_CORRECTION_VALUES (UV)(PLANAPO)(PLANFLUOR)(SUPERFLUOR)(VIOLETCORRECTED)(ACHRO)(ACHROMAT)(FLUOR)(FL)(FLUAR)(NEOFLUAR)(FLUOTAR)(APO)(PLANNEOFLUAR)(OTHER) 169 operator const std::string& ()
const 184 static const string_map_type&
192 static const value_map_type&
201 static const string_map_type&
261 const std::string& rhs)
263 return static_cast<const std::string&
>(lhs) == rhs;
277 return lhs ==
static_cast<const std::string&
>(rhs);
331 const std::string& rhs)
333 return static_cast<const std::string&
>(lhs) != rhs;
347 return lhs !=
static_cast<const std::string&
>(rhs);
357 template<
class charT,
class traits>
358 inline std::basic_ostream<charT,traits>&
359 operator<< (std::basic_ostream<charT,traits>& os,
362 return os << static_cast<const std::string&>(enumeration);
372 template<
class charT,
class traits>
373 inline std::basic_istream<charT,traits>&
387 is.setstate(std::ios::failbit);
399 #endif // OME_XML_MODEL_ENUMS_CORRECTION_H std::basic_istream< charT, traits > & operator>>(std::basic_istream< charT, traits > &is, AcquisitionMode &enumeration)
Set AcquisitionMode from input stream.
Definition: AcquisitionMode.h:384
bool operator!=(const AcquisitionMode &lhs, const AcquisitionMode &rhs)
Compare two AcquisitionMode objects for non-equality.
Definition: AcquisitionMode.h:298
Correction enumeration.
Definition: Correction.h:72
Correction(enum_value value)
Construct a Correction enumeration by an enumeration value.
Definition: Correction.cpp:75
Fluotar.
Definition: Correction.h:101
PlanNeofluar.
Definition: Correction.h:105
std::map< std::string, Correction::enum_value > string_map_type
String map type.
Definition: Correction.h:175
EnumerationException is thrown when an enumeration is invalid or not found.
Definition: EnumerationException.h:74
Neofluar.
Definition: Correction.h:99
Other.
Definition: Correction.h:107
enum_value
Enumeration values.
Definition: Correction.h:76
Achro.
Definition: Correction.h:89
enum_value value
Enumeration value.
Definition: Correction.h:205
PlanApo.
Definition: Correction.h:81
static const string_map_type & strings()
Get a map of valid string names and enum values.
Definition: Correction.cpp:153
VioletCorrected.
Definition: Correction.h:87
SuperFluor.
Definition: Correction.h:85
Fl.
Definition: Correction.h:95
const std::string * name
Enumeration name.
Definition: Correction.h:207
Apo.
Definition: Correction.h:103
std::map< Correction::enum_value, std::string > value_map_type
Value map type.
Definition: Correction.h:177
Open Microscopy Environment C++ implementation.
Correction & operator=(const Correction &rhs)
Assignment operator.
Definition: Correction.h:145
bool operator==(const AcquisitionMode &lhs, const AcquisitionMode &rhs)
Compare two AcquisitionMode objects for equality.
Definition: AcquisitionMode.h:228
Fluar.
Definition: Correction.h:97
static const string_map_type & lowercase_strings()
Get a map of valid lowercased string names and enum values.
Definition: Correction.cpp:209
UV.
Definition: Correction.h:79
Fluor.
Definition: Correction.h:93
Achromat.
Definition: Correction.h:91
PlanFluor.
Definition: Correction.h:83
static const value_map_type & values()
Get a map of valid enum values and string names.
Definition: Correction.cpp:181