46 #ifndef OME_XML_MODEL_PRIMITIVES_TEMPERATUREQUANTITY_H 47 #define OME_XML_MODEL_PRIMITIVES_TEMPERATUREQUANTITY_H 54 #include <ome/xml/model/primitives/Quantity.h> 145 operator const std::string& ()
const 160 static const string_map_type&
168 static const value_map_type&
177 static const string_map_type&
237 const std::string& rhs)
239 return static_cast<const std::string&
>(lhs) == rhs;
253 return lhs ==
static_cast<const std::string&
>(rhs);
307 const std::string& rhs)
309 return static_cast<const std::string&
>(lhs) != rhs;
323 return lhs !=
static_cast<const std::string&
>(rhs);
333 template<
class charT,
class traits>
334 inline std::basic_ostream<charT,traits>&
335 operator<< (std::basic_ostream<charT,traits>& os,
338 return os << static_cast<const std::string&>(enumeration);
348 template<
class charT,
class traits>
349 inline std::basic_istream<charT,traits>&
361 catch (
const EnumerationException&)
363 is.setstate(std::ios::failbit);
375 #endif // OME_XML_MODEL_PRIMITIVES_TEMPERATUREQUANTITY_H degree Rankine unit.
Definition: TemperatureQuantity.h:81
Kelvin unit.
Definition: TemperatureQuantity.h:79
bool operator!=(const Color &lhs, const Color &rhs)
Compare two Color objects for non-equality.
Definition: Color.h:392
std::map< UnitsTemperature::enum_value, std::string > value_map_type
Value map type.
Definition: TemperatureQuantity.h:153
UnitsTemperature(enum_value value)
Construct a UnitsTemperature quantity by an enumeration value.
static const string_map_type & strings()
Get a map of valid string names and enum values.
degree Fahrenheit unit.
Definition: TemperatureQuantity.h:77
std::map< std::string, UnitsTemperature::enum_value > string_map_type
String map type.
Definition: TemperatureQuantity.h:151
degree Celsius unit.
Definition: TemperatureQuantity.h:75
Open Microscopy Environment C++ implementation.
bool operator==(const Color &lhs, const Color &rhs)
Compare two Color objects for equality.
Definition: Color.h:322
static const string_map_type & lowercase_strings()
Get a map of valid lowercased string names and enum values.
enum_value
Enumeration values.
Definition: TemperatureQuantity.h:72
static const value_map_type & values()
Get a map of valid enum values and string names.
std::basic_istream< charT, traits > & operator>>(std::basic_istream< charT, traits > &is, Color &color)
Set Color from input stream.
Definition: Color.h:478
enum_value value
Enumeration value.
Definition: TemperatureQuantity.h:181
UnitsTemperature & operator=(const UnitsTemperature &rhs)
Assignment operator.
Definition: TemperatureQuantity.h:121
UnitsTemperature enumeration.
Definition: TemperatureQuantity.h:68
const std::string * name
Enumeration name.
Definition: TemperatureQuantity.h:183