46 #ifndef OME_XML_MODEL_ENUMS_NAMINGCONVENTION_H
47 #define OME_XML_MODEL_ENUMS_NAMINGCONVENTION_H
55 #include <ome/xml/model/enums/EnumerationException.h>
140 operator const std::string& ()
const
155 static const string_map_type&
163 static const value_map_type&
172 static const string_map_type&
232 const std::string& rhs)
234 return static_cast<const std::string&
>(lhs) == rhs;
248 return lhs ==
static_cast<const std::string&
>(rhs);
302 const std::string& rhs)
304 return static_cast<const std::string&
>(lhs) != rhs;
318 return lhs !=
static_cast<const std::string&
>(rhs);
328 template<
class charT,
class traits>
329 inline std::basic_ostream<charT,traits>&
330 operator<< (std::basic_ostream<charT,traits>& os,
333 return os << static_cast<const std::string&>(enumeration);
343 template<
class charT,
class traits>
344 inline std::basic_istream<charT,traits>&
358 is.setstate(std::ios::failbit);
370 #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:381
bool operator!=(const AcquisitionMode &lhs, const AcquisitionMode &rhs)
Compare two AcquisitionMode objects for non-equality.
Definition: AcquisitionMode.h:295
NamingConvention & operator=(const NamingConvention &rhs)
Assignment operator.
Definition: NamingConvention.h:116
const std::string * name
Enumeration name.
Definition: NamingConvention.h:178
EnumerationException is thrown when an enumeration is invalid or not found.
Definition: EnumerationException.h:74
enum_value value
Enumeration value.
Definition: NamingConvention.h:176
std::map< std::string, NamingConvention::enum_value > string_map_type
String map type.
Definition: NamingConvention.h:146
NamingConvention enumeration.
Definition: NamingConvention.h:69
Open Microscopy Environment C++ implementation.
Definition: CoreMetadata.cpp:40
static const value_map_type & values()
Get a map of valid enum values and string names.
Definition: NamingConvention.cpp:153
std::map< NamingConvention::enum_value, std::string > value_map_type
Value map type.
Definition: NamingConvention.h:148
bool operator==(const AcquisitionMode &lhs, const AcquisitionMode &rhs)
Compare two AcquisitionMode objects for equality.
Definition: AcquisitionMode.h:225
letter
Definition: NamingConvention.h:76
number
Definition: NamingConvention.h:78
NamingConvention(enum_value value)
Construct a NamingConvention enumeration by an enumeration value.
Definition: NamingConvention.cpp:75
enum_value
Enumeration values.
Definition: NamingConvention.h:73
static const string_map_type & lowercase_strings()
Get a map of valid lowercased string names and enum values.
Definition: NamingConvention.cpp:168
static const string_map_type & strings()
Get a map of valid string names and enum values.
Definition: NamingConvention.cpp:138
Xerces-C modern C++ wrapper.
Definition: Base.h:53