46 #ifndef OME_XML_MODEL_ENUMS_UNITSFREQUENCY_H 47 #define OME_XML_MODEL_ENUMS_UNITSFREQUENCY_H 55 #include <ome/xml/model/enums/EnumerationException.h> 57 #include <ome/xml/model/primitives/Quantity.h> 60 #define OME_XML_MODEL_ENUMS_UNITSFREQUENCY_VALUES (YOTTAHERTZ)(ZETTAHERTZ)(EXAHERTZ)(PETAHERTZ)(TERAHERTZ)(GIGAHERTZ)(MEGAHERTZ)(KILOHERTZ)(HECTOHERTZ)(DECAHERTZ)(HERTZ)(DECIHERTZ)(CENTIHERTZ)(MILLIHERTZ)(MICROHERTZ)(NANOHERTZ)(PICOHERTZ)(FEMTOHERTZ)(ATTOHERTZ)(ZEPTOHERTZ)(YOCTOHERTZ) 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/UnitsFrequencyConvert.h> 459 #endif // OME_XML_MODEL_ENUMS_UNITSFREQUENCY_H std::basic_istream< charT, traits > & operator>>(std::basic_istream< charT, traits > &is, AcquisitionMode &enumeration)
Set AcquisitionMode from input stream.
Definition: AcquisitionMode.h:392
zettahertz unit.
Definition: UnitsFrequency.h:87
nanohertz unit.
Definition: UnitsFrequency.h:143
bool operator!=(const AcquisitionMode &lhs, const AcquisitionMode &rhs)
Compare two AcquisitionMode objects for non-equality.
Definition: AcquisitionMode.h:306
static const string_map_type & strings()
Get a map of valid string names and enum values.
Definition: UnitsFrequency.cpp:130
std::map< std::string, UnitsFrequency::enum_value > string_map_type
String map type.
Definition: UnitsFrequency.h:233
yoctohertz unit.
Definition: UnitsFrequency.h:163
petahertz unit.
Definition: UnitsFrequency.h:95
EnumerationException is thrown when an enumeration is invalid or not found.
Definition: EnumerationException.h:74
femtohertz unit.
Definition: UnitsFrequency.h:151
picohertz unit.
Definition: UnitsFrequency.h:147
centihertz unit.
Definition: UnitsFrequency.h:131
gigahertz unit.
Definition: UnitsFrequency.h:103
attohertz unit.
Definition: UnitsFrequency.h:155
yottahertz unit.
Definition: UnitsFrequency.h:83
static const string_map_type & lowercase_strings()
Get a map of valid lowercased string names and enum values.
Definition: UnitsFrequency.cpp:192
decahertz unit.
Definition: UnitsFrequency.h:119
hertz unit.
Definition: UnitsFrequency.h:123
megahertz unit.
Definition: UnitsFrequency.h:107
const std::string * name
Enumeration name.
Definition: UnitsFrequency.h:265
static const value_map_type & values()
Get a map of valid enum values and string names.
Definition: UnitsFrequency.cpp:161
Open Microscopy Environment C++ implementation.
std::map< UnitsFrequency::enum_value, std::string > value_map_type
Value map type.
Definition: UnitsFrequency.h:235
bool operator==(const AcquisitionMode &lhs, const AcquisitionMode &rhs)
Compare two AcquisitionMode objects for equality.
Definition: AcquisitionMode.h:236
hectohertz unit.
Definition: UnitsFrequency.h:115
microhertz unit.
Definition: UnitsFrequency.h:139
UnitsFrequency & operator=(const UnitsFrequency &rhs)
Assignment operator.
Definition: UnitsFrequency.h:203
millihertz unit.
Definition: UnitsFrequency.h:135
exahertz unit.
Definition: UnitsFrequency.h:91
UnitsFrequency enumeration.
Definition: UnitsFrequency.h:74
enum_value value
Enumeration value.
Definition: UnitsFrequency.h:263
decihertz unit.
Definition: UnitsFrequency.h:127
UnitsFrequency(enum_value value)
Construct a UnitsFrequency enumeration by an enumeration value.
Definition: UnitsFrequency.cpp:67
enum_value
Enumeration values.
Definition: UnitsFrequency.h:78
kilohertz unit.
Definition: UnitsFrequency.h:111
terahertz unit.
Definition: UnitsFrequency.h:99
zeptohertz unit.
Definition: UnitsFrequency.h:159