46 #ifndef OME_XML_MODEL_PRIMITIVES_ELECTRICPOTENTIALQUANTITY_H 47 #define OME_XML_MODEL_PRIMITIVES_ELECTRICPOTENTIALQUANTITY_H 54 #include <ome/xml/model/primitives/Quantity.h> 179 operator const std::string& ()
const 187 typedef std::map<UnitsElectricPotential::enum_value, std::string>
value_map_type;
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_ELECTRICPOTENTIALQUANTITY_H attovolt unit.
Definition: ElectricPotentialQuantity.h:111
static const string_map_type & lowercase_strings()
Get a map of valid lowercased string names and enum values.
UnitsElectricPotential & operator=(const UnitsElectricPotential &rhs)
Assignment operator.
Definition: ElectricPotentialQuantity.h:155
exavolt unit.
Definition: ElectricPotentialQuantity.h:79
nanovolt unit.
Definition: ElectricPotentialQuantity.h:105
bool operator!=(const Color &lhs, const Color &rhs)
Compare two Color objects for non-equality.
Definition: Color.h:392
yottavolt unit.
Definition: ElectricPotentialQuantity.h:75
millivolt unit.
Definition: ElectricPotentialQuantity.h:101
enum_value value
Enumeration value.
Definition: ElectricPotentialQuantity.h:215
petavolt unit.
Definition: ElectricPotentialQuantity.h:81
UnitsElectricPotential(enum_value value)
Construct a UnitsElectricPotential quantity by an enumeration value.
centivolt unit.
Definition: ElectricPotentialQuantity.h:99
static const string_map_type & strings()
Get a map of valid string names and enum values.
zeptovolt unit.
Definition: ElectricPotentialQuantity.h:113
teravolt unit.
Definition: ElectricPotentialQuantity.h:83
const std::string * name
Enumeration name.
Definition: ElectricPotentialQuantity.h:217
UnitsElectricPotential enumeration.
Definition: ElectricPotentialQuantity.h:68
Open Microscopy Environment C++ implementation.
bool operator==(const Color &lhs, const Color &rhs)
Compare two Color objects for equality.
Definition: Color.h:322
picovolt unit.
Definition: ElectricPotentialQuantity.h:107
enum_value
Enumeration values.
Definition: ElectricPotentialQuantity.h:72
zettavolt unit.
Definition: ElectricPotentialQuantity.h:77
hectovolt unit.
Definition: ElectricPotentialQuantity.h:91
yoctovolt unit.
Definition: ElectricPotentialQuantity.h:115
decavolt unit.
Definition: ElectricPotentialQuantity.h:93
volt unit.
Definition: ElectricPotentialQuantity.h:95
std::map< UnitsElectricPotential::enum_value, std::string > value_map_type
Value map type.
Definition: ElectricPotentialQuantity.h:187
std::basic_istream< charT, traits > & operator>>(std::basic_istream< charT, traits > &is, Color &color)
Set Color from input stream.
Definition: Color.h:478
decivolt unit.
Definition: ElectricPotentialQuantity.h:97
gigavolt unit.
Definition: ElectricPotentialQuantity.h:85
microvolt unit.
Definition: ElectricPotentialQuantity.h:103
kilovolt unit.
Definition: ElectricPotentialQuantity.h:89
static const value_map_type & values()
Get a map of valid enum values and string names.
std::map< std::string, UnitsElectricPotential::enum_value > string_map_type
String map type.
Definition: ElectricPotentialQuantity.h:185
femtovolt unit.
Definition: ElectricPotentialQuantity.h:109
megavolt unit.
Definition: ElectricPotentialQuantity.h:87