46 #ifndef OME_XML_MODEL_PRIMITIVES_PRESSUREQUANTITY_H 47 #define OME_XML_MODEL_PRIMITIVES_PRESSUREQUANTITY_H 54 #include <ome/xml/model/primitives/Quantity.h> 201 operator const std::string& ()
const 216 static const string_map_type&
224 static const value_map_type&
233 static const string_map_type&
293 const std::string& rhs)
295 return static_cast<const std::string&
>(lhs) == rhs;
309 return lhs ==
static_cast<const std::string&
>(rhs);
363 const std::string& rhs)
365 return static_cast<const std::string&
>(lhs) != rhs;
379 return lhs !=
static_cast<const std::string&
>(rhs);
389 template<
class charT,
class traits>
390 inline std::basic_ostream<charT,traits>&
391 operator<< (std::basic_ostream<charT,traits>& os,
394 return os << static_cast<const std::string&>(enumeration);
404 template<
class charT,
class traits>
405 inline std::basic_istream<charT,traits>&
417 catch (
const EnumerationException&)
419 is.setstate(std::ios::failbit);
431 #endif // OME_XML_MODEL_PRIMITIVES_PRESSUREQUANTITY_H pound-force per square inch Imperial unit.
Definition: PressureQuantity.h:131
enum_value value
Enumeration value.
Definition: PressureQuantity.h:237
torr SI-derived unit.
Definition: PressureQuantity.h:133
decipascal SI unit.
Definition: PressureQuantity.h:97
attopascal SI unit.
Definition: PressureQuantity.h:111
zeptopascal SI unit.
Definition: PressureQuantity.h:113
millitorr SI-derived unit.
Definition: PressureQuantity.h:135
megabar SI-derived unit.
Definition: PressureQuantity.h:119
bool operator!=(const Color &lhs, const Color &rhs)
Compare two Color objects for non-equality.
Definition: Color.h:392
bar SI-derived unit.
Definition: PressureQuantity.h:117
megapascal SI unit.
Definition: PressureQuantity.h:87
static const string_map_type & strings()
Get a map of valid string names and enum values.
static const string_map_type & lowercase_strings()
Get a map of valid lowercased string names and enum values.
femtopascal SI unit.
Definition: PressureQuantity.h:109
std::map< std::string, UnitsPressure::enum_value > string_map_type
String map type.
Definition: PressureQuantity.h:207
millipascal SI unit.
Definition: PressureQuantity.h:101
const std::string * name
Enumeration name.
Definition: PressureQuantity.h:239
decapascal SI unit.
Definition: PressureQuantity.h:93
yoctopascal SI unit.
Definition: PressureQuantity.h:115
static const value_map_type & values()
Get a map of valid enum values and string names.
Open Microscopy Environment C++ implementation.
centipascal SI unit.
Definition: PressureQuantity.h:99
bool operator==(const Color &lhs, const Color &rhs)
Compare two Color objects for equality.
Definition: Color.h:322
centibar SI-derived unit.
Definition: PressureQuantity.h:125
yottapascal SI unit.
Definition: PressureQuantity.h:75
micropascal SI unit.
Definition: PressureQuantity.h:103
hectopascal SI unit.
Definition: PressureQuantity.h:91
petapascal SI unit.
Definition: PressureQuantity.h:81
standard atmosphere SI-derived unit.
Definition: PressureQuantity.h:129
UnitsPressure(enum_value value)
Construct a UnitsPressure quantity by an enumeration value.
millibar SI-derived unit.
Definition: PressureQuantity.h:127
UnitsPressure enumeration.
Definition: PressureQuantity.h:68
millimetre of mercury SI-derived unit
Definition: PressureQuantity.h:137
std::map< UnitsPressure::enum_value, std::string > value_map_type
Value map type.
Definition: PressureQuantity.h:209
exapascal SI unit.
Definition: PressureQuantity.h:79
UnitsPressure & operator=(const UnitsPressure &rhs)
Assignment operator.
Definition: PressureQuantity.h:177
pascal SI unit. Note the C++ enum is mixed case due to PASCAL being a macro used by the Microsoft C a...
Definition: PressureQuantity.h:95
decibar SI-derived unit.
Definition: PressureQuantity.h:123
std::basic_istream< charT, traits > & operator>>(std::basic_istream< charT, traits > &is, Color &color)
Set Color from input stream.
Definition: Color.h:478
picopascal SI unit.
Definition: PressureQuantity.h:107
terapascal SI unit.
Definition: PressureQuantity.h:83
enum_value
Enumeration values.
Definition: PressureQuantity.h:72
kilobar SI-derived unit.
Definition: PressureQuantity.h:121
gigapascal SI unit.
Definition: PressureQuantity.h:85
kilopascal SI unit.
Definition: PressureQuantity.h:89
zettapascal SI unit.
Definition: PressureQuantity.h:77
nanopascal SI unit.
Definition: PressureQuantity.h:105