46 #ifndef OME_XML_MODEL_ENUMS_FILAMENTTYPE_H 47 #define OME_XML_MODEL_ENUMS_FILAMENTTYPE_H 55 #include <ome/xml/model/enums/EnumerationException.h> 58 #define OME_XML_MODEL_ENUMS_FILAMENTTYPE_VALUES (INCANDESCENT)(HALOGEN)(OTHER) 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_FILAMENTTYPE_H std::basic_istream< charT, traits > & operator>>(std::basic_istream< charT, traits > &is, AcquisitionMode &enumeration)
Set AcquisitionMode from input stream.
Definition: AcquisitionMode.h:392
FilamentType enumeration.
Definition: FilamentType.h:72
bool operator!=(const AcquisitionMode &lhs, const AcquisitionMode &rhs)
Compare two AcquisitionMode objects for non-equality.
Definition: AcquisitionMode.h:306
static const string_map_type & strings()
Get a map of valid string names and enum values.
Definition: FilamentType.cpp:145
static const value_map_type & values()
Get a map of valid enum values and string names.
Definition: FilamentType.cpp:158
EnumerationException is thrown when an enumeration is invalid or not found.
Definition: EnumerationException.h:74
enum_value
Enumeration values.
Definition: FilamentType.h:76
Incandescent.
Definition: FilamentType.h:79
FilamentType(enum_value value)
Construct a FilamentType enumeration by an enumeration value.
Definition: FilamentType.cpp:67
std::map< std::string, FilamentType::enum_value > string_map_type
String map type.
Definition: FilamentType.h:153
FilamentType & operator=(const FilamentType &rhs)
Assignment operator.
Definition: FilamentType.h:123
const std::string * name
Enumeration name.
Definition: FilamentType.h:185
Halogen.
Definition: FilamentType.h:81
Open Microscopy Environment C++ implementation.
enum_value value
Enumeration value.
Definition: FilamentType.h:183
bool operator==(const AcquisitionMode &lhs, const AcquisitionMode &rhs)
Compare two AcquisitionMode objects for equality.
Definition: AcquisitionMode.h:236
Other.
Definition: FilamentType.h:83
std::map< FilamentType::enum_value, std::string > value_map_type
Value map type.
Definition: FilamentType.h:155
static const string_map_type & lowercase_strings()
Get a map of valid lowercased string names and enum values.
Definition: FilamentType.cpp:171