46 #ifndef OME_XML_MODEL_ENUMS_MICROSCOPETYPE_H
47 #define OME_XML_MODEL_ENUMS_MICROSCOPETYPE_H
55 #include <ome/xml/model/enums/EnumerationException.h>
146 operator const std::string& ()
const
161 static const string_map_type&
169 static const value_map_type&
178 static const string_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>&
364 is.setstate(std::ios::failbit);
376 #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:381
bool operator!=(const AcquisitionMode &lhs, const AcquisitionMode &rhs)
Compare two AcquisitionMode objects for non-equality.
Definition: AcquisitionMode.h:295
Electrophysiology.
Definition: MicroscopeType.h:82
EnumerationException is thrown when an enumeration is invalid or not found.
Definition: EnumerationException.h:74
Inverted.
Definition: MicroscopeType.h:78
const std::string * name
Enumeration name.
Definition: MicroscopeType.h:184
Other.
Definition: MicroscopeType.h:84
static const string_map_type & strings()
Get a map of valid string names and enum values.
Definition: MicroscopeType.cpp:153
static const string_map_type & lowercase_strings()
Get a map of valid lowercased string names and enum values.
Definition: MicroscopeType.cpp:189
Upright.
Definition: MicroscopeType.h:76
Dissection.
Definition: MicroscopeType.h:80
enum_value
Enumeration values.
Definition: MicroscopeType.h:73
Open Microscopy Environment C++ implementation.
Definition: CoreMetadata.cpp:40
static const value_map_type & values()
Get a map of valid enum values and string names.
Definition: MicroscopeType.cpp:171
bool operator==(const AcquisitionMode &lhs, const AcquisitionMode &rhs)
Compare two AcquisitionMode objects for equality.
Definition: AcquisitionMode.h:225
enum_value value
Enumeration value.
Definition: MicroscopeType.h:182
std::map< std::string, MicroscopeType::enum_value > string_map_type
String map type.
Definition: MicroscopeType.h:152
MicroscopeType & operator=(const MicroscopeType &rhs)
Assignment operator.
Definition: MicroscopeType.h:122
MicroscopeType(enum_value value)
Construct a MicroscopeType enumeration by an enumeration value.
Definition: MicroscopeType.cpp:75
MicroscopeType enumeration.
Definition: MicroscopeType.h:69
std::map< MicroscopeType::enum_value, std::string > value_map_type
Value map type.
Definition: MicroscopeType.h:154
Xerces-C modern C++ wrapper.
Definition: Base.h:53