46 #ifndef OME_XML_MODEL_ENUMS_MARKER_H 47 #define OME_XML_MODEL_ENUMS_MARKER_H 55 #include <ome/xml/model/enums/EnumerationException.h> 58 #define OME_XML_MODEL_ENUMS_MARKER_VALUES (ARROW) 103 Marker (
const std::string&
name,
bool strict =
true);
143 operator const std::string& ()
const 158 static const string_map_type&
166 static const value_map_type&
175 static const string_map_type&
235 const std::string& rhs)
237 return static_cast<const std::string&
>(lhs) == rhs;
251 return lhs ==
static_cast<const std::string&
>(rhs);
305 const std::string& rhs)
307 return static_cast<const std::string&
>(lhs) != rhs;
321 return lhs !=
static_cast<const std::string&
>(rhs);
331 template<
class charT,
class traits>
332 inline std::basic_ostream<charT,traits>&
333 operator<< (std::basic_ostream<charT,traits>& os,
334 const Marker& enumeration)
336 return os << static_cast<const std::string&>(enumeration);
346 template<
class charT,
class traits>
347 inline std::basic_istream<charT,traits>&
357 enumeration =
Marker(value,
false);
361 is.setstate(std::ios::failbit);
373 #endif // OME_XML_MODEL_ENUMS_MARKER_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
Arrow.
Definition: Marker.h:79
EnumerationException is thrown when an enumeration is invalid or not found.
Definition: EnumerationException.h:74
static const value_map_type & values()
Get a map of valid enum values and string names.
Definition: Marker.cpp:141
enum_value
Enumeration values.
Definition: Marker.h:76
Marker enumeration.
Definition: Marker.h:72
std::map< std::string, Marker::enum_value > string_map_type
String map type.
Definition: Marker.h:149
static const string_map_type & strings()
Get a map of valid string names and enum values.
Definition: Marker.cpp:130
static const string_map_type & lowercase_strings()
Get a map of valid lowercased string names and enum values.
Definition: Marker.cpp:152
Open Microscopy Environment C++ implementation.
std::map< Marker::enum_value, std::string > value_map_type
Value map type.
Definition: Marker.h:151
Marker(enum_value value)
Construct a Marker enumeration by an enumeration value.
Definition: Marker.cpp:67
bool operator==(const AcquisitionMode &lhs, const AcquisitionMode &rhs)
Compare two AcquisitionMode objects for equality.
Definition: AcquisitionMode.h:236
enum_value value
Enumeration value.
Definition: Marker.h:179
const std::string * name
Enumeration name.
Definition: Marker.h:181
Marker & operator=(const Marker &rhs)
Assignment operator.
Definition: Marker.h:119