46 #ifndef OME_XML_MODEL_ENUMS_CORRECTION_H
47 #define OME_XML_MODEL_ENUMS_CORRECTION_H
55 #include <ome/xml/model/enums/EnumerationException.h>
166 operator const std::string& ()
const
181 static const string_map_type&
189 static const value_map_type&
198 static const string_map_type&
258 const std::string& rhs)
260 return static_cast<const std::string&
>(lhs) == rhs;
274 return lhs ==
static_cast<const std::string&
>(rhs);
328 const std::string& rhs)
330 return static_cast<const std::string&
>(lhs) != rhs;
344 return lhs !=
static_cast<const std::string&
>(rhs);
354 template<
class charT,
class traits>
355 inline std::basic_ostream<charT,traits>&
356 operator<< (std::basic_ostream<charT,traits>& os,
359 return os << static_cast<const std::string&>(enumeration);
369 template<
class charT,
class traits>
370 inline std::basic_istream<charT,traits>&
384 is.setstate(std::ios::failbit);
396 #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:381
bool operator!=(const AcquisitionMode &lhs, const AcquisitionMode &rhs)
Compare two AcquisitionMode objects for non-equality.
Definition: AcquisitionMode.h:295
Correction enumeration.
Definition: Correction.h:69
Correction(enum_value value)
Construct a Correction enumeration by an enumeration value.
Definition: Correction.cpp:75
Fluotar.
Definition: Correction.h:98
PlanNeofluar.
Definition: Correction.h:102
std::map< std::string, Correction::enum_value > string_map_type
String map type.
Definition: Correction.h:172
EnumerationException is thrown when an enumeration is invalid or not found.
Definition: EnumerationException.h:74
Neofluar.
Definition: Correction.h:96
Other.
Definition: Correction.h:104
enum_value
Enumeration values.
Definition: Correction.h:73
Achro.
Definition: Correction.h:86
enum_value value
Enumeration value.
Definition: Correction.h:202
PlanApo.
Definition: Correction.h:78
static const string_map_type & strings()
Get a map of valid string names and enum values.
Definition: Correction.cpp:153
VioletCorrected.
Definition: Correction.h:84
SuperFluor.
Definition: Correction.h:82
Fl.
Definition: Correction.h:92
const std::string * name
Enumeration name.
Definition: Correction.h:204
Apo.
Definition: Correction.h:100
std::map< Correction::enum_value, std::string > value_map_type
Value map type.
Definition: Correction.h:174
Open Microscopy Environment C++ implementation.
Definition: CoreMetadata.cpp:40
Correction & operator=(const Correction &rhs)
Assignment operator.
Definition: Correction.h:142
bool operator==(const AcquisitionMode &lhs, const AcquisitionMode &rhs)
Compare two AcquisitionMode objects for equality.
Definition: AcquisitionMode.h:225
Fluar.
Definition: Correction.h:94
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:76
Fluor.
Definition: Correction.h:90
Achromat.
Definition: Correction.h:88
PlanFluor.
Definition: Correction.h:80
static const value_map_type & values()
Get a map of valid enum values and string names.
Definition: Correction.cpp:181
Xerces-C modern C++ wrapper.
Definition: Base.h:53