1 #ifndef SAFIR_DOB_INSTANCEIDPOLICY_H_INCLUDED
2 #define SAFIR_DOB_INSTANCEIDPOLICY_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
39 HandlerDecidesInstanceId = 0,
40 RequestorDecidesInstanceId
45 static Enumeration First();
46 static Enumeration Last();
51 static std::wstring ToString(
const Enumeration enumVal);
52 static Enumeration ToValue(
const std::wstring & valueString);
68 if (value < FirstOrdinal() || value > LastOrdinal())
102 {CheckForMismatch();
return !IsNull() && m_Value == other;}
105 {
return !(*
this == other);}
112 {
return second == first;}
115 {
return !(first == second);}
virtual void SetOrdinal(const Safir::Dob::Typesystem::EnumerationValue value)
Set the ordinal value of the enumeration container.
Definition: InstanceIdPolicy.h:66
Enumeration ContainedType
Definition: InstanceIdPolicy.h:64
Enumerates the policies concerning how instance ids are assigned by a handler.
Definition: InstanceIdPolicy.h:35
Enumeration
Definition: InstanceIdPolicy.h:37
void SetVal(const Enumeration value)
Definition: InstanceIdPolicy.h:87
DotsC_TypeId TypeId
A unique type identifier.
Definition: Defs.h:219
Definition: InstanceIdPolicy.h:61
static bool operator==(const CallbackId::Enumeration first, const CallbackId::EnumerationContainer second)
Definition: CallbackId.h:131
virtual Safir::Dob::Typesystem::EnumerationValue GetOrdinal() const
Get the ordinal value of the enumeration container.
Definition: InstanceIdPolicy.h:77
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 GetVal() const
Definition: InstanceIdPolicy.h:94
Thrown when an application attempts to get the value of a member that is null.
Definition: Exceptions.h:394
bool operator==(const Enumeration other) const
Definition: InstanceIdPolicy.h:101
#define DOTS_GENERATED_Safir_API
Definition: InstanceIdPolicy.h:14
DotsC_EnumerationValue EnumerationValue
The ordinal value of an enumeration.
Definition: Defs.h:271
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 CallbackId::Enumeration first, const CallbackId::EnumerationContainer second)
Definition: CallbackId.h:134
Safir::Dob::Typesystem::ArrayContainer< EnumerationContainer > EnumerationContainerArray
Definition: InstanceIdPolicy.h:108