Safir SDK Core
Loading...
Searching...
No Matches
DeleteAllRequest.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 DeleteAllRequest; //forward declaration
42 typedef std::shared_ptr<DeleteAllRequest> DeleteAllRequestPtr;
43 typedef std::shared_ptr<const DeleteAllRequest> DeleteAllRequestConstPtr;
44
48
54 {
55 public:
56 //Constructors and Create routines
60
61 //ResponseType
68
69
70 //TypeId
77
78
79 //IncludeSubClasses
86
87
88 //HandlerId
95
96
98 static const Safir::Dob::Typesystem::TypeId ClassTypeId = -5491723164203390070LL;
99
100 //Type id for DeleteAllRequest
101 Safir::Dob::Typesystem::TypeId GetTypeId() const override {return ClassTypeId;}
102
103 //Check if anything in the object has change flags set
104 bool IsChanged() override;
105
106 //Recursively set all change flags in the object
107 void SetChanged(const bool changed) override;
108
109
110 //Reflection part (Don't use unless you really know what you're doing!!)
112 const Safir::Dob::Typesystem::ArrayIndex index) override;
114 const Safir::Dob::Typesystem::ArrayIndex index) const override;
115
116 void WriteToBlob(Safir::Dob::Typesystem::Int64 handle) const override;
118
119 private:
120
121#ifdef _MSC_VER
122#pragma warning (push)
123#pragma warning (disable : 4251)
124#endif
125
128 Safir::Dob::Typesystem::BooleanContainer m_IncludeSubClassesMember;
130
131#ifdef _MSC_VER
132#pragma warning (pop)
133#endif
134 };
135
136} // ForEach
137} // Utilities
138} // Safir
139
140
#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
Safir::Dob::Typesystem::GenericObjectSequenceContainer< DeleteAllRequest > DeleteAllRequestSequenceContainer
Definition DeleteAllRequest.h:47
Safir::Dob::Typesystem::ArrayContainer< DeleteAllRequestContainer > DeleteAllRequestContainerArray
Definition DeleteAllRequest.h:46
std::shared_ptr< const DeleteAllRequest > DeleteAllRequestConstPtr
Definition DeleteAllRequest.h:43
Safir::Dob::Typesystem::ObjectContainerImpl< DeleteAllRequest > DeleteAllRequestContainer
Definition DeleteAllRequest.h:45
std::shared_ptr< DeleteAllRequest > DeleteAllRequestPtr
Definition DeleteAllRequest.h:42
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
The baseclass for all services.
Definition Service.h:46
Definition of deleting all instances of a given type.
Definition DeleteAllRequest.h:54
const Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::Typesystem::TypeIdContainer > TypeId() const
The typeId to delete all instances of.
Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::Typesystem::TypeIdContainer > TypeId()
static Safir::Dob::Typesystem::MemberIndex ResponseTypeMemberIndex()
Safir::Dob::Typesystem::ObjectPtr Clone() const override
Create a copy of the object.
static Safir::Dob::Typesystem::MemberIndex TypeIdMemberIndex()
Safir::Dob::Typesystem::TypeId GetTypeId() const override
Get the type id of this object.
Definition DeleteAllRequest.h:101
static DeleteAllRequestPtr Create()
Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::Typesystem::HandlerIdContainer > HandlerId()
DeleteAllRequest(Safir::Dob::Typesystem::Int64 handle)
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.
void WriteToBlob(Safir::Dob::Typesystem::Int64 handle) const override
Write the object to a blob.
static Safir::Dob::Typesystem::MemberIndex IncludeSubClassesMemberIndex()
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.
Safir::Dob::Typesystem::ContainerProxy< Safir::Utilities::ForEach::ResponseType::EnumerationContainer > ResponseType()
static Safir::Dob::Typesystem::MemberIndex HandlerIdMemberIndex()
Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::Typesystem::BooleanContainer > IncludeSubClasses()
const Safir::Dob::Typesystem::ContainerProxy< Safir::Utilities::ForEach::ResponseType::EnumerationContainer > ResponseType() const
The type of response wanted.
const Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::Typesystem::HandlerIdContainer > HandlerId() const
The handlerId to delete all instances of (default: ALL_HANDLERS)
const Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::Typesystem::BooleanContainer > IncludeSubClasses() const
Include subclasses in delete all operation (default: true)
void SetChanged(const bool changed) override
Recursively set change flags in all members of this object.