46 #ifndef OME_XML_MODEL_ENUMS_BINNING_H 47 #define OME_XML_MODEL_ENUMS_BINNING_H 55 #include <ome/xml/model/enums/EnumerationException.h> 58 #define OME_XML_MODEL_ENUMS_BINNING_VALUES (ONEBYONE)(TWOBYTWO)(FOURBYFOUR)(EIGHTBYEIGHT)(OTHER) 121 Binning (
const std::string&
name,
bool strict =
true);
161 operator const std::string& ()
const 176 static const string_map_type&
184 static const value_map_type&
193 static const string_map_type&
253 const std::string& rhs)
255 return static_cast<const std::string&
>(lhs) == rhs;
269 return lhs ==
static_cast<const std::string&
>(rhs);
323 const std::string& rhs)
325 return static_cast<const std::string&
>(lhs) != rhs;
339 return lhs !=
static_cast<const std::string&
>(rhs);
349 template<
class charT,
class traits>
350 inline std::basic_ostream<charT,traits>&
351 operator<< (std::basic_ostream<charT,traits>& os,
354 return os << static_cast<const std::string&>(enumeration);
364 template<
class charT,
class traits>
365 inline std::basic_istream<charT,traits>&
375 enumeration =
Binning(value,
false);
379 is.setstate(std::ios::failbit);
391 #endif // OME_XML_MODEL_ENUMS_BINNING_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< Binning::enum_value, std::string > value_map_type
Value map type.
Definition: Binning.h:169
bool operator!=(const AcquisitionMode &lhs, const AcquisitionMode &rhs)
Compare two AcquisitionMode objects for non-equality.
Definition: AcquisitionMode.h:306
Binning & operator=(const Binning &rhs)
Assignment operator.
Definition: Binning.h:137
2×2 binning.
Definition: Binning.h:85
EnumerationException is thrown when an enumeration is invalid or not found.
Definition: EnumerationException.h:74
Binning enumeration.
Definition: Binning.h:72
No binning.
Definition: Binning.h:81
static const value_map_type & values()
Get a map of valid enum values and string names.
Definition: Binning.cpp:160
4×4 binning.
Definition: Binning.h:89
8×8 binning.
Definition: Binning.h:93
Open Microscopy Environment C++ implementation.
std::map< std::string, Binning::enum_value > string_map_type
String map type.
Definition: Binning.h:167
bool operator==(const AcquisitionMode &lhs, const AcquisitionMode &rhs)
Compare two AcquisitionMode objects for equality.
Definition: AcquisitionMode.h:236
enum_value
Enumeration values.
Definition: Binning.h:76
enum_value value
Enumeration value.
Definition: Binning.h:197
Other binning value.
Definition: Binning.h:97
Binning(enum_value value)
Construct a Binning enumeration by an enumeration value.
Definition: Binning.cpp:67
static const string_map_type & lowercase_strings()
Get a map of valid lowercased string names and enum values.
Definition: Binning.cpp:175
static const string_map_type & strings()
Get a map of valid string names and enum values.
Definition: Binning.cpp:145
const std::string * name
Enumeration name.
Definition: Binning.h:199