46 #ifndef OME_XML_MODEL_ENUMS_MICROSCOPETYPE_H 47 #define OME_XML_MODEL_ENUMS_MICROSCOPETYPE_H 55 #include <ome/xml/model/enums/EnumerationException.h> 58 #define OME_XML_MODEL_ENUMS_MICROSCOPETYPE_VALUES (UPRIGHT)(INVERTED)(DISSECTION)(ELECTROPHYSIOLOGY)(OTHER) 151 operator const std::string& ()
const 166 static const string_map_type&
174 static const value_map_type&
183 static const string_map_type&
243 const std::string& rhs)
245 return static_cast<const std::string&
>(lhs) == rhs;
259 return lhs ==
static_cast<const std::string&
>(rhs);
313 const std::string& rhs)
315 return static_cast<const std::string&
>(lhs) != rhs;
329 return lhs !=
static_cast<const std::string&
>(rhs);
339 template<
class charT,
class traits>
340 inline std::basic_ostream<charT,traits>&
341 operator<< (std::basic_ostream<charT,traits>& os,
344 return os << static_cast<const std::string&>(enumeration);
354 template<
class charT,
class traits>
355 inline std::basic_istream<charT,traits>&
369 is.setstate(std::ios::failbit);
381 #endif // OME_XML_MODEL_ENUMS_MICROSCOPETYPE_H std::basic_istream< charT, traits > & operator>>(std::basic_istream< charT, traits > &is, AcquisitionMode &enumeration)
Set AcquisitionMode from input stream.
Definition: AcquisitionMode.h:392
bool operator!=(const AcquisitionMode &lhs, const AcquisitionMode &rhs)
Compare two AcquisitionMode objects for non-equality.
Definition: AcquisitionMode.h:306
Electrophysiology.
Definition: MicroscopeType.h:85
EnumerationException is thrown when an enumeration is invalid or not found.
Definition: EnumerationException.h:74
Inverted.
Definition: MicroscopeType.h:81
const std::string * name
Enumeration name.
Definition: MicroscopeType.h:189
Other.
Definition: MicroscopeType.h:87
static const string_map_type & strings()
Get a map of valid string names and enum values.
Definition: MicroscopeType.cpp:145
static const string_map_type & lowercase_strings()
Get a map of valid lowercased string names and enum values.
Definition: MicroscopeType.cpp:175
Upright.
Definition: MicroscopeType.h:79
Dissection.
Definition: MicroscopeType.h:83
enum_value
Enumeration values.
Definition: MicroscopeType.h:76
Open Microscopy Environment C++ implementation.
static const value_map_type & values()
Get a map of valid enum values and string names.
Definition: MicroscopeType.cpp:160
bool operator==(const AcquisitionMode &lhs, const AcquisitionMode &rhs)
Compare two AcquisitionMode objects for equality.
Definition: AcquisitionMode.h:236
enum_value value
Enumeration value.
Definition: MicroscopeType.h:187
std::map< std::string, MicroscopeType::enum_value > string_map_type
String map type.
Definition: MicroscopeType.h:157
MicroscopeType & operator=(const MicroscopeType &rhs)
Assignment operator.
Definition: MicroscopeType.h:127
MicroscopeType(enum_value value)
Construct a MicroscopeType enumeration by an enumeration value.
Definition: MicroscopeType.cpp:67
MicroscopeType enumeration.
Definition: MicroscopeType.h:72
std::map< MicroscopeType::enum_value, std::string > value_map_type
Value map type.
Definition: MicroscopeType.h:159