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) 155 operator const std::string& ()
const 170 static const string_map_type&
178 static const value_map_type&
187 static const string_map_type&
247 const std::string& rhs)
249 return static_cast<const std::string&
>(lhs) == rhs;
263 return lhs ==
static_cast<const std::string&
>(rhs);
317 const std::string& rhs)
319 return static_cast<const std::string&
>(lhs) != rhs;
333 return lhs !=
static_cast<const std::string&
>(rhs);
343 template<
class charT,
class traits>
344 inline std::basic_ostream<charT,traits>&
345 operator<< (std::basic_ostream<charT,traits>& os,
348 return os << static_cast<const std::string&>(enumeration);
358 template<
class charT,
class traits>
359 inline std::basic_istream<charT,traits>&
373 is.setstate(std::ios::failbit);
385 #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:392
bool operator!=(const AcquisitionMode &lhs, const AcquisitionMode &rhs)
Compare two AcquisitionMode objects for non-equality.
Definition: AcquisitionMode.h:306
enum_value value
Enumeration value.
Definition: Immersion.h:191
static const string_map_type & lowercase_strings()
Get a map of valid lowercased string names and enum values.
Definition: Immersion.cpp:179
Air.
Definition: Immersion.h:85
Immersion(enum_value value)
Construct a Immersion enumeration by an enumeration value.
Definition: Immersion.cpp:67
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:161
Immersion enumeration.
Definition: Immersion.h:72
std::map< Immersion::enum_value, std::string > value_map_type
Value map type.
Definition: Immersion.h:163
Open Microscopy Environment C++ implementation.
static const value_map_type & values()
Get a map of valid enum values and string names.
Definition: Immersion.cpp:162
bool operator==(const AcquisitionMode &lhs, const AcquisitionMode &rhs)
Compare two AcquisitionMode objects for equality.
Definition: AcquisitionMode.h:236
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:145
Immersion & operator=(const Immersion &rhs)
Assignment operator.
Definition: Immersion.h:131
const std::string * name
Enumeration name.
Definition: Immersion.h:193
Oil.
Definition: Immersion.h:79
enum_value
Enumeration values.
Definition: Immersion.h:76
Multi.
Definition: Immersion.h:87
Water.
Definition: Immersion.h:81