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) 157 operator const std::string& ()
const 172 static const string_map_type&
180 static const value_map_type&
189 static const string_map_type&
249 const std::string& rhs)
251 return static_cast<const std::string&
>(lhs) == rhs;
265 return lhs ==
static_cast<const std::string&
>(rhs);
319 const std::string& rhs)
321 return static_cast<const std::string&
>(lhs) != rhs;
335 return lhs !=
static_cast<const std::string&
>(rhs);
345 template<
class charT,
class traits>
346 inline std::basic_ostream<charT,traits>&
347 operator<< (std::basic_ostream<charT,traits>& os,
350 return os << static_cast<const std::string&>(enumeration);
360 template<
class charT,
class traits>
361 inline std::basic_istream<charT,traits>&
375 is.setstate(std::ios::failbit);
387 #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:384
bool operator!=(const AcquisitionMode &lhs, const AcquisitionMode &rhs)
Compare two AcquisitionMode objects for non-equality.
Definition: AcquisitionMode.h:298
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:165
static const string_map_type & strings()
Get a map of valid string names and enum values.
Definition: ContrastMethod.cpp:153
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:133
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:163
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:228
HoffmanModulation.
Definition: ContrastMethod.h:85
enum_value value
Enumeration value.
Definition: ContrastMethod.h:193
ContrastMethod(enum_value value)
Construct a ContrastMethod enumeration by an enumeration value.
Definition: ContrastMethod.cpp:75
static const string_map_type & lowercase_strings()
Get a map of valid lowercased string names and enum values.
Definition: ContrastMethod.cpp:197
static const value_map_type & values()
Get a map of valid enum values and string names.
Definition: ContrastMethod.cpp:175
Fluorescence.
Definition: ContrastMethod.h:93
const std::string * name
Enumeration name.
Definition: ContrastMethod.h:195