46 #ifndef OME_XML_MODEL_ENUMS_LASERTYPE_H
47 #define OME_XML_MODEL_ENUMS_LASERTYPE_H
55 #include <ome/xml/model/enums/EnumerationException.h>
152 operator const std::string& ()
const
167 static const string_map_type&
175 static const value_map_type&
184 static const string_map_type&
244 const std::string& rhs)
246 return static_cast<const std::string&
>(lhs) == rhs;
260 return lhs ==
static_cast<const std::string&
>(rhs);
314 const std::string& rhs)
316 return static_cast<const std::string&
>(lhs) != rhs;
330 return lhs !=
static_cast<const std::string&
>(rhs);
340 template<
class charT,
class traits>
341 inline std::basic_ostream<charT,traits>&
342 operator<< (std::basic_ostream<charT,traits>& os,
345 return os << static_cast<const std::string&>(enumeration);
355 template<
class charT,
class traits>
356 inline std::basic_istream<charT,traits>&
370 is.setstate(std::ios::failbit);
382 #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:381
bool operator!=(const AcquisitionMode &lhs, const AcquisitionMode &rhs)
Compare two AcquisitionMode objects for non-equality.
Definition: AcquisitionMode.h:295
MetalVapor.
Definition: LaserType.h:80
FreeElectron.
Definition: LaserType.h:88
EnumerationException is thrown when an enumeration is invalid or not found.
Definition: EnumerationException.h:74
enum_value value
Enumeration value.
Definition: LaserType.h:188
LaserType & operator=(const LaserType &rhs)
Assignment operator.
Definition: LaserType.h:128
const std::string * name
Enumeration name.
Definition: LaserType.h:190
std::map< std::string, LaserType::enum_value > string_map_type
String map type.
Definition: LaserType.h:158
Dye.
Definition: LaserType.h:84
LaserType(enum_value value)
Construct a LaserType enumeration by an enumeration value.
Definition: LaserType.cpp:75
static const value_map_type & values()
Get a map of valid enum values and string names.
Definition: LaserType.cpp:174
static const string_map_type & strings()
Get a map of valid string names and enum values.
Definition: LaserType.cpp:153
Gas.
Definition: LaserType.h:78
Open Microscopy Environment C++ implementation.
Definition: CoreMetadata.cpp:40
bool operator==(const AcquisitionMode &lhs, const AcquisitionMode &rhs)
Compare two AcquisitionMode objects for equality.
Definition: AcquisitionMode.h:225
enum_value
Enumeration values.
Definition: LaserType.h:73
LaserType enumeration.
Definition: LaserType.h:69
Excimer.
Definition: LaserType.h:76
Semiconductor.
Definition: LaserType.h:86
std::map< LaserType::enum_value, std::string > value_map_type
Value map type.
Definition: LaserType.h:160
static const string_map_type & lowercase_strings()
Get a map of valid lowercased string names and enum values.
Definition: LaserType.cpp:195
SolidState.
Definition: LaserType.h:82
Other.
Definition: LaserType.h:90
Xerces-C modern C++ wrapper.
Definition: Base.h:53