46 #ifndef OME_XML_MODEL_ENUMS_UNITSTEMPERATURE_H 47 #define OME_XML_MODEL_ENUMS_UNITSTEMPERATURE_H 55 #include <ome/xml/model/enums/EnumerationException.h> 57 #include <ome/xml/model/primitives/Quantity.h> 60 #define OME_XML_MODEL_ENUMS_UNITSTEMPERATURE_VALUES (CELSIUS)(FAHRENHEIT)(KELVIN)(RANKINE) 159 operator const std::string& ()
const 174 static const string_map_type&
182 static const value_map_type&
191 static const string_map_type&
251 const std::string& rhs)
253 return static_cast<const std::string&
>(lhs) == rhs;
267 return lhs ==
static_cast<const std::string&
>(rhs);
321 const std::string& rhs)
323 return static_cast<const std::string&
>(lhs) != rhs;
337 return lhs !=
static_cast<const std::string&
>(rhs);
347 template<
class charT,
class traits>
348 inline std::basic_ostream<charT,traits>&
349 operator<< (std::basic_ostream<charT,traits>& os,
352 return os << static_cast<const std::string&>(enumeration);
362 template<
class charT,
class traits>
363 inline std::basic_istream<charT,traits>&
377 is.setstate(std::ios::failbit);
389 #include <ome/xml/model/enums/UnitsTemperatureConvert.h> 391 #endif // OME_XML_MODEL_ENUMS_UNITSTEMPERATURE_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
Enumeration values.
Definition: UnitsTemperature.h:78
degree Celsius unit.
Definition: UnitsTemperature.h:83
std::map< UnitsTemperature::enum_value, std::string > value_map_type
Value map type.
Definition: UnitsTemperature.h:167
EnumerationException is thrown when an enumeration is invalid or not found.
Definition: EnumerationException.h:74
UnitsTemperature enumeration.
Definition: UnitsTemperature.h:74
UnitsTemperature(enum_value value)
Construct a UnitsTemperature enumeration by an enumeration value.
Definition: UnitsTemperature.cpp:67
degree Fahrenheit unit.
Definition: UnitsTemperature.h:87
static const value_map_type & values()
Get a map of valid enum values and string names.
Definition: UnitsTemperature.cpp:144
std::map< std::string, UnitsTemperature::enum_value > string_map_type
String map type.
Definition: UnitsTemperature.h:165
UnitsTemperature & operator=(const UnitsTemperature &rhs)
Assignment operator.
Definition: UnitsTemperature.h:135
Open Microscopy Environment C++ implementation.
static const string_map_type & strings()
Get a map of valid string names and enum values.
Definition: UnitsTemperature.cpp:130
static const string_map_type & lowercase_strings()
Get a map of valid lowercased string names and enum values.
Definition: UnitsTemperature.cpp:158
bool operator==(const AcquisitionMode &lhs, const AcquisitionMode &rhs)
Compare two AcquisitionMode objects for equality.
Definition: AcquisitionMode.h:236
const std::string * name
Enumeration name.
Definition: UnitsTemperature.h:197
enum_value value
Enumeration value.
Definition: UnitsTemperature.h:195
degree Rankine unit.
Definition: UnitsTemperature.h:95
Kelvin unit.
Definition: UnitsTemperature.h:91