Safir SDK Core
Loading...
Searching...
No Matches
ProcessInfo.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 Dob
33{
34
35 class ProcessInfo; //forward declaration
36 typedef std::shared_ptr<ProcessInfo> ProcessInfoPtr;
37 typedef std::shared_ptr<const ProcessInfo> ProcessInfoConstPtr;
38
42
48 {
49 public:
50 //Constructors and Create routines
54
55 //Name
63
64
65 //Pid
72
73
74 //ConnectionNames
82
83
85 static const Safir::Dob::Typesystem::TypeId ClassTypeId = -7487716889645161527LL;
86
87 //Type id for ProcessInfo
88 Safir::Dob::Typesystem::TypeId GetTypeId() const override {return ClassTypeId;}
89
90 //Check if anything in the object has change flags set
91 bool IsChanged() override;
92
93 //Recursively set all change flags in the object
94 void SetChanged(const bool changed) override;
95
96
97 //Reflection part (Don't use unless you really know what you're doing!!)
99 const Safir::Dob::Typesystem::ArrayIndex index) override;
101 const Safir::Dob::Typesystem::ArrayIndex index) const override;
102
103 void WriteToBlob(Safir::Dob::Typesystem::Int64 handle) const override;
105
106 private:
107
108#ifdef _MSC_VER
109#pragma warning (push)
110#pragma warning (disable : 4251)
111#endif
112
116
117#ifdef _MSC_VER
118#pragma warning (pop)
119#endif
120 };
121
122} // Dob
123} // Safir
124
125
#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
std::shared_ptr< ProcessInfo > ProcessInfoPtr
Definition ProcessInfo.h:36
Safir::Dob::Typesystem::ArrayContainer< ProcessInfoContainer > ProcessInfoContainerArray
Definition ProcessInfo.h:40
std::shared_ptr< const ProcessInfo > ProcessInfoConstPtr
Definition ProcessInfo.h:37
Safir::Dob::Typesystem::ObjectContainerImpl< ProcessInfo > ProcessInfoContainer
Definition ProcessInfo.h:39
Safir::Dob::Typesystem::GenericObjectSequenceContainer< ProcessInfo > ProcessInfoSequenceContainer
Definition ProcessInfo.h:41
DotsC_Int32 Int32
32 bit integer type.
Definition Defs.h:66
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
Template class for all containers of automatically generated DOB objects.
Definition ObjectContainer.h:190
Container class for sequences of values.
Definition SequenceContainer.h:53
Container for base types.
Definition ValueContainers.h:61
Container for strings (std::wstring).
Definition ValueContainers.h:127
The baseclass for all entities.
Definition Entity.h:46
Displays one entity per process that is connected to the DOB.
Definition ProcessInfo.h:48
void SetChanged(const bool changed) override
Recursively set change flags in all members of this object.
static Safir::Dob::Typesystem::Int32 NameMaxStringLength()
static Safir::Dob::Typesystem::MemberIndex ConnectionNamesMemberIndex()
Safir::Dob::Typesystem::TypeId GetTypeId() const override
Get the type id of this object.
Definition ProcessInfo.h:88
static Safir::Dob::Typesystem::MemberIndex PidMemberIndex()
Safir::Dob::Typesystem::ObjectPtr Clone() const override
Create a copy of the object.
static ProcessInfoPtr 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::ContainerProxy< Safir::Dob::Typesystem::Int32Container > Pid() const
The process id.
ProcessInfo(Safir::Dob::Typesystem::Int64 handle)
const Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::Typesystem::StringContainer > Name() const
The process name.
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.
static Safir::Dob::Typesystem::Int32 ConnectionNamesMaxStringLength()
void WriteToBlob(Safir::Dob::Typesystem::Int64 handle) const override
Write the object to a blob.
static Safir::Dob::Typesystem::MemberIndex NameMemberIndex()
const Safir::Dob::Typesystem::StringSequenceContainer & ConnectionNames() const
The names of all Dob connections opened by the process.
Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::Typesystem::StringContainer > Name()
Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::Typesystem::Int32Container > Pid()
Safir::Dob::Typesystem::StringSequenceContainer & ConnectionNames()