46 #ifndef OME_XML_MODEL_ENUMS_UNITSTIME_H 47 #define OME_XML_MODEL_ENUMS_UNITSTIME_H 55 #include <ome/xml/model/enums/EnumerationException.h> 57 #include <ome/xml/model/primitives/Quantity.h> 60 #define OME_XML_MODEL_ENUMS_UNITSTIME_VALUES (YOTTASECOND)(ZETTASECOND)(EXASECOND)(PETASECOND)(TERASECOND)(GIGASECOND)(MEGASECOND)(KILOSECOND)(HECTOSECOND)(DECASECOND)(SECOND)(DECISECOND)(CENTISECOND)(MILLISECOND)(MICROSECOND)(NANOSECOND)(PICOSECOND)(FEMTOSECOND)(ATTOSECOND)(ZEPTOSECOND)(YOCTOSECOND)(MINUTE)(HOUR)(DAY) 239 operator const std::string& ()
const 254 static const string_map_type&
262 static const value_map_type&
271 static const string_map_type&
331 const std::string& rhs)
333 return static_cast<const std::string&
>(lhs) == rhs;
347 return lhs ==
static_cast<const std::string&
>(rhs);
401 const std::string& rhs)
403 return static_cast<const std::string&
>(lhs) != rhs;
417 return lhs !=
static_cast<const std::string&
>(rhs);
427 template<
class charT,
class traits>
428 inline std::basic_ostream<charT,traits>&
429 operator<< (std::basic_ostream<charT,traits>& os,
432 return os << static_cast<const std::string&>(enumeration);
442 template<
class charT,
class traits>
443 inline std::basic_istream<charT,traits>&
457 is.setstate(std::ios::failbit);
469 #include <ome/xml/model/enums/UnitsTimeConvert.h> 471 #endif // OME_XML_MODEL_ENUMS_UNITSTIME_H hour SI-derived unit.
Definition: UnitsTime.h:171
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
hectosecond SI unit.
Definition: UnitsTime.h:115
centisecond SI unit.
Definition: UnitsTime.h:131
nanosecond SI unit.
Definition: UnitsTime.h:143
yottasecond SI unit.
Definition: UnitsTime.h:83
EnumerationException is thrown when an enumeration is invalid or not found.
Definition: EnumerationException.h:74
petasecond SI unit.
Definition: UnitsTime.h:95
zeptosecond SI unit.
Definition: UnitsTime.h:159
UnitsTime(enum_value value)
Construct a UnitsTime enumeration by an enumeration value.
Definition: UnitsTime.cpp:67
yoctosecond SI unit.
Definition: UnitsTime.h:163
minute SI-derived unit.
Definition: UnitsTime.h:167
picosecond SI unit.
Definition: UnitsTime.h:147
femtosecond SI unit.
Definition: UnitsTime.h:151
terasecond SI unit.
Definition: UnitsTime.h:99
Open Microscopy Environment C++ implementation.
gigasecond SI unit.
Definition: UnitsTime.h:103
decasecond SI unit.
Definition: UnitsTime.h:119
megasecond SI unit.
Definition: UnitsTime.h:107
decisecond SI unit.
Definition: UnitsTime.h:127
std::map< UnitsTime::enum_value, std::string > value_map_type
Value map type.
Definition: UnitsTime.h:247
millisecond SI unit.
Definition: UnitsTime.h:135
bool operator==(const AcquisitionMode &lhs, const AcquisitionMode &rhs)
Compare two AcquisitionMode objects for equality.
Definition: AcquisitionMode.h:236
UnitsTime & operator=(const UnitsTime &rhs)
Assignment operator.
Definition: UnitsTime.h:215
enum_value value
Enumeration value.
Definition: UnitsTime.h:275
zettasecond SI unit.
Definition: UnitsTime.h:87
static const string_map_type & lowercase_strings()
Get a map of valid lowercased string names and enum values.
Definition: UnitsTime.cpp:198
second SI unit.
Definition: UnitsTime.h:123
UnitsTime enumeration.
Definition: UnitsTime.h:74
microsecond SI unit.
Definition: UnitsTime.h:139
exasecond SI unit.
Definition: UnitsTime.h:91
kilosecond SI unit.
Definition: UnitsTime.h:111
static const value_map_type & values()
Get a map of valid enum values and string names.
Definition: UnitsTime.cpp:164
attosecond SI unit.
Definition: UnitsTime.h:155
day SI-derived unit.
Definition: UnitsTime.h:175
std::map< std::string, UnitsTime::enum_value > string_map_type
String map type.
Definition: UnitsTime.h:245
const std::string * name
Enumeration name.
Definition: UnitsTime.h:277
enum_value
Enumeration values.
Definition: UnitsTime.h:78
static const string_map_type & strings()
Get a map of valid string names and enum values.
Definition: UnitsTime.cpp:130