46 #ifndef OME_XML_MODEL_ENUMS_UNITSPOWER_H 47 #define OME_XML_MODEL_ENUMS_UNITSPOWER_H 55 #include <ome/xml/model/enums/EnumerationException.h> 57 #include <ome/xml/model/primitives/Quantity.h> 60 #define OME_XML_MODEL_ENUMS_UNITSPOWER_VALUES (YOTTAWATT)(ZETTAWATT)(EXAWATT)(PETAWATT)(TERAWATT)(GIGAWATT)(MEGAWATT)(KILOWATT)(HECTOWATT)(DECAWATT)(WATT)(DECIWATT)(CENTIWATT)(MILLIWATT)(MICROWATT)(NANOWATT)(PICOWATT)(FEMTOWATT)(ATTOWATT)(ZEPTOWATT)(YOCTOWATT) 227 operator const std::string& ()
const 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/UnitsPowerConvert.h> 459 #endif // OME_XML_MODEL_ENUMS_UNITSPOWER_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
terawatt unit.
Definition: UnitsPower.h:99
picowatt unit.
Definition: UnitsPower.h:147
milliwatt unit.
Definition: UnitsPower.h:135
gigawatt unit.
Definition: UnitsPower.h:103
enum_value value
Enumeration value.
Definition: UnitsPower.h:263
kilowatt unit.
Definition: UnitsPower.h:111
EnumerationException is thrown when an enumeration is invalid or not found.
Definition: EnumerationException.h:74
static const string_map_type & lowercase_strings()
Get a map of valid lowercased string names and enum values.
Definition: UnitsPower.cpp:192
UnitsPower & operator=(const UnitsPower &rhs)
Assignment operator.
Definition: UnitsPower.h:203
attowatt unit.
Definition: UnitsPower.h:155
watt unit.
Definition: UnitsPower.h:123
deciwatt unit.
Definition: UnitsPower.h:127
hectowatt unit.
Definition: UnitsPower.h:115
std::map< UnitsPower::enum_value, std::string > value_map_type
Value map type.
Definition: UnitsPower.h:235
Open Microscopy Environment C++ implementation.
static const string_map_type & strings()
Get a map of valid string names and enum values.
Definition: UnitsPower.cpp:130
petawatt unit.
Definition: UnitsPower.h:95
bool operator==(const AcquisitionMode &lhs, const AcquisitionMode &rhs)
Compare two AcquisitionMode objects for equality.
Definition: AcquisitionMode.h:236
UnitsPower(enum_value value)
Construct a UnitsPower enumeration by an enumeration value.
Definition: UnitsPower.cpp:67
centiwatt unit.
Definition: UnitsPower.h:131
exawatt unit.
Definition: UnitsPower.h:91
enum_value
Enumeration values.
Definition: UnitsPower.h:78
std::map< std::string, UnitsPower::enum_value > string_map_type
String map type.
Definition: UnitsPower.h:233
femtowatt unit.
Definition: UnitsPower.h:151
nanowatt unit.
Definition: UnitsPower.h:143
const std::string * name
Enumeration name.
Definition: UnitsPower.h:265
megawatt unit.
Definition: UnitsPower.h:107
UnitsPower enumeration.
Definition: UnitsPower.h:74
yottawatt unit.
Definition: UnitsPower.h:83
microwatt unit.
Definition: UnitsPower.h:139
static const value_map_type & values()
Get a map of valid enum values and string names.
Definition: UnitsPower.cpp:161
decawatt unit.
Definition: UnitsPower.h:119
yoctowatt unit.
Definition: UnitsPower.h:163
zeptowatt unit.
Definition: UnitsPower.h:159
zettawatt unit.
Definition: UnitsPower.h:87