Safir SDK Core
Loading...
Searching...
No Matches
Status.h
Go to the documentation of this file.
1#pragma once
2
9
10#include <Safir/Dob/Entity.h>
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 Control
33{
34
35 class Status; //forward declaration
36 typedef std::shared_ptr<Status> StatusPtr;
37 typedef std::shared_ptr<const Status> StatusConstPtr;
38
42
48 {
49 public:
50 //Constructors and Create routines
53 static StatusPtr Create();
54
55 //NodeId
62
63
64 //SystemIncarnation
71
72
74 static const Safir::Dob::Typesystem::TypeId ClassTypeId = -6773735506390875536LL;
75
76 //Type id for Status
77 Safir::Dob::Typesystem::TypeId GetTypeId() const override {return ClassTypeId;}
78
79 //Check if anything in the object has change flags set
80 bool IsChanged() override;
81
82 //Recursively set all change flags in the object
83 void SetChanged(const bool changed) override;
84
85
86 //Reflection part (Don't use unless you really know what you're doing!!)
88 const Safir::Dob::Typesystem::ArrayIndex index) override;
90 const Safir::Dob::Typesystem::ArrayIndex index) const override;
91
92 void WriteToBlob(Safir::Dob::Typesystem::Int64 handle) const override;
94
95 private:
96
97#ifdef _MSC_VER
98#pragma warning (push)
99#pragma warning (disable : 4251)
100#endif
101
103 Safir::Dob::Typesystem::Int64Container m_SystemIncarnationMember;
104
105#ifdef _MSC_VER
106#pragma warning (pop)
107#endif
108 };
109
110} // Control
111} // Safir
112
113
#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::ArrayContainer< StatusContainer > StatusContainerArray
Definition Status.h:40
std::shared_ptr< const Status > StatusConstPtr
Definition Status.h:37
Safir::Dob::Typesystem::GenericObjectSequenceContainer< Status > StatusSequenceContainer
Definition Status.h:41
std::shared_ptr< Status > StatusPtr
Definition Status.h:36
Safir::Dob::Typesystem::ObjectContainerImpl< Status > StatusContainer
Definition Status.h:39
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
Information about the this node.
Definition Status.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.
Safir::Dob::Typesystem::TypeId GetTypeId() const override
Get the type id of this object.
Definition Status.h:77
Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::Typesystem::Int64Container > SystemIncarnation()
const Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::Typesystem::Int64Container > SystemIncarnation() const
Unique identification of the running system.
static StatusPtr Create()
Safir::Dob::Typesystem::ObjectPtr Clone() const override
Create a copy of the object.
static Safir::Dob::Typesystem::MemberIndex NodeIdMemberIndex()
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.
void SetChanged(const bool changed) override
Recursively set change flags in all members of this object.
const Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::Typesystem::Int64Container > NodeId() const
The node id of this node.
Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::Typesystem::Int64Container > NodeId()
static Safir::Dob::Typesystem::MemberIndex SystemIncarnationMemberIndex()
bool IsChanged() override
Check if any member of this object is changed.
Status(Safir::Dob::Typesystem::Int64 handle)
The baseclass for all entities.
Definition Entity.h:46