46 #ifndef OME_XML_MODEL_ENUMS_PIXELTYPE_H 47 #define OME_XML_MODEL_ENUMS_PIXELTYPE_H 55 #include <ome/xml/model/enums/EnumerationException.h> 58 #define OME_XML_MODEL_ENUMS_PIXELTYPE_VALUES (INT8)(INT16)(INT32)(UINT8)(UINT16)(UINT32)(FLOAT)(DOUBLE)(COMPLEXFLOAT)(COMPLEXDOUBLE)(BIT) 185 operator const std::string& ()
const 200 static const string_map_type&
208 static const value_map_type&
217 static const string_map_type&
277 const std::string& rhs)
279 return static_cast<const std::string&
>(lhs) == rhs;
293 return lhs ==
static_cast<const std::string&
>(rhs);
347 const std::string& rhs)
349 return static_cast<const std::string&
>(lhs) != rhs;
363 return lhs !=
static_cast<const std::string&
>(rhs);
373 template<
class charT,
class traits>
374 inline std::basic_ostream<charT,traits>&
375 operator<< (std::basic_ostream<charT,traits>& os,
378 return os << static_cast<const std::string&>(enumeration);
388 template<
class charT,
class traits>
389 inline std::basic_istream<charT,traits>&
403 is.setstate(std::ios::failbit);
415 #endif // OME_XML_MODEL_ENUMS_PIXELTYPE_H 32 bit unsigned integer.
Definition: PixelType.h:101
std::basic_istream< charT, traits > & operator>>(std::basic_istream< charT, traits > &is, AcquisitionMode &enumeration)
Set AcquisitionMode from input stream.
Definition: AcquisitionMode.h:392
8 bit unsigned integer.
Definition: PixelType.h:93
bool operator!=(const AcquisitionMode &lhs, const AcquisitionMode &rhs)
Compare two AcquisitionMode objects for non-equality.
Definition: AcquisitionMode.h:306
PixelType(enum_value value)
Construct a PixelType enumeration by an enumeration value.
Definition: PixelType.cpp:67
bit mask.
Definition: PixelType.h:121
EnumerationException is thrown when an enumeration is invalid or not found.
Definition: EnumerationException.h:74
8 bit signed integer.
Definition: PixelType.h:81
static const string_map_type & lowercase_strings()
Get a map of valid lowercased string names and enum values.
Definition: PixelType.cpp:172
std::map< std::string, PixelType::enum_value > string_map_type
String map type.
Definition: PixelType.h:191
static const value_map_type & values()
Get a map of valid enum values and string names.
Definition: PixelType.cpp:151
enum_value
Enumeration values.
Definition: PixelType.h:76
16 bit signed integer.
Definition: PixelType.h:85
16 bit unsigned integer.
Definition: PixelType.h:97
complex double-precision floating point.
Definition: PixelType.h:117
single-precision floating point.
Definition: PixelType.h:105
Open Microscopy Environment C++ implementation.
const std::string * name
Enumeration name.
Definition: PixelType.h:223
enum_value value
Enumeration value.
Definition: PixelType.h:221
complex single-precision floating point.
Definition: PixelType.h:113
static const string_map_type & strings()
Get a map of valid string names and enum values.
Definition: PixelType.cpp:130
std::map< PixelType::enum_value, std::string > value_map_type
Value map type.
Definition: PixelType.h:193
bool operator==(const AcquisitionMode &lhs, const AcquisitionMode &rhs)
Compare two AcquisitionMode objects for equality.
Definition: AcquisitionMode.h:236
double-precision floating point.
Definition: PixelType.h:109
PixelType enumeration.
Definition: PixelType.h:72
32 bit signed integer.
Definition: PixelType.h:89
PixelType & operator=(const PixelType &rhs)
Assignment operator.
Definition: PixelType.h:161