46 #ifndef OME_XML_MODEL_ENUMS_COMPRESSION_H 47 #define OME_XML_MODEL_ENUMS_COMPRESSION_H 55 #include <ome/xml/model/enums/EnumerationException.h> 58 #define OME_XML_MODEL_ENUMS_COMPRESSION_VALUES (ZLIB)(BZIP2)(NONE) 147 operator const std::string& ()
const 162 static const string_map_type&
170 static const value_map_type&
179 static const string_map_type&
239 const std::string& rhs)
241 return static_cast<const std::string&
>(lhs) == rhs;
255 return lhs ==
static_cast<const std::string&
>(rhs);
309 const std::string& rhs)
311 return static_cast<const std::string&
>(lhs) != rhs;
325 return lhs !=
static_cast<const std::string&
>(rhs);
335 template<
class charT,
class traits>
336 inline std::basic_ostream<charT,traits>&
337 operator<< (std::basic_ostream<charT,traits>& os,
340 return os << static_cast<const std::string&>(enumeration);
350 template<
class charT,
class traits>
351 inline std::basic_istream<charT,traits>&
365 is.setstate(std::ios::failbit);
377 #endif // OME_XML_MODEL_ENUMS_COMPRESSION_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
EnumerationException is thrown when an enumeration is invalid or not found.
Definition: EnumerationException.h:74
std::map< Compression::enum_value, std::string > value_map_type
Value map type.
Definition: Compression.h:155
std::map< std::string, Compression::enum_value > string_map_type
String map type.
Definition: Compression.h:153
const std::string * name
Enumeration name.
Definition: Compression.h:185
static const value_map_type & values()
Get a map of valid enum values and string names.
Definition: Compression.cpp:143
none
Definition: Compression.h:83
Compression enumeration.
Definition: Compression.h:72
bzip2
Definition: Compression.h:81
Compression & operator=(const Compression &rhs)
Assignment operator.
Definition: Compression.h:123
Open Microscopy Environment C++ implementation.
zlib
Definition: Compression.h:79
bool operator==(const AcquisitionMode &lhs, const AcquisitionMode &rhs)
Compare two AcquisitionMode objects for equality.
Definition: AcquisitionMode.h:236
static const string_map_type & lowercase_strings()
Get a map of valid lowercased string names and enum values.
Definition: Compression.cpp:156
enum_value value
Enumeration value.
Definition: Compression.h:183
static const string_map_type & strings()
Get a map of valid string names and enum values.
Definition: Compression.cpp:130
enum_value
Enumeration values.
Definition: Compression.h:76
Compression(enum_value value)
Construct a Compression enumeration by an enumeration value.
Definition: Compression.cpp:67