46 #ifndef OME_XML_MODEL_PRIMITIVES_LENGTHQUANTITY_H 47 #define OME_XML_MODEL_PRIMITIVES_LENGTHQUANTITY_H 54 #include <ome/xml/model/primitives/Quantity.h> 205 operator const std::string& ()
const 220 static const string_map_type&
228 static const value_map_type&
237 static const string_map_type&
297 const std::string& rhs)
299 return static_cast<const std::string&
>(lhs) == rhs;
313 return lhs ==
static_cast<const std::string&
>(rhs);
367 const std::string& rhs)
369 return static_cast<const std::string&
>(lhs) != rhs;
383 return lhs !=
static_cast<const std::string&
>(rhs);
393 template<
class charT,
class traits>
394 inline std::basic_ostream<charT,traits>&
395 operator<< (std::basic_ostream<charT,traits>& os,
398 return os << static_cast<const std::string&>(enumeration);
408 template<
class charT,
class traits>
409 inline std::basic_istream<charT,traits>&
421 catch (
const EnumerationException&)
423 is.setstate(std::ios::failbit);
435 #endif // OME_XML_MODEL_PRIMITIVES_LENGTHQUANTITY_H inch Imperial unit.
Definition: LengthQuantity.h:123
terrestrial mile Imperial unit.
Definition: LengthQuantity.h:129
line Imperial unit (1/12 inch).
Definition: LengthQuantity.h:121
std::map< UnitsLength::enum_value, std::string > value_map_type
Value map type.
Definition: LengthQuantity.h:213
nanometer SI unit.
Definition: LengthQuantity.h:105
thou Imperial unit (or mil, 1/1000 inch).
Definition: LengthQuantity.h:119
reference frame abstract unit. This is not convertible to any other length unit without a scaling fac...
Definition: LengthQuantity.h:141
astronomical unit SI-derived unit. The official term is ua as the SI standard assigned AU to absorban...
Definition: LengthQuantity.h:131
parsec.
Definition: LengthQuantity.h:135
bool operator!=(const Color &lhs, const Color &rhs)
Compare two Color objects for non-equality.
Definition: Color.h:392
enum_value value
Enumeration value.
Definition: LengthQuantity.h:241
pixel abstract unit. This is not convertible to any other length unit without a calibrated scaling fa...
Definition: LengthQuantity.h:139
hectometer SI unit.
Definition: LengthQuantity.h:91
gigameter SI unit.
Definition: LengthQuantity.h:85
exameter SI unit.
Definition: LengthQuantity.h:79
yoctometer SI unit.
Definition: LengthQuantity.h:115
light year.
Definition: LengthQuantity.h:133
ångström SI-derived unit.
Definition: LengthQuantity.h:117
const std::string * name
Enumeration name.
Definition: LengthQuantity.h:243
yard Imperial unit.
Definition: LengthQuantity.h:127
attometer SI unit.
Definition: LengthQuantity.h:111
typography point Imperial-derived unit (1/72 inch). Use of this unit should be limited to font sizes...
Definition: LengthQuantity.h:137
zettameter SI unit.
Definition: LengthQuantity.h:77
petameter SI unit.
Definition: LengthQuantity.h:81
Open Microscopy Environment C++ implementation.
bool operator==(const Color &lhs, const Color &rhs)
Compare two Color objects for equality.
Definition: Color.h:322
picometer SI unit.
Definition: LengthQuantity.h:107
zeptometer SI unit.
Definition: LengthQuantity.h:113
yottameter SI unit.
Definition: LengthQuantity.h:75
millimeter SI unit.
Definition: LengthQuantity.h:101
static const string_map_type & strings()
Get a map of valid string names and enum values.
std::map< std::string, UnitsLength::enum_value > string_map_type
String map type.
Definition: LengthQuantity.h:211
UnitsLength(enum_value value)
Construct a UnitsLength quantity by an enumeration value.
meter SI unit.
Definition: LengthQuantity.h:95
kilometer SI unit.
Definition: LengthQuantity.h:89
megameter SI unit.
Definition: LengthQuantity.h:87
UnitsLength enumeration.
Definition: LengthQuantity.h:68
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
terameter SI unit.
Definition: LengthQuantity.h:83
centimeter SI unit.
Definition: LengthQuantity.h:99
UnitsLength & operator=(const UnitsLength &rhs)
Assignment operator.
Definition: LengthQuantity.h:181
decameter SI unit.
Definition: LengthQuantity.h:93
decimeter SI unit.
Definition: LengthQuantity.h:97
enum_value
Enumeration values.
Definition: LengthQuantity.h:72
femtometer SI unit.
Definition: LengthQuantity.h:109
static const string_map_type & lowercase_strings()
Get a map of valid lowercased string names and enum values.
foot Imperial unit.
Definition: LengthQuantity.h:125
micrometer SI unit.
Definition: LengthQuantity.h:103