46 #ifndef OME_XML_MODEL_PRIMITIVES_POWERQUANTITY_H 47 #define OME_XML_MODEL_PRIMITIVES_POWERQUANTITY_H 54 #include <ome/xml/model/primitives/Quantity.h> 179 operator const std::string& ()
const 194 static const string_map_type&
202 static const value_map_type&
211 static const string_map_type&
271 const std::string& rhs)
273 return static_cast<const std::string&
>(lhs) == rhs;
287 return lhs ==
static_cast<const std::string&
>(rhs);
341 const std::string& rhs)
343 return static_cast<const std::string&
>(lhs) != rhs;
357 return lhs !=
static_cast<const std::string&
>(rhs);
367 template<
class charT,
class traits>
368 inline std::basic_ostream<charT,traits>&
369 operator<< (std::basic_ostream<charT,traits>& os,
372 return os << static_cast<const std::string&>(enumeration);
382 template<
class charT,
class traits>
383 inline std::basic_istream<charT,traits>&
395 catch (
const EnumerationException&)
397 is.setstate(std::ios::failbit);
409 #endif // OME_XML_MODEL_PRIMITIVES_POWERQUANTITY_H enum_value
Enumeration values.
Definition: PowerQuantity.h:72
watt unit.
Definition: PowerQuantity.h:95
zettawatt unit.
Definition: PowerQuantity.h:77
attowatt unit.
Definition: PowerQuantity.h:111
picowatt unit.
Definition: PowerQuantity.h:107
femtowatt unit.
Definition: PowerQuantity.h:109
bool operator!=(const Color &lhs, const Color &rhs)
Compare two Color objects for non-equality.
Definition: Color.h:392
hectowatt unit.
Definition: PowerQuantity.h:91
deciwatt unit.
Definition: PowerQuantity.h:97
UnitsPower(enum_value value)
Construct a UnitsPower quantity by an enumeration value.
megawatt unit.
Definition: PowerQuantity.h:87
gigawatt unit.
Definition: PowerQuantity.h:85
yoctowatt unit.
Definition: PowerQuantity.h:115
std::map< UnitsPower::enum_value, std::string > value_map_type
Value map type.
Definition: PowerQuantity.h:187
std::map< std::string, UnitsPower::enum_value > string_map_type
String map type.
Definition: PowerQuantity.h:185
UnitsPower enumeration.
Definition: PowerQuantity.h:68
zeptowatt unit.
Definition: PowerQuantity.h:113
kilowatt unit.
Definition: PowerQuantity.h:89
Open Microscopy Environment C++ implementation.
exawatt unit.
Definition: PowerQuantity.h:79
bool operator==(const Color &lhs, const Color &rhs)
Compare two Color objects for equality.
Definition: Color.h:322
static const value_map_type & values()
Get a map of valid enum values and string names.
terawatt unit.
Definition: PowerQuantity.h:83
enum_value value
Enumeration value.
Definition: PowerQuantity.h:215
nanowatt unit.
Definition: PowerQuantity.h:105
yottawatt unit.
Definition: PowerQuantity.h:75
UnitsPower & operator=(const UnitsPower &rhs)
Assignment operator.
Definition: PowerQuantity.h:155
microwatt unit.
Definition: PowerQuantity.h:103
static const string_map_type & strings()
Get a map of valid string names and enum values.
std::basic_istream< charT, traits > & operator>>(std::basic_istream< charT, traits > &is, Color &color)
Set Color from input stream.
Definition: Color.h:478
centiwatt unit.
Definition: PowerQuantity.h:99
petawatt unit.
Definition: PowerQuantity.h:81
static const string_map_type & lowercase_strings()
Get a map of valid lowercased string names and enum values.
const std::string * name
Enumeration name.
Definition: PowerQuantity.h:217
decawatt unit.
Definition: PowerQuantity.h:93
milliwatt unit.
Definition: PowerQuantity.h:101