46 #ifndef OME_XML_MODEL_ENUMS_FILAMENTTYPE_H
47 #define OME_XML_MODEL_ENUMS_FILAMENTTYPE_H
55 #include <ome/xml/model/enums/EnumerationException.h>
143 operator const std::string& ()
const
158 static const string_map_type&
166 static const value_map_type&
234 const std::string& rhs)
236 return static_cast<const std::string&
>(lhs) == rhs;
250 return lhs ==
static_cast<const std::string&
>(rhs);
304 const std::string& rhs)
306 return static_cast<const std::string&
>(lhs) != rhs;
320 return lhs !=
static_cast<const std::string&
>(rhs);
330 template<
class charT,
class traits>
331 inline std::basic_ostream<charT,traits>&
332 operator<< (std::basic_ostream<charT,traits>& os,
335 return os << static_cast<const std::string&>(enumeration);
345 template<
class charT,
class traits>
346 inline std::basic_istream<charT,traits>&
360 is.setstate(std::ios::failbit);
372 #endif // OME_XML_MODEL_ENUMS_FILAMENTTYPE_H
std::basic_istream< charT, traits > & operator>>(std::basic_istream< charT, traits > &is, AcquisitionMode &enumeration)
Set AcquisitionMode from input stream.
Definition: AcquisitionMode.h:381
FilamentType enumeration.
Definition: FilamentType.h:70
bool operator!=(const AcquisitionMode &lhs, const AcquisitionMode &rhs)
Compare two AcquisitionMode objects for non-equality.
Definition: AcquisitionMode.h:295
static const string_map_type & strings()
Get a map of valid string names and enum values.
Definition: FilamentType.cpp:68
static const value_map_type & values()
Get a map of valid enum values and string names.
Definition: FilamentType.cpp:74
EnumerationException is thrown when an enumeration is invalid or not found.
Definition: EnumerationException.h:74
enum_value
Enumeration values.
Definition: FilamentType.h:74
Incandescent.
Definition: FilamentType.h:77
static const string_map_type lowercase_string_map
Mapping of lowercase enumeration name to value.
Definition: FilamentType.h:178
FilamentType(enum_value value)
Construct a FilamentType enumeration by an enumeration value.
Definition: FilamentType.cpp:123
std::map< std::string, FilamentType::enum_value > string_map_type
String map type.
Definition: FilamentType.h:149
FilamentType & operator=(const FilamentType &rhs)
Assignment operator.
Definition: FilamentType.h:119
const std::string * name
Enumeration name.
Definition: FilamentType.h:173
Halogen.
Definition: FilamentType.h:79
Open Microscopy Environment C++ implementation.
Definition: CoreMetadata.cpp:40
enum_value value
Enumeration value.
Definition: FilamentType.h:171
bool operator==(const AcquisitionMode &lhs, const AcquisitionMode &rhs)
Compare two AcquisitionMode objects for equality.
Definition: AcquisitionMode.h:225
Other.
Definition: FilamentType.h:81
static const string_map_type string_map
Mapping of enumeration name to value.
Definition: FilamentType.h:176
std::map< FilamentType::enum_value, std::string > value_map_type
Value map type.
Definition: FilamentType.h:151
static const value_map_type value_map
Mapping of enumeration value to name.
Definition: FilamentType.h:180
Xerces-C modern C++ wrapper.
Definition: Base.h:53