46 #ifndef OME_XML_MODEL_ENUMS_FONTFAMILY_H 47 #define OME_XML_MODEL_ENUMS_FONTFAMILY_H 55 #include <ome/xml/model/enums/EnumerationException.h> 58 #define OME_XML_MODEL_ENUMS_FONTFAMILY_VALUES (SERIF)(SANSSERIF)(CURSIVE)(FANTASY)(MONOSPACE) 161 operator const std::string& ()
const 176 static const string_map_type&
184 static const value_map_type&
193 static const string_map_type&
253 const std::string& rhs)
255 return static_cast<const std::string&
>(lhs) == rhs;
269 return lhs ==
static_cast<const std::string&
>(rhs);
323 const std::string& rhs)
325 return static_cast<const std::string&
>(lhs) != rhs;
339 return lhs !=
static_cast<const std::string&
>(rhs);
349 template<
class charT,
class traits>
350 inline std::basic_ostream<charT,traits>&
351 operator<< (std::basic_ostream<charT,traits>& os,
354 return os << static_cast<const std::string&>(enumeration);
364 template<
class charT,
class traits>
365 inline std::basic_istream<charT,traits>&
379 is.setstate(std::ios::failbit);
391 #endif // OME_XML_MODEL_ENUMS_FONTFAMILY_H std::basic_istream< charT, traits > & operator>>(std::basic_istream< charT, traits > &is, AcquisitionMode &enumeration)
Set AcquisitionMode from input stream.
Definition: AcquisitionMode.h:392
serif.
Definition: FontFamily.h:81
bool operator!=(const AcquisitionMode &lhs, const AcquisitionMode &rhs)
Compare two AcquisitionMode objects for non-equality.
Definition: AcquisitionMode.h:306
enum_value value
Enumeration value.
Definition: FontFamily.h:197
enum_value
Enumeration values.
Definition: FontFamily.h:76
EnumerationException is thrown when an enumeration is invalid or not found.
Definition: EnumerationException.h:74
std::map< std::string, FontFamily::enum_value > string_map_type
String map type.
Definition: FontFamily.h:167
monospace.
Definition: FontFamily.h:97
FontFamily enumeration.
Definition: FontFamily.h:72
cursive.
Definition: FontFamily.h:89
const std::string * name
Enumeration name.
Definition: FontFamily.h:199
FontFamily & operator=(const FontFamily &rhs)
Assignment operator.
Definition: FontFamily.h:137
fantasy.
Definition: FontFamily.h:93
Open Microscopy Environment C++ implementation.
bool operator==(const AcquisitionMode &lhs, const AcquisitionMode &rhs)
Compare two AcquisitionMode objects for equality.
Definition: AcquisitionMode.h:236
static const string_map_type & lowercase_strings()
Get a map of valid lowercased string names and enum values.
Definition: FontFamily.cpp:160
sans-serif.
Definition: FontFamily.h:85
static const string_map_type & strings()
Get a map of valid string names and enum values.
Definition: FontFamily.cpp:130
std::map< FontFamily::enum_value, std::string > value_map_type
Value map type.
Definition: FontFamily.h:169
FontFamily(enum_value value)
Construct a FontFamily enumeration by an enumeration value.
Definition: FontFamily.cpp:67
static const value_map_type & values()
Get a map of valid enum values and string names.
Definition: FontFamily.cpp:145