1 #ifndef SAFIR_UTILITIES_FOREACH_RESPONSETYPE_H_INCLUDED
2 #define SAFIR_UTILITIES_FOREACH_RESPONSETYPE_H_INCLUDED
9 #include <Safir/Utilities/Internal/VisibilityHelpers.h>
11 #ifdef dots_generated_Safir_cpp_EXPORTS
12 # define DOTS_GENERATED_Safir_API SAFIR_HELPER_DLL_EXPORT
14 # define DOTS_GENERATED_Safir_API SAFIR_HELPER_DLL_IMPORT
15 # define SAFIR_LIBRARY_NAME "dots_generated-Safir-cpp"
16 # include <Safir/Utilities/Internal/AutoLink.h>
18 #define DOTS_GENERATED_Safir_API_LOCAL SAFIR_HELPER_DLL_LOCAL
51 static Enumeration First();
52 static Enumeration Last();
57 static std::wstring ToString(
const Enumeration enumVal);
58 static Enumeration ToValue(
const std::wstring & valueString);
74 if (value < FirstOrdinal() || value > LastOrdinal())
108 {CheckForMismatch();
return !IsNull() && m_Value == other;}
111 {
return !(*
this == other);}
118 {
return second == first;}
121 {
return !(first == second);}
virtual void SetOrdinal(const Safir::Dob::Typesystem::EnumerationValue value)
Set the ordinal value of the enumeration container.
Definition: ResponseType.h:72
Definition: ResponseType.h:67
void SetVal(const Enumeration value)
Definition: ResponseType.h:93
Definition: ResponseType.h:45
static bool operator!=(const ResponseType::Enumeration first, const ResponseType::EnumerationContainer second)
Definition: ResponseType.h:120
virtual Safir::Dob::Typesystem::EnumerationValue GetOrdinal() const
Get the ordinal value of the enumeration container.
Definition: ResponseType.h:83
DotsC_TypeId TypeId
A unique type identifier.
Definition: Defs.h:219
#define DOTS_GENERATED_Safir_API
Definition: ResponseType.h:14
Enumeration
Definition: ResponseType.h:42
Base class for containers of enumeration values.
Definition: EnumerationContainerBase.h:50
#define __WFILE__
Definition: Exceptions.h:31
A parameter in the call was invalid.
Definition: Exceptions.h:254
Enumeration ContainedType
Definition: ResponseType.h:70
This enumeration has no summary.
Definition: ResponseType.h:40
Enumeration GetVal() const
Definition: ResponseType.h:100
Thrown when an application attempts to get the value of a member that is null.
Definition: Exceptions.h:394
DotsC_EnumerationValue EnumerationValue
The ordinal value of an enumeration.
Definition: Defs.h:271
Safir::Dob::Typesystem::ArrayContainer< EnumerationContainer > EnumerationContainerArray
Definition: ResponseType.h:114
STL container for arrays of DOB-containers.
Definition: ArrayContainer.h:58
DotsC_Int32 Int32
32 bit integer type.
Definition: Defs.h:67
static bool operator==(const ResponseType::Enumeration first, const ResponseType::EnumerationContainer second)
Definition: ResponseType.h:117
bool operator==(const Enumeration other) const
Definition: ResponseType.h:107