46 #ifndef OME_XML_MODEL_ENUMS_FONTSTYLE_H 47 #define OME_XML_MODEL_ENUMS_FONTSTYLE_H 55 #include <ome/xml/model/enums/EnumerationException.h> 58 #define OME_XML_MODEL_ENUMS_FONTSTYLE_VALUES (BOLD)(BOLDITALIC)(ITALIC)(NORMAL) 149 operator const std::string& ()
const 164 static const string_map_type&
172 static const value_map_type&
181 static const string_map_type&
241 const std::string& rhs)
243 return static_cast<const std::string&
>(lhs) == rhs;
257 return lhs ==
static_cast<const std::string&
>(rhs);
311 const std::string& rhs)
313 return static_cast<const std::string&
>(lhs) != rhs;
327 return lhs !=
static_cast<const std::string&
>(rhs);
337 template<
class charT,
class traits>
338 inline std::basic_ostream<charT,traits>&
339 operator<< (std::basic_ostream<charT,traits>& os,
342 return os << static_cast<const std::string&>(enumeration);
352 template<
class charT,
class traits>
353 inline std::basic_istream<charT,traits>&
367 is.setstate(std::ios::failbit);
379 #endif // OME_XML_MODEL_ENUMS_FONTSTYLE_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
std::map< std::string, FontStyle::enum_value > string_map_type
String map type.
Definition: FontStyle.h:155
EnumerationException is thrown when an enumeration is invalid or not found.
Definition: EnumerationException.h:74
enum_value value
Enumeration value.
Definition: FontStyle.h:185
FontStyle(enum_value value)
Construct a FontStyle enumeration by an enumeration value.
Definition: FontStyle.cpp:67
enum_value
Enumeration values.
Definition: FontStyle.h:76
Italic.
Definition: FontStyle.h:83
const std::string * name
Enumeration name.
Definition: FontStyle.h:187
Bold.
Definition: FontStyle.h:79
Open Microscopy Environment C++ implementation.
FontStyle enumeration.
Definition: FontStyle.h:72
bool operator==(const AcquisitionMode &lhs, const AcquisitionMode &rhs)
Compare two AcquisitionMode objects for equality.
Definition: AcquisitionMode.h:236
BoldItalic.
Definition: FontStyle.h:81
FontStyle & operator=(const FontStyle &rhs)
Assignment operator.
Definition: FontStyle.h:125
std::map< FontStyle::enum_value, std::string > value_map_type
Value map type.
Definition: FontStyle.h:157
static const string_map_type & strings()
Get a map of valid string names and enum values.
Definition: FontStyle.cpp:130
static const string_map_type & lowercase_strings()
Get a map of valid lowercased string names and enum values.
Definition: FontStyle.cpp:158
static const value_map_type & values()
Get a map of valid enum values and string names.
Definition: FontStyle.cpp:144
Normal.
Definition: FontStyle.h:85