46 #ifndef OME_XML_MODEL_ENUMS_UNITSPRESSURE_H 47 #define OME_XML_MODEL_ENUMS_UNITSPRESSURE_H 55 #include <ome/xml/model/enums/EnumerationException.h> 57 #include <ome/xml/model/primitives/Quantity.h> 60 #pragma push_macro("PASCAL") 65 #define OME_XML_MODEL_ENUMS_UNITSPRESSURE_VALUES (YOTTAPASCAL)(ZETTAPASCAL)(EXAPASCAL)(PETAPASCAL)(TERAPASCAL)(GIGAPASCAL)(MEGAPASCAL)(KILOPASCAL)(HECTOPASCAL)(DECAPASCAL)(PASCAL)(DECIPASCAL)(CENTIPASCAL)(MILLIPASCAL)(MICROPASCAL)(NANOPASCAL)(PICOPASCAL)(FEMTOPASCAL)(ATTOPASCAL)(ZEPTOPASCAL)(YOCTOPASCAL)(BAR)(MEGABAR)(KILOBAR)(DECIBAR)(CENTIBAR)(MILLIBAR)(ATMOSPHERE)(PSI)(TORR)(MILLITORR)(MMHG) 276 operator const std::string& ()
const 291 static const string_map_type&
299 static const value_map_type&
308 static const string_map_type&
368 const std::string& rhs)
370 return static_cast<const std::string&
>(lhs) == rhs;
384 return lhs ==
static_cast<const std::string&
>(rhs);
438 const std::string& rhs)
440 return static_cast<const std::string&
>(lhs) != rhs;
454 return lhs !=
static_cast<const std::string&
>(rhs);
464 template<
class charT,
class traits>
465 inline std::basic_ostream<charT,traits>&
466 operator<< (std::basic_ostream<charT,traits>& os,
469 return os << static_cast<const std::string&>(enumeration);
479 template<
class charT,
class traits>
480 inline std::basic_istream<charT,traits>&
494 is.setstate(std::ios::failbit);
507 #pragma pop_macro("PASCAL") 510 #include <ome/xml/model/enums/UnitsPressureConvert.h> 512 #endif // OME_XML_MODEL_ENUMS_UNITSPRESSURE_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
nanopascal SI unit.
Definition: UnitsPressure.h:148
centibar SI-derived unit.
Definition: UnitsPressure.h:188
decapascal SI unit.
Definition: UnitsPressure.h:124
yottapascal SI unit.
Definition: UnitsPressure.h:88
UnitsPressure enumeration.
Definition: UnitsPressure.h:79
EnumerationException is thrown when an enumeration is invalid or not found.
Definition: EnumerationException.h:74
megabar SI-derived unit.
Definition: UnitsPressure.h:176
decipascal SI unit.
Definition: UnitsPressure.h:132
enum_value value
Enumeration value.
Definition: UnitsPressure.h:312
terapascal SI unit.
Definition: UnitsPressure.h:104
attopascal SI unit.
Definition: UnitsPressure.h:160
millitorr SI-derived unit.
Definition: UnitsPressure.h:208
decibar SI-derived unit.
Definition: UnitsPressure.h:184
hectopascal SI unit.
Definition: UnitsPressure.h:120
picopascal SI unit.
Definition: UnitsPressure.h:152
exapascal SI unit.
Definition: UnitsPressure.h:96
millimetre of mercury SI-derived unit
Definition: UnitsPressure.h:212
static const string_map_type & lowercase_strings()
Get a map of valid lowercased string names and enum values.
Definition: UnitsPressure.cpp:214
kilopascal SI unit.
Definition: UnitsPressure.h:116
yoctopascal SI unit.
Definition: UnitsPressure.h:168
kilobar SI-derived unit.
Definition: UnitsPressure.h:180
standard atmosphere SI-derived unit.
Definition: UnitsPressure.h:196
bar SI-derived unit.
Definition: UnitsPressure.h:172
UnitsPressure & operator=(const UnitsPressure &rhs)
Assignment operator.
Definition: UnitsPressure.h:252
millipascal SI unit.
Definition: UnitsPressure.h:140
Open Microscopy Environment C++ implementation.
pascal SI unit.
Definition: UnitsPressure.h:128
static const value_map_type & values()
Get a map of valid enum values and string names.
Definition: UnitsPressure.cpp:172
bool operator==(const AcquisitionMode &lhs, const AcquisitionMode &rhs)
Compare two AcquisitionMode objects for equality.
Definition: AcquisitionMode.h:236
UnitsPressure(enum_value value)
Construct a UnitsPressure enumeration by an enumeration value.
Definition: UnitsPressure.cpp:67
gigapascal SI unit.
Definition: UnitsPressure.h:108
static const string_map_type & strings()
Get a map of valid string names and enum values.
Definition: UnitsPressure.cpp:130
pound-force per square inch Imperial unit.
Definition: UnitsPressure.h:200
millibar SI-derived unit.
Definition: UnitsPressure.h:192
zeptopascal SI unit.
Definition: UnitsPressure.h:164
std::map< UnitsPressure::enum_value, std::string > value_map_type
Value map type.
Definition: UnitsPressure.h:284
centipascal SI unit.
Definition: UnitsPressure.h:136
std::map< std::string, UnitsPressure::enum_value > string_map_type
String map type.
Definition: UnitsPressure.h:282
femtopascal SI unit.
Definition: UnitsPressure.h:156
torr SI-derived unit.
Definition: UnitsPressure.h:204
zettapascal SI unit.
Definition: UnitsPressure.h:92
const std::string * name
Enumeration name.
Definition: UnitsPressure.h:314
megapascal SI unit.
Definition: UnitsPressure.h:112
micropascal SI unit.
Definition: UnitsPressure.h:144
petapascal SI unit.
Definition: UnitsPressure.h:100
enum_value
Enumeration values.
Definition: UnitsPressure.h:83