46 #ifndef OME_XML_MODEL_ENUMS_UNITSLENGTH_H 47 #define OME_XML_MODEL_ENUMS_UNITSLENGTH_H 55 #include <ome/xml/model/enums/EnumerationException.h> 57 #include <ome/xml/model/primitives/Quantity.h> 60 #define OME_XML_MODEL_ENUMS_UNITSLENGTH_VALUES (YOTTAMETER)(ZETTAMETER)(EXAMETER)(PETAMETER)(TERAMETER)(GIGAMETER)(MEGAMETER)(KILOMETER)(HECTOMETER)(DECAMETER)(METER)(DECIMETER)(CENTIMETER)(MILLIMETER)(MICROMETER)(NANOMETER)(PICOMETER)(FEMTOMETER)(ATTOMETER)(ZEPTOMETER)(YOCTOMETER)(ANGSTROM)(THOU)(LINE)(INCH)(FOOT)(YARD)(MILE)(ASTRONOMICALUNIT)(LIGHTYEAR)(PARSEC)(POINT)(PIXEL)(REFERENCEFRAME) 279 operator const std::string& ()
const 294 static const string_map_type&
302 static const value_map_type&
311 static const string_map_type&
371 const std::string& rhs)
373 return static_cast<const std::string&
>(lhs) == rhs;
387 return lhs ==
static_cast<const std::string&
>(rhs);
441 const std::string& rhs)
443 return static_cast<const std::string&
>(lhs) != rhs;
457 return lhs !=
static_cast<const std::string&
>(rhs);
467 template<
class charT,
class traits>
468 inline std::basic_ostream<charT,traits>&
469 operator<< (std::basic_ostream<charT,traits>& os,
472 return os << static_cast<const std::string&>(enumeration);
482 template<
class charT,
class traits>
483 inline std::basic_istream<charT,traits>&
497 is.setstate(std::ios::failbit);
509 #include <ome/xml/model/enums/UnitsLengthConvert.h> 511 #endif // OME_XML_MODEL_ENUMS_UNITSLENGTH_H std::basic_istream< charT, traits > & operator>>(std::basic_istream< charT, traits > &is, AcquisitionMode &enumeration)
Set AcquisitionMode from input stream.
Definition: AcquisitionMode.h:392
std::map< UnitsLength::enum_value, std::string > value_map_type
Value map type.
Definition: UnitsLength.h:287
bool operator!=(const AcquisitionMode &lhs, const AcquisitionMode &rhs)
Compare two AcquisitionMode objects for non-equality.
Definition: AcquisitionMode.h:306
inch Imperial unit.
Definition: UnitsLength.h:179
UnitsLength & operator=(const UnitsLength &rhs)
Assignment operator.
Definition: UnitsLength.h:255
yard Imperial unit.
Definition: UnitsLength.h:187
gigameter SI unit.
Definition: UnitsLength.h:103
attometer SI unit.
Definition: UnitsLength.h:155
EnumerationException is thrown when an enumeration is invalid or not found.
Definition: EnumerationException.h:74
zeptometer SI unit.
Definition: UnitsLength.h:159
picometer SI unit.
Definition: UnitsLength.h:147
static const value_map_type & values()
Get a map of valid enum values and string names.
Definition: UnitsLength.cpp:174
kilometer SI unit.
Definition: UnitsLength.h:111
nanometer SI unit.
Definition: UnitsLength.h:143
thou Imperial unit (or mil, 1/1000 inch).
Definition: UnitsLength.h:171
UnitsLength(enum_value value)
Construct a UnitsLength enumeration by an enumeration value.
Definition: UnitsLength.cpp:67
decimeter SI unit.
Definition: UnitsLength.h:127
decameter SI unit.
Definition: UnitsLength.h:119
ångström SI-derived unit.
Definition: UnitsLength.h:167
meter SI unit.
Definition: UnitsLength.h:123
femtometer SI unit.
Definition: UnitsLength.h:151
yottameter SI unit.
Definition: UnitsLength.h:83
line Imperial unit (1/12 inch).
Definition: UnitsLength.h:175
centimeter SI unit.
Definition: UnitsLength.h:131
Open Microscopy Environment C++ implementation.
static const string_map_type & lowercase_strings()
Get a map of valid lowercased string names and enum values.
Definition: UnitsLength.cpp:218
exameter SI unit.
Definition: UnitsLength.h:91
astronomical unit SI-derived unit.
Definition: UnitsLength.h:195
bool operator==(const AcquisitionMode &lhs, const AcquisitionMode &rhs)
Compare two AcquisitionMode objects for equality.
Definition: AcquisitionMode.h:236
enum_value value
Enumeration value.
Definition: UnitsLength.h:315
megameter SI unit.
Definition: UnitsLength.h:107
terameter SI unit.
Definition: UnitsLength.h:99
enum_value
Enumeration values.
Definition: UnitsLength.h:78
terrestrial mile Imperial unit.
Definition: UnitsLength.h:191
light year.
Definition: UnitsLength.h:199
yoctometer SI unit.
Definition: UnitsLength.h:163
zettameter SI unit.
Definition: UnitsLength.h:87
foot Imperial unit.
Definition: UnitsLength.h:183
typography point Imperial-derived unit (1/72 inch).
Definition: UnitsLength.h:207
petameter SI unit.
Definition: UnitsLength.h:95
parsec.
Definition: UnitsLength.h:203
const std::string * name
Enumeration name.
Definition: UnitsLength.h:317
UnitsLength enumeration.
Definition: UnitsLength.h:74
millimeter SI unit.
Definition: UnitsLength.h:135
pixel abstract unit.
Definition: UnitsLength.h:211
std::map< std::string, UnitsLength::enum_value > string_map_type
String map type.
Definition: UnitsLength.h:285
hectometer SI unit.
Definition: UnitsLength.h:115
reference frame abstract unit.
Definition: UnitsLength.h:215
static const string_map_type & strings()
Get a map of valid string names and enum values.
Definition: UnitsLength.cpp:130
micrometer SI unit.
Definition: UnitsLength.h:139