46 #ifndef OME_XML_MODEL_ENUMS_IMMERSION_H
47 #define OME_XML_MODEL_ENUMS_IMMERSION_H
55 #include <ome/xml/model/enums/EnumerationException.h>
150 operator const std::string& ()
const
165 static const string_map_type&
173 static const value_map_type&
182 static const string_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:186
static const string_map_type & lowercase_strings()
Get a map of valid lowercased string names and enum values.
Definition: Immersion.cpp:193
Air.
Definition: Immersion.h:82
Immersion(enum_value value)
Construct a Immersion enumeration by an enumeration value.
Definition: Immersion.cpp:75
Other.
Definition: Immersion.h:88
EnumerationException is thrown when an enumeration is invalid or not found.
Definition: EnumerationException.h:74
std::map< std::string, Immersion::enum_value > string_map_type
String map type.
Definition: Immersion.h:156
Immersion enumeration.
Definition: Immersion.h:69
std::map< Immersion::enum_value, std::string > value_map_type
Value map type.
Definition: Immersion.h:158
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:173
bool operator==(const AcquisitionMode &lhs, const AcquisitionMode &rhs)
Compare two AcquisitionMode objects for equality.
Definition: AcquisitionMode.h:225
WaterDipping.
Definition: Immersion.h:80
Glycerol.
Definition: Immersion.h:86
static const string_map_type & strings()
Get a map of valid string names and enum values.
Definition: Immersion.cpp:153
Immersion & operator=(const Immersion &rhs)
Assignment operator.
Definition: Immersion.h:126
const std::string * name
Enumeration name.
Definition: Immersion.h:188
Oil.
Definition: Immersion.h:76
enum_value
Enumeration values.
Definition: Immersion.h:73
Multi.
Definition: Immersion.h:84
Water.
Definition: Immersion.h:78
Xerces-C modern C++ wrapper.
Definition: Base.h:53