46 #ifndef OME_XML_MODEL_ENUMS_CONTRASTMETHOD_H 47 #define OME_XML_MODEL_ENUMS_CONTRASTMETHOD_H 55 #include <ome/xml/model/enums/EnumerationException.h> 58 #define OME_XML_MODEL_ENUMS_CONTRASTMETHOD_VALUES (BRIGHTFIELD)(PHASE)(DIC)(HOFFMANMODULATION)(OBLIQUEILLUMINATION)(POLARIZEDLIGHT)(DARKFIELD)(FLUORESCENCE)(OTHER) 159 operator const std::string& ()
const 174 static const string_map_type&
182 static const value_map_type&
191 static const string_map_type&
251 const std::string& rhs)
253 return static_cast<const std::string&
>(lhs) == rhs;
267 return lhs ==
static_cast<const std::string&
>(rhs);
321 const std::string& rhs)
323 return static_cast<const std::string&
>(lhs) != rhs;
337 return lhs !=
static_cast<const std::string&
>(rhs);
347 template<
class charT,
class traits>
348 inline std::basic_ostream<charT,traits>&
349 operator<< (std::basic_ostream<charT,traits>& os,
352 return os << static_cast<const std::string&>(enumeration);
362 template<
class charT,
class traits>
363 inline std::basic_istream<charT,traits>&
377 is.setstate(std::ios::failbit);
389 #endif // OME_XML_MODEL_ENUMS_CONTRASTMETHOD_H std::basic_istream< charT, traits > & operator>>(std::basic_istream< charT, traits > &is, AcquisitionMode &enumeration)
Set AcquisitionMode from input stream.
Definition: AcquisitionMode.h:392
bool operator!=(const AcquisitionMode &lhs, const AcquisitionMode &rhs)
Compare two AcquisitionMode objects for non-equality.
Definition: AcquisitionMode.h:306
EnumerationException is thrown when an enumeration is invalid or not found.
Definition: EnumerationException.h:74
Darkfield.
Definition: ContrastMethod.h:91
Brightfield.
Definition: ContrastMethod.h:79
Phase.
Definition: ContrastMethod.h:81
std::map< ContrastMethod::enum_value, std::string > value_map_type
Value map type.
Definition: ContrastMethod.h:167
static const string_map_type & strings()
Get a map of valid string names and enum values.
Definition: ContrastMethod.cpp:145
ObliqueIllumination.
Definition: ContrastMethod.h:87
Other.
Definition: ContrastMethod.h:95
DIC.
Definition: ContrastMethod.h:83
ContrastMethod enumeration.
Definition: ContrastMethod.h:72
ContrastMethod & operator=(const ContrastMethod &rhs)
Assignment operator.
Definition: ContrastMethod.h:135
PolarizedLight.
Definition: ContrastMethod.h:89
Open Microscopy Environment C++ implementation.
std::map< std::string, ContrastMethod::enum_value > string_map_type
String map type.
Definition: ContrastMethod.h:165
enum_value
Enumeration values.
Definition: ContrastMethod.h:76
bool operator==(const AcquisitionMode &lhs, const AcquisitionMode &rhs)
Compare two AcquisitionMode objects for equality.
Definition: AcquisitionMode.h:236
HoffmanModulation.
Definition: ContrastMethod.h:85
enum_value value
Enumeration value.
Definition: ContrastMethod.h:195
ContrastMethod(enum_value value)
Construct a ContrastMethod enumeration by an enumeration value.
Definition: ContrastMethod.cpp:67
static const string_map_type & lowercase_strings()
Get a map of valid lowercased string names and enum values.
Definition: ContrastMethod.cpp:183
static const value_map_type & values()
Get a map of valid enum values and string names.
Definition: ContrastMethod.cpp:164
Fluorescence.
Definition: ContrastMethod.h:93
const std::string * name
Enumeration name.
Definition: ContrastMethod.h:197