46 #ifndef OME_XML_MODEL_ENUMS_PIXELTYPE_H
47 #define OME_XML_MODEL_ENUMS_PIXELTYPE_H
55 #include <ome/xml/model/enums/EnumerationException.h>
159 operator const std::string& ()
const
174 static const string_map_type&
182 static const value_map_type&
250 const std::string& rhs)
252 return static_cast<const std::string&
>(lhs) == rhs;
266 return lhs ==
static_cast<const std::string&
>(rhs);
320 const std::string& rhs)
322 return static_cast<const std::string&
>(lhs) != rhs;
336 return lhs !=
static_cast<const std::string&
>(rhs);
346 template<
class charT,
class traits>
347 inline std::basic_ostream<charT,traits>&
348 operator<< (std::basic_ostream<charT,traits>& os,
351 return os << static_cast<const std::string&>(enumeration);
361 template<
class charT,
class traits>
362 inline std::basic_istream<charT,traits>&
376 is.setstate(std::ios::failbit);
388 #endif // OME_XML_MODEL_ENUMS_PIXELTYPE_H
uint32
Definition: PixelType.h:87
std::basic_istream< charT, traits > & operator>>(std::basic_istream< charT, traits > &is, AcquisitionMode &enumeration)
Set AcquisitionMode from input stream.
Definition: AcquisitionMode.h:381
uint8
Definition: PixelType.h:83
bool operator!=(const AcquisitionMode &lhs, const AcquisitionMode &rhs)
Compare two AcquisitionMode objects for non-equality.
Definition: AcquisitionMode.h:295
PixelType(enum_value value)
Construct a PixelType enumeration by an enumeration value.
Definition: PixelType.cpp:147
bit
Definition: PixelType.h:91
EnumerationException is thrown when an enumeration is invalid or not found.
Definition: EnumerationException.h:74
int8
Definition: PixelType.h:77
std::map< std::string, PixelType::enum_value > string_map_type
String map type.
Definition: PixelType.h:165
static const value_map_type & values()
Get a map of valid enum values and string names.
Definition: PixelType.cpp:74
static const value_map_type value_map
Mapping of enumeration value to name.
Definition: PixelType.h:196
static const string_map_type lowercase_string_map
Mapping of lowercase enumeration name to value.
Definition: PixelType.h:194
enum_value
Enumeration values.
Definition: PixelType.h:74
int16
Definition: PixelType.h:79
uint16
Definition: PixelType.h:85
float
Definition: PixelType.h:89
Open Microscopy Environment C++ implementation.
Definition: CoreMetadata.cpp:40
const std::string * name
Enumeration name.
Definition: PixelType.h:189
enum_value value
Enumeration value.
Definition: PixelType.h:187
static const string_map_type & strings()
Get a map of valid string names and enum values.
Definition: PixelType.cpp:68
complex
Definition: PixelType.h:95
std::map< PixelType::enum_value, std::string > value_map_type
Value map type.
Definition: PixelType.h:167
bool operator==(const AcquisitionMode &lhs, const AcquisitionMode &rhs)
Compare two AcquisitionMode objects for equality.
Definition: AcquisitionMode.h:225
double
Definition: PixelType.h:93
PixelType enumeration.
Definition: PixelType.h:70
static const string_map_type string_map
Mapping of enumeration name to value.
Definition: PixelType.h:192
int32
Definition: PixelType.h:81
double-complex
Definition: PixelType.h:97
PixelType & operator=(const PixelType &rhs)
Assignment operator.
Definition: PixelType.h:135
Xerces-C modern C++ wrapper.
Definition: Base.h:53