46 #ifndef OME_XML_MODEL_PRIMITIVES_TIMEQUANTITY_H 47 #define OME_XML_MODEL_PRIMITIVES_TIMEQUANTITY_H 54 #include <ome/xml/model/primitives/Quantity.h> 185 operator const std::string& ()
const 200 static const string_map_type&
208 static const value_map_type&
217 static const string_map_type&
277 const std::string& rhs)
279 return static_cast<const std::string&
>(lhs) == rhs;
293 return lhs ==
static_cast<const std::string&
>(rhs);
347 const std::string& rhs)
349 return static_cast<const std::string&
>(lhs) != rhs;
363 return lhs !=
static_cast<const std::string&
>(rhs);
373 template<
class charT,
class traits>
374 inline std::basic_ostream<charT,traits>&
375 operator<< (std::basic_ostream<charT,traits>& os,
378 return os << static_cast<const std::string&>(enumeration);
388 template<
class charT,
class traits>
389 inline std::basic_istream<charT,traits>&
401 catch (
const EnumerationException&)
403 is.setstate(std::ios::failbit);
415 #endif // OME_XML_MODEL_PRIMITIVES_TIMEQUANTITY_H exasecond SI unit.
Definition: TimeQuantity.h:79
megasecond SI unit.
Definition: TimeQuantity.h:87
decisecond SI unit.
Definition: TimeQuantity.h:97
microsecond SI unit.
Definition: TimeQuantity.h:103
zettasecond SI unit.
Definition: TimeQuantity.h:77
hectosecond SI unit.
Definition: TimeQuantity.h:91
bool operator!=(const Color &lhs, const Color &rhs)
Compare two Color objects for non-equality.
Definition: Color.h:392
static const string_map_type & lowercase_strings()
Get a map of valid lowercased string names and enum values.
enum_value
Enumeration values.
Definition: TimeQuantity.h:72
static const string_map_type & strings()
Get a map of valid string names and enum values.
zeptosecond SI unit.
Definition: TimeQuantity.h:113
UnitsTime(enum_value value)
Construct a UnitsTime quantity by an enumeration value.
std::map< UnitsTime::enum_value, std::string > value_map_type
Value map type.
Definition: TimeQuantity.h:193
terasecond SI unit.
Definition: TimeQuantity.h:83
nanosecond SI unit.
Definition: TimeQuantity.h:105
yottasecond SI unit.
Definition: TimeQuantity.h:75
day SI-derived unit.
Definition: TimeQuantity.h:121
UnitsTime & operator=(const UnitsTime &rhs)
Assignment operator.
Definition: TimeQuantity.h:161
kilosecond SI unit.
Definition: TimeQuantity.h:89
Open Microscopy Environment C++ implementation.
bool operator==(const Color &lhs, const Color &rhs)
Compare two Color objects for equality.
Definition: Color.h:322
minute SI-derived unit.
Definition: TimeQuantity.h:117
const std::string * name
Enumeration name.
Definition: TimeQuantity.h:223
petasecond SI unit.
Definition: TimeQuantity.h:81
std::map< std::string, UnitsTime::enum_value > string_map_type
String map type.
Definition: TimeQuantity.h:191
std::basic_istream< charT, traits > & operator>>(std::basic_istream< charT, traits > &is, Color &color)
Set Color from input stream.
Definition: Color.h:478
attosecond SI unit.
Definition: TimeQuantity.h:111
femtosecond SI unit.
Definition: TimeQuantity.h:109
hour SI-derived unit.
Definition: TimeQuantity.h:119
UnitsTime enumeration.
Definition: TimeQuantity.h:68
millisecond SI unit.
Definition: TimeQuantity.h:101
centisecond SI unit.
Definition: TimeQuantity.h:99
second SI unit.
Definition: TimeQuantity.h:95
gigasecond SI unit.
Definition: TimeQuantity.h:85
decasecond SI unit.
Definition: TimeQuantity.h:93
yoctosecond SI unit.
Definition: TimeQuantity.h:115
picosecond SI unit.
Definition: TimeQuantity.h:107
static const value_map_type & values()
Get a map of valid enum values and string names.
enum_value value
Enumeration value.
Definition: TimeQuantity.h:221