46 #ifndef OME_XML_MODEL_ENUMS_ARCTYPE_H
47 #define OME_XML_MODEL_ENUMS_ARCTYPE_H
55 #include <ome/xml/model/enums/EnumerationException.h>
106 ArcType (
const std::string&
name,
bool strict =
true);
144 operator const std::string& ()
const
159 static const string_map_type&
167 static const value_map_type&
176 static const string_map_type&
236 const std::string& rhs)
238 return static_cast<const std::string&
>(lhs) == rhs;
252 return lhs ==
static_cast<const std::string&
>(rhs);
306 const std::string& rhs)
308 return static_cast<const std::string&
>(lhs) != rhs;
322 return lhs !=
static_cast<const std::string&
>(rhs);
332 template<
class charT,
class traits>
333 inline std::basic_ostream<charT,traits>&
334 operator<< (std::basic_ostream<charT,traits>& os,
337 return os << static_cast<const std::string&>(enumeration);
347 template<
class charT,
class traits>
348 inline std::basic_istream<charT,traits>&
358 enumeration =
ArcType(value,
false);
362 is.setstate(std::ios::failbit);
374 #endif // OME_XML_MODEL_ENUMS_ARCTYPE_H
std::basic_istream< charT, traits > & operator>>(std::basic_istream< charT, traits > &is, AcquisitionMode &enumeration)
Set AcquisitionMode from input stream.
Definition: AcquisitionMode.h:381
Hg.
Definition: ArcType.h:76
bool operator!=(const AcquisitionMode &lhs, const AcquisitionMode &rhs)
Compare two AcquisitionMode objects for non-equality.
Definition: AcquisitionMode.h:295
ArcType enumeration.
Definition: ArcType.h:69
enum_value
Enumeration values.
Definition: ArcType.h:73
EnumerationException is thrown when an enumeration is invalid or not found.
Definition: EnumerationException.h:74
ArcType(enum_value value)
Construct a ArcType enumeration by an enumeration value.
Definition: ArcType.cpp:75
Other.
Definition: ArcType.h:82
static const value_map_type & values()
Get a map of valid enum values and string names.
Definition: ArcType.cpp:170
static const string_map_type & lowercase_strings()
Get a map of valid lowercased string names and enum values.
Definition: ArcType.cpp:187
HgXe.
Definition: ArcType.h:80
std::map< std::string, ArcType::enum_value > string_map_type
String map type.
Definition: ArcType.h:150
Open Microscopy Environment C++ implementation.
Definition: CoreMetadata.cpp:40
Xe.
Definition: ArcType.h:78
std::map< ArcType::enum_value, std::string > value_map_type
Value map type.
Definition: ArcType.h:152
bool operator==(const AcquisitionMode &lhs, const AcquisitionMode &rhs)
Compare two AcquisitionMode objects for equality.
Definition: AcquisitionMode.h:225
static const string_map_type & strings()
Get a map of valid string names and enum values.
Definition: ArcType.cpp:153
const std::string * name
Enumeration name.
Definition: ArcType.h:182
enum_value value
Enumeration value.
Definition: ArcType.h:180
ArcType & operator=(const ArcType &rhs)
Assignment operator.
Definition: ArcType.h:120
Xerces-C modern C++ wrapper.
Definition: Base.h:53