46 #ifndef OME_XML_MODEL_ENUMS_LASERTYPE_H 47 #define OME_XML_MODEL_ENUMS_LASERTYPE_H 55 #include <ome/xml/model/enums/EnumerationException.h> 58 #define OME_XML_MODEL_ENUMS_LASERTYPE_VALUES (EXCIMER)(GAS)(METALVAPOR)(SOLIDSTATE)(DYE)(SEMICONDUCTOR)(FREEELECTRON)(OTHER) 157 operator const std::string& ()
const 172 static const string_map_type&
180 static const value_map_type&
189 static const string_map_type&
249 const std::string& rhs)
251 return static_cast<const std::string&
>(lhs) == rhs;
265 return lhs ==
static_cast<const std::string&
>(rhs);
319 const std::string& rhs)
321 return static_cast<const std::string&
>(lhs) != rhs;
335 return lhs !=
static_cast<const std::string&
>(rhs);
345 template<
class charT,
class traits>
346 inline std::basic_ostream<charT,traits>&
347 operator<< (std::basic_ostream<charT,traits>& os,
350 return os << static_cast<const std::string&>(enumeration);
360 template<
class charT,
class traits>
361 inline std::basic_istream<charT,traits>&
375 is.setstate(std::ios::failbit);
387 #endif // OME_XML_MODEL_ENUMS_LASERTYPE_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
MetalVapor.
Definition: LaserType.h:83
FreeElectron.
Definition: LaserType.h:91
EnumerationException is thrown when an enumeration is invalid or not found.
Definition: EnumerationException.h:74
enum_value value
Enumeration value.
Definition: LaserType.h:193
LaserType & operator=(const LaserType &rhs)
Assignment operator.
Definition: LaserType.h:133
const std::string * name
Enumeration name.
Definition: LaserType.h:195
std::map< std::string, LaserType::enum_value > string_map_type
String map type.
Definition: LaserType.h:163
Dye.
Definition: LaserType.h:87
LaserType(enum_value value)
Construct a LaserType enumeration by an enumeration value.
Definition: LaserType.cpp:67
static const value_map_type & values()
Get a map of valid enum values and string names.
Definition: LaserType.cpp:163
static const string_map_type & strings()
Get a map of valid string names and enum values.
Definition: LaserType.cpp:145
Gas.
Definition: LaserType.h:81
Open Microscopy Environment C++ implementation.
bool operator==(const AcquisitionMode &lhs, const AcquisitionMode &rhs)
Compare two AcquisitionMode objects for equality.
Definition: AcquisitionMode.h:236
enum_value
Enumeration values.
Definition: LaserType.h:76
LaserType enumeration.
Definition: LaserType.h:72
Excimer.
Definition: LaserType.h:79
Semiconductor.
Definition: LaserType.h:89
std::map< LaserType::enum_value, std::string > value_map_type
Value map type.
Definition: LaserType.h:165
static const string_map_type & lowercase_strings()
Get a map of valid lowercased string names and enum values.
Definition: LaserType.cpp:181
SolidState.
Definition: LaserType.h:85
Other.
Definition: LaserType.h:93