Safir SDK Core
Loading...
Searching...
No Matches
DeleteRequest.h
Go to the documentation of this file.
1#pragma once
2
9
10#include <Safir/Dob/Service.h>
13
14#include <Safir/Utilities/Internal/VisibilityHelpers.h>
15
16#ifdef safir_generated_Core_cpp_EXPORTS
17# define SAFIR_GENERATED_Core_API SAFIR_HELPER_DLL_EXPORT
18#else
19# define SAFIR_GENERATED_Core_API SAFIR_HELPER_DLL_IMPORT
20# define SAFIR_LIBRARY_NAME "safir_generated-Core-cpp"
21# include <Safir/Utilities/Internal/AutoLink.h>
22#endif
23#define SAFIR_GENERATED_Core_API_LOCAL SAFIR_HELPER_DLL_LOCAL
24
28namespace Safir
29{
33namespace Utilities
34{
38namespace ForEach
39{
40
41 class DeleteRequest; //forward declaration
42 typedef std::shared_ptr<DeleteRequest> DeleteRequestPtr;
43 typedef std::shared_ptr<const DeleteRequest> DeleteRequestConstPtr;
44
48
54 {
55 public:
56 //Constructors and Create routines
60
61 //ResponseType
68
69
70 //OperateOn
78
79
81 static const Safir::Dob::Typesystem::TypeId ClassTypeId = 3436255236723270727LL;
82
83 //Type id for DeleteRequest
84 Safir::Dob::Typesystem::TypeId GetTypeId() const override {return ClassTypeId;}
85
86 //Check if anything in the object has change flags set
87 bool IsChanged() override;
88
89 //Recursively set all change flags in the object
90 void SetChanged(const bool changed) override;
91
92
93 //Reflection part (Don't use unless you really know what you're doing!!)
95 const Safir::Dob::Typesystem::ArrayIndex index) override;
97 const Safir::Dob::Typesystem::ArrayIndex index) const override;
98
99 void WriteToBlob(Safir::Dob::Typesystem::Int64 handle) const override;
101
102 private:
103
104#ifdef _MSC_VER
105#pragma warning (push)
106#pragma warning (disable : 4251)
107#endif
108
111
112#ifdef _MSC_VER
113#pragma warning (pop)
114#endif
115 };
116
117} // ForEach
118} // Utilities
119} // Safir
120
121
#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
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
std::shared_ptr< const DeleteRequest > DeleteRequestConstPtr
Definition DeleteRequest.h:43
std::shared_ptr< DeleteRequest > DeleteRequestPtr
Definition DeleteRequest.h:42
Safir::Dob::Typesystem::ArrayContainer< DeleteRequestContainer > DeleteRequestContainerArray
Definition DeleteRequest.h:46
Safir::Dob::Typesystem::GenericObjectSequenceContainer< DeleteRequest > DeleteRequestSequenceContainer
Definition DeleteRequest.h:47
Safir::Dob::Typesystem::ObjectContainerImpl< DeleteRequest > DeleteRequestContainer
Definition DeleteRequest.h:45
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
The baseclass for all services.
Definition Service.h:46
Definition of deleting multiple objects using ForEach service request.
Definition DeleteRequest.h:54
DeleteRequest(Safir::Dob::Typesystem::Int64 handle)
static Safir::Dob::Typesystem::MemberIndex OperateOnMemberIndex()
bool IsChanged() override
Check if any member of this object is changed.
Safir::Dob::Typesystem::TypeId GetTypeId() const override
Get the type id of this object.
Definition DeleteRequest.h:84
static DeleteRequestPtr Create()
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.
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.
Safir::Dob::Typesystem::EntityIdContainerArray & OperateOn()
static Safir::Dob::Typesystem::ArrayIndex OperateOnArraySize()
void WriteToBlob(Safir::Dob::Typesystem::Int64 handle) const override
Write the object to a blob.
Safir::Dob::Typesystem::ContainerProxy< Safir::Utilities::ForEach::ResponseType::EnumerationContainer > ResponseType()
const Safir::Dob::Typesystem::ContainerProxy< Safir::Utilities::ForEach::ResponseType::EnumerationContainer > ResponseType() const
The type of response wanted.
void SetChanged(const bool changed) override
Recursively set change flags in all members of this object.
static Safir::Dob::Typesystem::MemberIndex ResponseTypeMemberIndex()
const Safir::Dob::Typesystem::EntityIdContainerArray & OperateOn() const
Array of entities to operate on.
Safir::Dob::Typesystem::ObjectPtr Clone() const override
Create a copy of the object.