46 #ifndef OME_XML_MODEL_ENUMS_CONTRASTMETHOD_H
47 #define OME_XML_MODEL_ENUMS_CONTRASTMETHOD_H
55 #include <ome/xml/model/enums/EnumerationException.h>
154 operator const std::string& ()
const
169 static const string_map_type&
177 static const value_map_type&
186 static const string_map_type&
246 const std::string& rhs)
248 return static_cast<const std::string&
>(lhs) == rhs;
262 return lhs ==
static_cast<const std::string&
>(rhs);
316 const std::string& rhs)
318 return static_cast<const std::string&
>(lhs) != rhs;
332 return lhs !=
static_cast<const std::string&
>(rhs);
342 template<
class charT,
class traits>
343 inline std::basic_ostream<charT,traits>&
344 operator<< (std::basic_ostream<charT,traits>& os,
347 return os << static_cast<const std::string&>(enumeration);
357 template<
class charT,
class traits>
358 inline std::basic_istream<charT,traits>&
372 is.setstate(std::ios::failbit);
384 #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:381
bool operator!=(const AcquisitionMode &lhs, const AcquisitionMode &rhs)
Compare two AcquisitionMode objects for non-equality.
Definition: AcquisitionMode.h:295
EnumerationException is thrown when an enumeration is invalid or not found.
Definition: EnumerationException.h:74
Darkfield.
Definition: ContrastMethod.h:88
Brightfield.
Definition: ContrastMethod.h:76
Phase.
Definition: ContrastMethod.h:78
std::map< ContrastMethod::enum_value, std::string > value_map_type
Value map type.
Definition: ContrastMethod.h:162
static const string_map_type & strings()
Get a map of valid string names and enum values.
Definition: ContrastMethod.cpp:153
ObliqueIllumination.
Definition: ContrastMethod.h:84
Other.
Definition: ContrastMethod.h:92
DIC.
Definition: ContrastMethod.h:80
ContrastMethod enumeration.
Definition: ContrastMethod.h:69
ContrastMethod & operator=(const ContrastMethod &rhs)
Assignment operator.
Definition: ContrastMethod.h:130
PolarizedLight.
Definition: ContrastMethod.h:86
Open Microscopy Environment C++ implementation.
Definition: CoreMetadata.cpp:40
std::map< std::string, ContrastMethod::enum_value > string_map_type
String map type.
Definition: ContrastMethod.h:160
enum_value
Enumeration values.
Definition: ContrastMethod.h:73
bool operator==(const AcquisitionMode &lhs, const AcquisitionMode &rhs)
Compare two AcquisitionMode objects for equality.
Definition: AcquisitionMode.h:225
HoffmanModulation.
Definition: ContrastMethod.h:82
enum_value value
Enumeration value.
Definition: ContrastMethod.h:190
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:90
const std::string * name
Enumeration name.
Definition: ContrastMethod.h:192
Xerces-C modern C++ wrapper.
Definition: Base.h:53