46 #ifndef OME_XML_MODEL_ENUMS_PULSE_H
47 #define OME_XML_MODEL_ENUMS_PULSE_H
55 #include <ome/xml/model/enums/EnumerationException.h>
110 Pulse (
const std::string&
name,
bool strict =
true);
148 operator const std::string& ()
const
163 static const string_map_type&
171 static const value_map_type&
180 static const string_map_type&
200 return static_cast<Pulse::enum_value>(lhs) == static_cast<Pulse::enum_value>(rhs);
240 const std::string& rhs)
242 return static_cast<const std::string&
>(lhs) == rhs;
256 return lhs ==
static_cast<const std::string&
>(rhs);
270 return static_cast<Pulse::enum_value>(lhs) != static_cast<Pulse::enum_value>(rhs);
310 const std::string& rhs)
312 return static_cast<const std::string&
>(lhs) != rhs;
326 return lhs !=
static_cast<const std::string&
>(rhs);
336 template<
class charT,
class traits>
337 inline std::basic_ostream<charT,traits>&
338 operator<< (std::basic_ostream<charT,traits>& os,
339 const Pulse& enumeration)
341 return os << static_cast<const std::string&>(enumeration);
351 template<
class charT,
class traits>
352 inline std::basic_istream<charT,traits>&
362 enumeration =
Pulse(value,
false);
366 is.setstate(std::ios::failbit);
378 #endif // OME_XML_MODEL_ENUMS_PULSE_H
std::basic_istream< charT, traits > & operator>>(std::basic_istream< charT, traits > &is, AcquisitionMode &enumeration)
Set AcquisitionMode from input stream.
Definition: AcquisitionMode.h:381
std::map< std::string, Pulse::enum_value > string_map_type
String map type.
Definition: Pulse.h:154
bool operator!=(const AcquisitionMode &lhs, const AcquisitionMode &rhs)
Compare two AcquisitionMode objects for non-equality.
Definition: AcquisitionMode.h:295
EnumerationException is thrown when an enumeration is invalid or not found.
Definition: EnumerationException.h:74
Pulse & operator=(const Pulse &rhs)
Assignment operator.
Definition: Pulse.h:124
CW.
Definition: Pulse.h:76
Pulse enumeration.
Definition: Pulse.h:69
Other.
Definition: Pulse.h:86
ModeLocked.
Definition: Pulse.h:84
Repetitive.
Definition: Pulse.h:82
static const string_map_type & strings()
Get a map of valid string names and enum values.
Definition: Pulse.cpp:153
QSwitched.
Definition: Pulse.h:80
Open Microscopy Environment C++ implementation.
Definition: CoreMetadata.cpp:40
enum_value value
Enumeration value.
Definition: Pulse.h:184
Single.
Definition: Pulse.h:78
static const value_map_type & values()
Get a map of valid enum values and string names.
Definition: Pulse.cpp:172
bool operator==(const AcquisitionMode &lhs, const AcquisitionMode &rhs)
Compare two AcquisitionMode objects for equality.
Definition: AcquisitionMode.h:225
const std::string * name
Enumeration name.
Definition: Pulse.h:186
static const string_map_type & lowercase_strings()
Get a map of valid lowercased string names and enum values.
Definition: Pulse.cpp:191
Pulse(enum_value value)
Construct a Pulse enumeration by an enumeration value.
Definition: Pulse.cpp:75
enum_value
Enumeration values.
Definition: Pulse.h:73
std::map< Pulse::enum_value, std::string > value_map_type
Value map type.
Definition: Pulse.h:156
Xerces-C modern C++ wrapper.
Definition: Base.h:53