Safir SDK Core
Loading...
Searching...
No Matches
PersistentDataReady.h
Go to the documentation of this file.
1#pragma once
2
9
10#include <Safir/Dob/Service.h>
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 PersistentDataReady; //forward declaration
35 typedef std::shared_ptr<PersistentDataReady> PersistentDataReadyPtr;
36 typedef std::shared_ptr<const PersistentDataReady> PersistentDataReadyConstPtr;
37
41
47 {
48 public:
49 //Constructors and Create routines
53
55 static const Safir::Dob::Typesystem::TypeId ClassTypeId = -541049774038136621LL;
56
57 //Type id for PersistentDataReady
58 Safir::Dob::Typesystem::TypeId GetTypeId() const override {return ClassTypeId;}
59
60 //Check if anything in the object has change flags set
61 bool IsChanged() override;
62
63 //Recursively set all change flags in the object
64 void SetChanged(const bool changed) override;
65
66
67 //Reflection part (Don't use unless you really know what you're doing!!)
69 const Safir::Dob::Typesystem::ArrayIndex index) override;
71 const Safir::Dob::Typesystem::ArrayIndex index) const override;
72
73 void WriteToBlob(Safir::Dob::Typesystem::Int64 handle) const override;
75
76 private:
77
78#ifdef _MSC_VER
79#pragma warning (push)
80#pragma warning (disable : 4251)
81#endif
82
83
84#ifdef _MSC_VER
85#pragma warning (pop)
86#endif
87 };
88
89} // Dob
90} // Safir
91
92
#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< PersistentDataReady > PersistentDataReadySequenceContainer
Definition PersistentDataReady.h:40
Safir::Dob::Typesystem::ObjectContainerImpl< PersistentDataReady > PersistentDataReadyContainer
Definition PersistentDataReady.h:38
std::shared_ptr< const PersistentDataReady > PersistentDataReadyConstPtr
Definition PersistentDataReady.h:36
std::shared_ptr< PersistentDataReady > PersistentDataReadyPtr
Definition PersistentDataReady.h:35
Safir::Dob::Typesystem::ArrayContainer< PersistentDataReadyContainer > PersistentDataReadyContainerArray
Definition PersistentDataReady.h:39
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 service is called by the persistency handler when the persistent data has been fed to the Dob.
Definition PersistentDataReady.h:47
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.
bool IsChanged() override
Check if any member of this object is changed.
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.
PersistentDataReady(Safir::Dob::Typesystem::Int64 handle)
Safir::Dob::Typesystem::ObjectPtr Clone() const override
Create a copy of the object.
Safir::Dob::Typesystem::TypeId GetTypeId() const override
Get the type id of this object.
Definition PersistentDataReady.h:58
static PersistentDataReadyPtr Create()
void WriteToBlob(Safir::Dob::Typesystem::Int64 handle) const override
Write the object to a blob.
The baseclass for all services.
Definition Service.h:46