Safir SDK Core
Loading...
Searching...
No Matches
ErrorListResponse.h
Go to the documentation of this file.
1#pragma once
2
9
14
15#include <Safir/Utilities/Internal/VisibilityHelpers.h>
16
17#ifdef safir_generated_Core_cpp_EXPORTS
18# define SAFIR_GENERATED_Core_API SAFIR_HELPER_DLL_EXPORT
19#else
20# define SAFIR_GENERATED_Core_API SAFIR_HELPER_DLL_IMPORT
21# define SAFIR_LIBRARY_NAME "safir_generated-Core-cpp"
22# include <Safir/Utilities/Internal/AutoLink.h>
23#endif
24#define SAFIR_GENERATED_Core_API_LOCAL SAFIR_HELPER_DLL_LOCAL
25
29namespace Safir
30{
34namespace Dob
35{
36
37 class ErrorListResponse; //forward declaration
38 typedef std::shared_ptr<ErrorListResponse> ErrorListResponsePtr;
39 typedef std::shared_ptr<const ErrorListResponse> ErrorListResponseConstPtr;
40
44
50 {
51 public:
52 //Constructors and Create routines
56
62
63
64 //NumberOfErrors
71
72
73 //Error
81
82
84 static const Safir::Dob::Typesystem::TypeId ClassTypeId = -1383676967909534058LL;
85
86 //Type id for ErrorListResponse
87 Safir::Dob::Typesystem::TypeId GetTypeId() const override {return ClassTypeId;}
88
89 //Check if anything in the object has change flags set
90 bool IsChanged() override;
91
92 //Recursively set all change flags in the object
93 void SetChanged(const bool changed) override;
94
95
96 //Reflection part (Don't use unless you really know what you're doing!!)
98 const Safir::Dob::Typesystem::ArrayIndex index) override;
100 const Safir::Dob::Typesystem::ArrayIndex index) const override;
101
102 void WriteToBlob(Safir::Dob::Typesystem::Int64 handle) const override;
104
105 private:
106
107#ifdef _MSC_VER
108#pragma warning (push)
109#pragma warning (disable : 4251)
110#endif
111
112 Safir::Dob::Typesystem::Int32Container m_NumberOfErrorsMember;
114
115#ifdef _MSC_VER
116#pragma warning (pop)
117#endif
118 };
119
120} // Dob
121} // Safir
122
123
#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::ArrayContainer< ErrorListResponseContainer > ErrorListResponseContainerArray
Definition ErrorListResponse.h:42
Safir::Dob::Typesystem::ObjectContainerImpl< ErrorListResponse > ErrorListResponseContainer
Definition ErrorListResponse.h:41
Safir::Dob::Typesystem::GenericObjectSequenceContainer< ErrorListResponse > ErrorListResponseSequenceContainer
Definition ErrorListResponse.h:43
std::shared_ptr< ResponseErrorInfo > ResponseErrorInfoPtr
Definition ResponseErrorInfo.h:36
std::shared_ptr< const ErrorListResponse > ErrorListResponseConstPtr
Definition ErrorListResponse.h:39
std::shared_ptr< ErrorListResponse > ErrorListResponsePtr
Definition ErrorListResponse.h:38
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
Definition ContainerProxies.h:39
Template class for all containers of automatically generated DOB objects.
Definition ObjectContainer.h:190
Container for base types.
Definition ValueContainers.h:61
Defines an array of errors, typically used to report errors for individual members in the request.
Definition ErrorListResponse.h:50
Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::Typesystem::Int32Container > NumberOfErrors()
Safir::Dob::Typesystem::ObjectPtr Clone() const override
Create a copy of the object.
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.
const Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::Typesystem::Int32Container > NumberOfErrors() const
The number of indecies used in the Error array.
const Safir::Dob::ResponseErrorInfoContainerArray & Error() const
The generated errors.
static Safir::Dob::Typesystem::MemberIndex ErrorMemberIndex()
ErrorListResponse(Safir::Dob::Typesystem::Int64 handle)
Safir::Dob::Typesystem::TypeId GetTypeId() const override
Get the type id of this object.
Definition ErrorListResponse.h:87
void WriteToBlob(Safir::Dob::Typesystem::Int64 handle) const override
Write the object to a blob.
static ErrorListResponsePtr Create()
Safir::Dob::ResponseErrorInfoContainerArray & Error()
static Safir::Dob::Typesystem::MemberIndex NumberOfErrorsMemberIndex()
static Safir::Dob::Typesystem::ArrayIndex ErrorArraySize()
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.
bool IsChanged() override
Check if any member of this object is changed.
static ErrorListResponsePtr CreateErrorListResponse(const Safir::Dob::ResponseErrorInfoPtr Error)
Create an ErrorListResponse with one ResponseErrorInfo.
void SetChanged(const bool changed) override
Recursively set change flags in all members of this object.
The baseclass for all error responses.
Definition ErrorResponse.h:48