Safir SDK Core
Loading...
Searching...
No Matches
ResponseGeneralErrorCodes.h
Go to the documentation of this file.
1#pragma once
2
9
11
12#include <Safir/Utilities/Internal/VisibilityHelpers.h>
13
14#ifdef safir_generated_Core_cpp_EXPORTS
15# define SAFIR_GENERATED_Core_API SAFIR_HELPER_DLL_EXPORT
16#else
17# define SAFIR_GENERATED_Core_API SAFIR_HELPER_DLL_IMPORT
18# define SAFIR_LIBRARY_NAME "safir_generated-Core-cpp"
19# include <Safir/Utilities/Internal/AutoLink.h>
20#endif
21#define SAFIR_GENERATED_Core_API_LOCAL SAFIR_HELPER_DLL_LOCAL
22
26namespace Safir
27{
31namespace Dob
32{
33
34 class ResponseGeneralErrorCodes; //forward declaration
35 typedef std::shared_ptr<ResponseGeneralErrorCodes> ResponseGeneralErrorCodesPtr;
36 typedef std::shared_ptr<const ResponseGeneralErrorCodes> ResponseGeneralErrorCodesConstPtr;
37
41
47 {
48 public:
49 //Constructors and Create routines
53
54 //SafirReqErr
58 static std::wstring SafirReqErr();
59
60 //SafirIllCombination
64 static std::wstring SafirIllCombination();
65
66 //SafirMissingMember
70 static std::wstring SafirMissingMember();
71
72 //SafirPresentMember
76 static std::wstring SafirPresentMember();
77
78 //SafirNullMember
82 static std::wstring SafirNullMember();
83
84 //SafirInternalErr
88 static std::wstring SafirInternalErr();
89
90 //SafirNoPermission
94 static std::wstring SafirNoPermission();
95
96 //SafirRangeErr
100 static std::wstring SafirRangeErr();
101
102 //SafirInstanceErr
106 static std::wstring SafirInstanceErr();
107
108 //SafirNoFreeInstance
112 static std::wstring SafirNoFreeInstance();
113
114 //SafirTimeout
118 static std::wstring SafirTimeout();
119
120 //SafirNotRegistered
124 static std::wstring SafirNotRegistered();
125
126 //SafirFormatErr
130 static std::wstring SafirFormatErr();
131
132 //SafirDetachedState
136 static std::wstring SafirDetachedState();
137
139 static const Safir::Dob::Typesystem::TypeId ClassTypeId = -561740985511921576LL;
140
141 //Type id for ResponseGeneralErrorCodes
142 Safir::Dob::Typesystem::TypeId GetTypeId() const override {return ClassTypeId;}
143
144 //Check if anything in the object has change flags set
145 bool IsChanged() override;
146
147 //Recursively set all change flags in the object
148 void SetChanged(const bool changed) override;
149
150
151 //Reflection part (Don't use unless you really know what you're doing!!)
153 const Safir::Dob::Typesystem::ArrayIndex index) override;
155 const Safir::Dob::Typesystem::ArrayIndex index) const override;
156
157 void WriteToBlob(Safir::Dob::Typesystem::Int64 handle) const override;
159
160 private:
161
162#ifdef _MSC_VER
163#pragma warning (push)
164#pragma warning (disable : 4251)
165#endif
166
167
168#ifdef _MSC_VER
169#pragma warning (pop)
170#endif
171 };
172
173} // Dob
174} // Safir
175
176
#define SAFIR_GENERATED_Core_API
Definition BackdoorCommand.h:18
This namespace contains all the functionality and definitions of the SAFIR SDK.
Definition Backdoor.h:31
Safir::Dob::Typesystem::ObjectContainerImpl< ResponseGeneralErrorCodes > ResponseGeneralErrorCodesContainer
Definition ResponseGeneralErrorCodes.h:38
Safir::Dob::Typesystem::GenericObjectSequenceContainer< ResponseGeneralErrorCodes > ResponseGeneralErrorCodesSequenceContainer
Definition ResponseGeneralErrorCodes.h:40
std::shared_ptr< ResponseGeneralErrorCodes > ResponseGeneralErrorCodesPtr
Definition ResponseGeneralErrorCodes.h:35
Safir::Dob::Typesystem::ArrayContainer< ResponseGeneralErrorCodesContainer > ResponseGeneralErrorCodesContainerArray
Definition ResponseGeneralErrorCodes.h:39
std::shared_ptr< const ResponseGeneralErrorCodes > ResponseGeneralErrorCodesConstPtr
Definition ResponseGeneralErrorCodes.h:36
DotsC_Int64 Int64
64 bit integer type.
Definition Defs.h:69
std::shared_ptr< Object > ObjectPtr
A smart pointer to an Object.
Definition Object.h:44
DotsC_ArrayIndex ArrayIndex
Index into an array.
Definition Defs.h:246
DotsC_TypeId TypeId
A unique type identifier.
Definition Defs.h:218
DotsC_MemberIndex MemberIndex
The index of a member in an object.
Definition Defs.h:237
STL container for arrays of DOB-containers.
Definition ArrayContainer.h:59
Base class for all Containers.
Definition ContainerBase.h:44
Template class for all containers of automatically generated DOB objects.
Definition ObjectContainer.h:190
This class is intended to be used as baseclass for classes that only contains parameters.
Definition Parametrization.h:46
Declares error codes that are of general interest.
Definition ResponseGeneralErrorCodes.h:47
static ResponseGeneralErrorCodesPtr Create()
Safir::Dob::Typesystem::TypeId GetTypeId() const override
Get the type id of this object.
Definition ResponseGeneralErrorCodes.h:142
static std::wstring SafirRangeErr()
Value out of range.
static std::wstring SafirInternalErr()
An internal error occurred.
bool IsChanged() override
Check if any member of this object is changed.
static std::wstring SafirNullMember()
A member is null, but is not allowed to be null.
static std::wstring SafirFormatErr()
The format of the supplied value is erroneous.
static std::wstring SafirPresentMember()
A present member is not allowed to be present.
const Safir::Dob::Typesystem::ContainerBase & GetMember(const Safir::Dob::Typesystem::MemberIndex member, const Safir::Dob::Typesystem::ArrayIndex index) const override
Get a const reference to a member container from an object.
static std::wstring SafirNoPermission()
A request is send from someone without permission.
ResponseGeneralErrorCodes(Safir::Dob::Typesystem::Int64 handle)
static std::wstring SafirIllCombination()
Illegal combination of members.
void WriteToBlob(Safir::Dob::Typesystem::Int64 handle) const override
Write the object to a blob.
Safir::Dob::Typesystem::ContainerBase & GetMember(const Safir::Dob::Typesystem::MemberIndex member, const Safir::Dob::Typesystem::ArrayIndex index) override
Get a reference to a member container from an object.
static std::wstring SafirInstanceErr()
Instance out of range.
Safir::Dob::Typesystem::ObjectPtr Clone() const override
Create a copy of the object.
static std::wstring SafirMissingMember()
A mandatory member is missing.
static std::wstring SafirReqErr()
An erroneous request.
static std::wstring SafirNoFreeInstance()
No free instance exists, create request failed.
static std::wstring SafirNotRegistered()
No one is registered to handle the request.
static std::wstring SafirTimeout()
The owner did not respond in due time.
void SetChanged(const bool changed) override
Recursively set change flags in all members of this object.
static std::wstring SafirDetachedState()
Request is sent from a detached light node.