46 #ifndef OME_XML_MODEL_ENUMS_IMMERSION_H 47 #define OME_XML_MODEL_ENUMS_IMMERSION_H 55 #include <ome/xml/model/enums/EnumerationException.h> 58 #define OME_XML_MODEL_ENUMS_IMMERSION_VALUES (OIL)(WATER)(WATERDIPPING)(AIR)(MULTI)(GLYCEROL)(OTHER) 153 operator const std::string& ()
const 168 static const string_map_type&
176 static const value_map_type&
185 static const string_map_type&
245 const std::string& rhs)
247 return static_cast<const std::string&
>(lhs) == rhs;
261 return lhs ==
static_cast<const std::string&
>(rhs);
315 const std::string& rhs)
317 return static_cast<const std::string&
>(lhs) != rhs;
331 return lhs !=
static_cast<const std::string&
>(rhs);
341 template<
class charT,
class traits>
342 inline std::basic_ostream<charT,traits>&
343 operator<< (std::basic_ostream<charT,traits>& os,
346 return os << static_cast<const std::string&>(enumeration);
356 template<
class charT,
class traits>
357 inline std::basic_istream<charT,traits>&
371 is.setstate(std::ios::failbit);
383 #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:384
bool operator!=(const AcquisitionMode &lhs, const AcquisitionMode &rhs)
Compare two AcquisitionMode objects for non-equality.
Definition: AcquisitionMode.h:298
enum_value value
Enumeration value.
Definition: Immersion.h:189
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:85
Immersion(enum_value value)
Construct a Immersion enumeration by an enumeration value.
Definition: Immersion.cpp:75
Other.
Definition: Immersion.h:91
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:159
Immersion enumeration.
Definition: Immersion.h:72
std::map< Immersion::enum_value, std::string > value_map_type
Value map type.
Definition: Immersion.h:161
Open Microscopy Environment C++ implementation.
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:228
WaterDipping.
Definition: Immersion.h:83
Glycerol.
Definition: Immersion.h:89
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:129
const std::string * name
Enumeration name.
Definition: Immersion.h:191
Oil.
Definition: Immersion.h:79
enum_value
Enumeration values.
Definition: Immersion.h:76
Multi.
Definition: Immersion.h:87
Water.
Definition: Immersion.h:81