46 #ifndef OME_XML_MODEL_ENUMS_UNITSELECTRICPOTENTIAL_H 47 #define OME_XML_MODEL_ENUMS_UNITSELECTRICPOTENTIAL_H 55 #include <ome/xml/model/enums/EnumerationException.h> 57 #include <ome/xml/model/primitives/Quantity.h> 60 #define OME_XML_MODEL_ENUMS_UNITSELECTRICPOTENTIAL_VALUES (YOTTAVOLT)(ZETTAVOLT)(EXAVOLT)(PETAVOLT)(TERAVOLT)(GIGAVOLT)(MEGAVOLT)(KILOVOLT)(HECTOVOLT)(DECAVOLT)(VOLT)(DECIVOLT)(CENTIVOLT)(MILLIVOLT)(MICROVOLT)(NANOVOLT)(PICOVOLT)(FEMTOVOLT)(ATTOVOLT)(ZEPTOVOLT)(YOCTOVOLT) 227 operator const std::string& ()
const 235 typedef std::map<UnitsElectricPotential::enum_value, std::string>
value_map_type;
242 static const string_map_type&
250 static const value_map_type&
259 static const string_map_type&
319 const std::string& rhs)
321 return static_cast<const std::string&
>(lhs) == rhs;
335 return lhs ==
static_cast<const std::string&
>(rhs);
389 const std::string& rhs)
391 return static_cast<const std::string&
>(lhs) != rhs;
405 return lhs !=
static_cast<const std::string&
>(rhs);
415 template<
class charT,
class traits>
416 inline std::basic_ostream<charT,traits>&
417 operator<< (std::basic_ostream<charT,traits>& os,
420 return os << static_cast<const std::string&>(enumeration);
430 template<
class charT,
class traits>
431 inline std::basic_istream<charT,traits>&
445 is.setstate(std::ios::failbit);
457 #include <ome/xml/model/enums/UnitsElectricPotentialConvert.h> 459 #endif // OME_XML_MODEL_ENUMS_UNITSELECTRICPOTENTIAL_H std::basic_istream< charT, traits > & operator>>(std::basic_istream< charT, traits > &is, AcquisitionMode &enumeration)
Set AcquisitionMode from input stream.
Definition: AcquisitionMode.h:392
bool operator!=(const AcquisitionMode &lhs, const AcquisitionMode &rhs)
Compare two AcquisitionMode objects for non-equality.
Definition: AcquisitionMode.h:306
yoctovolt unit.
Definition: UnitsElectricPotential.h:163
std::map< UnitsElectricPotential::enum_value, std::string > value_map_type
Value map type.
Definition: UnitsElectricPotential.h:235
centivolt unit.
Definition: UnitsElectricPotential.h:131
EnumerationException is thrown when an enumeration is invalid or not found.
Definition: EnumerationException.h:74
std::map< std::string, UnitsElectricPotential::enum_value > string_map_type
String map type.
Definition: UnitsElectricPotential.h:233
UnitsElectricPotential enumeration.
Definition: UnitsElectricPotential.h:74
UnitsElectricPotential(enum_value value)
Construct a UnitsElectricPotential enumeration by an enumeration value.
Definition: UnitsElectricPotential.cpp:67
kilovolt unit.
Definition: UnitsElectricPotential.h:111
static const value_map_type & values()
Get a map of valid enum values and string names.
Definition: UnitsElectricPotential.cpp:161
const std::string * name
Enumeration name.
Definition: UnitsElectricPotential.h:265
zeptovolt unit.
Definition: UnitsElectricPotential.h:159
petavolt unit.
Definition: UnitsElectricPotential.h:95
millivolt unit.
Definition: UnitsElectricPotential.h:135
attovolt unit.
Definition: UnitsElectricPotential.h:155
megavolt unit.
Definition: UnitsElectricPotential.h:107
static const string_map_type & strings()
Get a map of valid string names and enum values.
Definition: UnitsElectricPotential.cpp:130
Open Microscopy Environment C++ implementation.
decavolt unit.
Definition: UnitsElectricPotential.h:119
static const string_map_type & lowercase_strings()
Get a map of valid lowercased string names and enum values.
Definition: UnitsElectricPotential.cpp:192
nanovolt unit.
Definition: UnitsElectricPotential.h:143
bool operator==(const AcquisitionMode &lhs, const AcquisitionMode &rhs)
Compare two AcquisitionMode objects for equality.
Definition: AcquisitionMode.h:236
microvolt unit.
Definition: UnitsElectricPotential.h:139
exavolt unit.
Definition: UnitsElectricPotential.h:91
yottavolt unit.
Definition: UnitsElectricPotential.h:83
volt unit.
Definition: UnitsElectricPotential.h:123
zettavolt unit.
Definition: UnitsElectricPotential.h:87
enum_value
Enumeration values.
Definition: UnitsElectricPotential.h:78
UnitsElectricPotential & operator=(const UnitsElectricPotential &rhs)
Assignment operator.
Definition: UnitsElectricPotential.h:203
hectovolt unit.
Definition: UnitsElectricPotential.h:115
enum_value value
Enumeration value.
Definition: UnitsElectricPotential.h:263
femtovolt unit.
Definition: UnitsElectricPotential.h:151
picovolt unit.
Definition: UnitsElectricPotential.h:147
decivolt unit.
Definition: UnitsElectricPotential.h:127
gigavolt unit.
Definition: UnitsElectricPotential.h:103
teravolt unit.
Definition: UnitsElectricPotential.h:99