46 #ifndef OME_XML_MODEL_ENUMS_LINECAP_H
47 #define OME_XML_MODEL_ENUMS_LINECAP_H
55 #include <ome/xml/model/enums/EnumerationException.h>
104 LineCap (
const std::string&
name,
bool strict =
true);
142 operator const std::string& ()
const
157 static const string_map_type&
165 static const value_map_type&
174 static const string_map_type&
234 const std::string& rhs)
236 return static_cast<const std::string&
>(lhs) == rhs;
250 return lhs ==
static_cast<const std::string&
>(rhs);
304 const std::string& rhs)
306 return static_cast<const std::string&
>(lhs) != rhs;
320 return lhs !=
static_cast<const std::string&
>(rhs);
330 template<
class charT,
class traits>
331 inline std::basic_ostream<charT,traits>&
332 operator<< (std::basic_ostream<charT,traits>& os,
335 return os << static_cast<const std::string&>(enumeration);
345 template<
class charT,
class traits>
346 inline std::basic_istream<charT,traits>&
356 enumeration =
LineCap(value,
false);
360 is.setstate(std::ios::failbit);
372 #endif // OME_XML_MODEL_ENUMS_LINECAP_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
Line.
Definition: LineCap.h:78
const std::string * name
Enumeration name.
Definition: LineCap.h:180
EnumerationException is thrown when an enumeration is invalid or not found.
Definition: EnumerationException.h:74
LineCap(enum_value value)
Construct a LineCap enumeration by an enumeration value.
Definition: LineCap.cpp:75
LineCap & operator=(const LineCap &rhs)
Assignment operator.
Definition: LineCap.h:118
static const string_map_type & lowercase_strings()
Get a map of valid lowercased string names and enum values.
Definition: LineCap.cpp:170
Square.
Definition: LineCap.h:80
Butt.
Definition: LineCap.h:76
static const value_map_type & values()
Get a map of valid enum values and string names.
Definition: LineCap.cpp:154
std::map< LineCap::enum_value, std::string > value_map_type
Value map type.
Definition: LineCap.h:150
Open Microscopy Environment C++ implementation.
Definition: CoreMetadata.cpp:40
enum_value value
Enumeration value.
Definition: LineCap.h:178
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: LineCap.cpp:138
LineCap enumeration.
Definition: LineCap.h:69
std::map< std::string, LineCap::enum_value > string_map_type
String map type.
Definition: LineCap.h:148
enum_value
Enumeration values.
Definition: LineCap.h:73
Xerces-C modern C++ wrapper.
Definition: Base.h:53