46 #ifndef OME_XML_MODEL_ENUMS_FILLRULE_H 47 #define OME_XML_MODEL_ENUMS_FILLRULE_H 55 #include <ome/xml/model/enums/EnumerationException.h> 58 #define OME_XML_MODEL_ENUMS_FILLRULE_VALUES (EVENODD)(NONZERO) 145 operator const std::string& ()
const 160 static const string_map_type&
168 static const value_map_type&
177 static const string_map_type&
237 const std::string& rhs)
239 return static_cast<const std::string&
>(lhs) == rhs;
253 return lhs ==
static_cast<const std::string&
>(rhs);
307 const std::string& rhs)
309 return static_cast<const std::string&
>(lhs) != rhs;
323 return lhs !=
static_cast<const std::string&
>(rhs);
333 template<
class charT,
class traits>
334 inline std::basic_ostream<charT,traits>&
335 operator<< (std::basic_ostream<charT,traits>& os,
338 return os << static_cast<const std::string&>(enumeration);
348 template<
class charT,
class traits>
349 inline std::basic_istream<charT,traits>&
359 enumeration =
FillRule(value,
false);
363 is.setstate(std::ios::failbit);
375 #endif // OME_XML_MODEL_ENUMS_FILLRULE_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
static const string_map_type & strings()
Get a map of valid string names and enum values.
Definition: FillRule.cpp:130
FillRule & operator=(const FillRule &rhs)
Assignment operator.
Definition: FillRule.h:121
EnumerationException is thrown when an enumeration is invalid or not found.
Definition: EnumerationException.h:74
enum_value
Enumeration values.
Definition: FillRule.h:76
FillRule enumeration.
Definition: FillRule.h:72
static const string_map_type & lowercase_strings()
Get a map of valid lowercased string names and enum values.
Definition: FillRule.cpp:154
enum_value value
Enumeration value.
Definition: FillRule.h:181
NonZero.
Definition: FillRule.h:81
const std::string * name
Enumeration name.
Definition: FillRule.h:183
Open Microscopy Environment C++ implementation.
std::map< std::string, FillRule::enum_value > string_map_type
String map type.
Definition: FillRule.h:151
bool operator==(const AcquisitionMode &lhs, const AcquisitionMode &rhs)
Compare two AcquisitionMode objects for equality.
Definition: AcquisitionMode.h:236
static const value_map_type & values()
Get a map of valid enum values and string names.
Definition: FillRule.cpp:142
EvenOdd.
Definition: FillRule.h:79
std::map< FillRule::enum_value, std::string > value_map_type
Value map type.
Definition: FillRule.h:153
FillRule(enum_value value)
Construct a FillRule enumeration by an enumeration value.
Definition: FillRule.cpp:67