46 #ifndef OME_XML_MODEL_ENUMS_BINNING_H
47 #define OME_XML_MODEL_ENUMS_BINNING_H
55 #include <ome/xml/model/enums/EnumerationException.h>
109 Binning (
const std::string&
name,
bool strict =
true);
147 operator const std::string& ()
const
162 static const string_map_type&
170 static const value_map_type&
238 const std::string& rhs)
240 return static_cast<const std::string&
>(lhs) == rhs;
254 return lhs ==
static_cast<const std::string&
>(rhs);
308 const std::string& rhs)
310 return static_cast<const std::string&
>(lhs) != rhs;
324 return lhs !=
static_cast<const std::string&
>(rhs);
334 template<
class charT,
class traits>
335 inline std::basic_ostream<charT,traits>&
336 operator<< (std::basic_ostream<charT,traits>& os,
339 return os << static_cast<const std::string&>(enumeration);
349 template<
class charT,
class traits>
350 inline std::basic_istream<charT,traits>&
360 enumeration =
Binning(value,
false);
364 is.setstate(std::ios::failbit);
376 #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:381
std::map< Binning::enum_value, std::string > value_map_type
Value map type.
Definition: Binning.h:155
bool operator!=(const AcquisitionMode &lhs, const AcquisitionMode &rhs)
Compare two AcquisitionMode objects for non-equality.
Definition: AcquisitionMode.h:295
Binning & operator=(const Binning &rhs)
Assignment operator.
Definition: Binning.h:123
EnumerationException is thrown when an enumeration is invalid or not found.
Definition: EnumerationException.h:74
8x8
Definition: Binning.h:83
static const string_map_type lowercase_string_map
Mapping of lowercase enumeration name to value.
Definition: Binning.h:182
Binning enumeration.
Definition: Binning.h:70
static const value_map_type & values()
Get a map of valid enum values and string names.
Definition: Binning.cpp:74
static const string_map_type string_map
Mapping of enumeration name to value.
Definition: Binning.h:180
Open Microscopy Environment C++ implementation.
Definition: CoreMetadata.cpp:40
std::map< std::string, Binning::enum_value > string_map_type
String map type.
Definition: Binning.h:153
bool operator==(const AcquisitionMode &lhs, const AcquisitionMode &rhs)
Compare two AcquisitionMode objects for equality.
Definition: AcquisitionMode.h:225
static const value_map_type value_map
Mapping of enumeration value to name.
Definition: Binning.h:184
enum_value
Enumeration values.
Definition: Binning.h:74
enum_value value
Enumeration value.
Definition: Binning.h:175
Other.
Definition: Binning.h:85
1x1
Definition: Binning.h:77
Binning(enum_value value)
Construct a Binning enumeration by an enumeration value.
Definition: Binning.cpp:129
2x2
Definition: Binning.h:79
static const string_map_type & strings()
Get a map of valid string names and enum values.
Definition: Binning.cpp:68
const std::string * name
Enumeration name.
Definition: Binning.h:177
4x4
Definition: Binning.h:81
Xerces-C modern C++ wrapper.
Definition: Base.h:53