Safir SDK Core
Loading...
Searching...
No Matches
EntityIdResponse.h
Go to the documentation of this file.
1#pragma once
2
9
12
13#include <Safir/Utilities/Internal/VisibilityHelpers.h>
14
15#ifdef safir_generated_Core_cpp_EXPORTS
16# define SAFIR_GENERATED_Core_API SAFIR_HELPER_DLL_EXPORT
17#else
18# define SAFIR_GENERATED_Core_API SAFIR_HELPER_DLL_IMPORT
19# define SAFIR_LIBRARY_NAME "safir_generated-Core-cpp"
20# include <Safir/Utilities/Internal/AutoLink.h>
21#endif
22#define SAFIR_GENERATED_Core_API_LOCAL SAFIR_HELPER_DLL_LOCAL
23
27namespace Safir
28{
32namespace Dob
33{
34
35 class EntityIdResponse; //forward declaration
36 typedef std::shared_ptr<EntityIdResponse> EntityIdResponsePtr;
37 typedef std::shared_ptr<const EntityIdResponse> EntityIdResponseConstPtr;
38
42
48 {
49 public:
50 //Constructors and Create routines
54
60
61
62 //Assigned
69
70
72 static const Safir::Dob::Typesystem::TypeId ClassTypeId = -3160242026100845499LL;
73
74 //Type id for EntityIdResponse
75 Safir::Dob::Typesystem::TypeId GetTypeId() const override {return ClassTypeId;}
76
77 //Check if anything in the object has change flags set
78 bool IsChanged() override;
79
80 //Recursively set all change flags in the object
81 void SetChanged(const bool changed) override;
82
83
84 //Reflection part (Don't use unless you really know what you're doing!!)
86 const Safir::Dob::Typesystem::ArrayIndex index) override;
88 const Safir::Dob::Typesystem::ArrayIndex index) const override;
89
90 void WriteToBlob(Safir::Dob::Typesystem::Int64 handle) const override;
92
93 private:
94
95#ifdef _MSC_VER
96#pragma warning (push)
97#pragma warning (disable : 4251)
98#endif
99
101
102#ifdef _MSC_VER
103#pragma warning (pop)
104#endif
105 };
106
107} // Dob
108} // Safir
109
110
#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::GenericObjectSequenceContainer< EntityIdResponse > EntityIdResponseSequenceContainer
Definition EntityIdResponse.h:41
Safir::Dob::Typesystem::ObjectContainerImpl< EntityIdResponse > EntityIdResponseContainer
Definition EntityIdResponse.h:39
Safir::Dob::Typesystem::ArrayContainer< EntityIdResponseContainer > EntityIdResponseContainerArray
Definition EntityIdResponse.h:40
std::shared_ptr< const EntityIdResponse > EntityIdResponseConstPtr
Definition EntityIdResponse.h:37
std::shared_ptr< EntityIdResponse > EntityIdResponsePtr
Definition EntityIdResponse.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
Definition ContainerProxies.h:39
Class containing the identity of an entity.
Definition EntityId.h:43
Template class for all containers of automatically generated DOB objects.
Definition ObjectContainer.h:190
Container for base types.
Definition ValueContainers.h:61
Standard response for handlers registered as HandlerDecidesInstanceId, containing the instance that t...
Definition EntityIdResponse.h:48
void WriteToBlob(Safir::Dob::Typesystem::Int64 handle) const override
Write the object to a blob.
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.
EntityIdResponse(Safir::Dob::Typesystem::Int64 handle)
void SetChanged(const bool changed) override
Recursively set change flags in all members of this object.
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.
Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::Typesystem::EntityIdContainer > Assigned()
Safir::Dob::Typesystem::TypeId GetTypeId() const override
Get the type id of this object.
Definition EntityIdResponse.h:75
static Safir::Dob::Typesystem::MemberIndex AssignedMemberIndex()
static EntityIdResponsePtr Create()
Safir::Dob::Typesystem::ObjectPtr Clone() const override
Create a copy of the object.
static EntityIdResponsePtr CreateResponse(const Safir::Dob::Typesystem::EntityId Assigned)
Create a InstanceIdResponse.
const Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::Typesystem::EntityIdContainer > Assigned() const
The entity id assigned by the handler.
bool IsChanged() override
Check if any member of this object is changed.
The baseclass for all success responses.
Definition SuccessResponse.h:47