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 (ONEXONE)(TWOXTWO)(FOURXFOUR)(EIGHTXEIGHT)(OTHER) 111 Binning (
const std::string&
name,
bool strict =
true);
149 operator const std::string& ()
const 164 static const string_map_type&
172 static const value_map_type&
181 static const string_map_type&
241 const std::string& rhs)
243 return static_cast<const std::string&
>(lhs) == rhs;
257 return lhs ==
static_cast<const std::string&
>(rhs);
311 const std::string& rhs)
313 return static_cast<const std::string&
>(lhs) != rhs;
327 return lhs !=
static_cast<const std::string&
>(rhs);
337 template<
class charT,
class traits>
338 inline std::basic_ostream<charT,traits>&
339 operator<< (std::basic_ostream<charT,traits>& os,
342 return os << static_cast<const std::string&>(enumeration);
352 template<
class charT,
class traits>
353 inline std::basic_istream<charT,traits>&
363 enumeration =
Binning(value,
false);
367 is.setstate(std::ios::failbit);
379 #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:384
std::map< Binning::enum_value, std::string > value_map_type
Value map type.
Definition: Binning.h:157
bool operator!=(const AcquisitionMode &lhs, const AcquisitionMode &rhs)
Compare two AcquisitionMode objects for non-equality.
Definition: AcquisitionMode.h:298
Binning & operator=(const Binning &rhs)
Assignment operator.
Definition: Binning.h:125
EnumerationException is thrown when an enumeration is invalid or not found.
Definition: EnumerationException.h:74
8x8
Definition: Binning.h:85
Binning enumeration.
Definition: Binning.h:72
static const value_map_type & values()
Get a map of valid enum values and string names.
Definition: Binning.cpp:171
Open Microscopy Environment C++ implementation.
std::map< std::string, Binning::enum_value > string_map_type
String map type.
Definition: Binning.h:155
bool operator==(const AcquisitionMode &lhs, const AcquisitionMode &rhs)
Compare two AcquisitionMode objects for equality.
Definition: AcquisitionMode.h:228
enum_value
Enumeration values.
Definition: Binning.h:76
enum_value value
Enumeration value.
Definition: Binning.h:185
Other.
Definition: Binning.h:87
1x1
Definition: Binning.h:79
Binning(enum_value value)
Construct a Binning enumeration by an enumeration value.
Definition: Binning.cpp:75
2x2
Definition: Binning.h:81
static const string_map_type & lowercase_strings()
Get a map of valid lowercased string names and enum values.
Definition: Binning.cpp:189
static const string_map_type & strings()
Get a map of valid string names and enum values.
Definition: Binning.cpp:153
const std::string * name
Enumeration name.
Definition: Binning.h:187
4x4
Definition: Binning.h:83