46 #ifndef OME_XML_MODEL_ENUMS_NAMINGCONVENTION_H 47 #define OME_XML_MODEL_ENUMS_NAMINGCONVENTION_H 55 #include <ome/xml/model/enums/EnumerationException.h> 58 #define OME_XML_MODEL_ENUMS_NAMINGCONVENTION_VALUES (LETTER)(NUMBER) 174 operator const std::string& ()
const 189 static const string_map_type&
197 static const value_map_type&
206 static const string_map_type&
266 const std::string& rhs)
268 return static_cast<const std::string&
>(lhs) == rhs;
282 return lhs ==
static_cast<const std::string&
>(rhs);
336 const std::string& rhs)
338 return static_cast<const std::string&
>(lhs) != rhs;
352 return lhs !=
static_cast<const std::string&
>(rhs);
362 template<
class charT,
class traits>
363 inline std::basic_ostream<charT,traits>&
364 operator<< (std::basic_ostream<charT,traits>& os,
367 return os << static_cast<const std::string&>(enumeration);
377 template<
class charT,
class traits>
378 inline std::basic_istream<charT,traits>&
392 is.setstate(std::ios::failbit);
404 #endif // OME_XML_MODEL_ENUMS_NAMINGCONVENTION_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
NamingConvention & operator=(const NamingConvention &rhs)
Assignment operator.
Definition: NamingConvention.h:150
const std::string * name
Enumeration name.
Definition: NamingConvention.h:212
EnumerationException is thrown when an enumeration is invalid or not found.
Definition: EnumerationException.h:74
enum_value value
Enumeration value.
Definition: NamingConvention.h:210
std::map< std::string, NamingConvention::enum_value > string_map_type
String map type.
Definition: NamingConvention.h:180
NamingConvention enumeration.
Definition: NamingConvention.h:72
Open Microscopy Environment C++ implementation.
static const value_map_type & values()
Get a map of valid enum values and string names.
Definition: NamingConvention.cpp:142
std::map< NamingConvention::enum_value, std::string > value_map_type
Value map type.
Definition: NamingConvention.h:182
bool operator==(const AcquisitionMode &lhs, const AcquisitionMode &rhs)
Compare two AcquisitionMode objects for equality.
Definition: AcquisitionMode.h:236
While the label type 'number' has a clear meaning the 'letter' type is more complex.
Definition: NamingConvention.h:104
1, 2, 3, ...
Definition: NamingConvention.h:110
NamingConvention(enum_value value)
Construct a NamingConvention enumeration by an enumeration value.
Definition: NamingConvention.cpp:67
enum_value
Enumeration values.
Definition: NamingConvention.h:76
static const string_map_type & lowercase_strings()
Get a map of valid lowercased string names and enum values.
Definition: NamingConvention.cpp:154
static const string_map_type & strings()
Get a map of valid string names and enum values.
Definition: NamingConvention.cpp:130