46 #ifndef OME_XML_MODEL_ENUMS_IMMERSION_H
47 #define OME_XML_MODEL_ENUMS_IMMERSION_H
55 #include <ome/xml/model/enums/EnumerationException.h>
151 operator const std::string& ()
const
166 static const string_map_type&
174 static const value_map_type&
242 const std::string& rhs)
244 return static_cast<const std::string&
>(lhs) == rhs;
258 return lhs ==
static_cast<const std::string&
>(rhs);
312 const std::string& rhs)
314 return static_cast<const std::string&
>(lhs) != rhs;
328 return lhs !=
static_cast<const std::string&
>(rhs);
338 template<
class charT,
class traits>
339 inline std::basic_ostream<charT,traits>&
340 operator<< (std::basic_ostream<charT,traits>& os,
343 return os << static_cast<const std::string&>(enumeration);
353 template<
class charT,
class traits>
354 inline std::basic_istream<charT,traits>&
368 is.setstate(std::ios::failbit);
380 #endif // OME_XML_MODEL_ENUMS_IMMERSION_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
enum_value value
Enumeration value.
Definition: Immersion.h:179
Air.
Definition: Immersion.h:83
Immersion(enum_value value)
Construct a Immersion enumeration by an enumeration value.
Definition: Immersion.cpp:135
Other.
Definition: Immersion.h:89
EnumerationException is thrown when an enumeration is invalid or not found.
Definition: EnumerationException.h:74
static const string_map_type string_map
Mapping of enumeration name to value.
Definition: Immersion.h:184
std::map< std::string, Immersion::enum_value > string_map_type
String map type.
Definition: Immersion.h:157
static const string_map_type lowercase_string_map
Mapping of lowercase enumeration name to value.
Definition: Immersion.h:186
Immersion enumeration.
Definition: Immersion.h:70
std::map< Immersion::enum_value, std::string > value_map_type
Value map type.
Definition: Immersion.h:159
Open Microscopy Environment C++ implementation.
Definition: CoreMetadata.cpp:40
static const value_map_type & values()
Get a map of valid enum values and string names.
Definition: Immersion.cpp:74
bool operator==(const AcquisitionMode &lhs, const AcquisitionMode &rhs)
Compare two AcquisitionMode objects for equality.
Definition: AcquisitionMode.h:225
WaterDipping.
Definition: Immersion.h:81
Glycerol.
Definition: Immersion.h:87
static const string_map_type & strings()
Get a map of valid string names and enum values.
Definition: Immersion.cpp:68
Immersion & operator=(const Immersion &rhs)
Assignment operator.
Definition: Immersion.h:127
const std::string * name
Enumeration name.
Definition: Immersion.h:181
Oil.
Definition: Immersion.h:77
enum_value
Enumeration values.
Definition: Immersion.h:74
static const value_map_type value_map
Mapping of enumeration value to name.
Definition: Immersion.h:188
Multi.
Definition: Immersion.h:85
Water.
Definition: Immersion.h:79
Xerces-C modern C++ wrapper.
Definition: Base.h:53