CMSDK 2.0.1
Cross-platform C++ base library and SDK for the Psyclone AIOS platform
Loading...
Searching...
No Matches
ObjectIDs.h
Go to the documentation of this file.
1
13
14#if !defined(_OBJECTIDS_H_)
15#define _OBJECTIDS_H_
16
17#include "Types.h"
18
19namespace cmlabs {
20
22#define GenObjID(n) (((n) << 16) | n)
24#define VerObjID(id) ( (id != 0) && ((((id) & 0xFF00) >> 16) == ((id) & 0x00FF)) )
26#define GetObjID(data) *(((uint32*)(data))+1)
28#define VerObj(data) VerObjID(GetObjID(data))
29
36
37#define UNUSEDID GenObjID( 1 )
38#define CONSTCHARID GenObjID( 2 )
39#define TIMEID GenObjID( 3 )
40#define CHARDATAID GenObjID( 4 )
41#define INTID GenObjID( 5 )
42#define DOUBLEID GenObjID( 6 )
43#define CONSTCHARINFOID GenObjID( 7 )
44#define CHARDATAINFOID GenObjID( 8 )
45
46#define PSYCLONEINDEXID GenObjID( 10 )
47#define PSYCLONEMASTERID GenObjID( 11 )
48#define TEMPORALMEMORYID GenObjID( 12 )
49#define PROCESSMEMORYID GenObjID( 13 )
50#define COMPONENTMEMORYID GenObjID( 14 )
51#define DATAMAPSMEMORYID GenObjID( 15 )
52
53#define DATAMESSAGEOLDID GenObjID( 20 )
54#define CONTROLMESSAGEID GenObjID( 21 )
55#define LOGENTRYID GenObjID( 22 )
56#define TIMESYNCDATA GenObjID( 23 )
57#define TRIGGERDATA GenObjID( 24 )
58#define RETRIEVEDATA GenObjID( 25 )
59#define POSTDATA GenObjID( 26 )
60#define COMPONENTSETUPDATA GenObjID( 27 )
61#define IDRESERVATION GenObjID( 28 )
62#define TYPELEVELID GenObjID( 29 )
63#define CONTEXTLEVELID GenObjID( 30 )
64#define CRANKID GenObjID( 31 )
65#define COMPONENTID GenObjID( 32 )
66#define TAGID GenObjID( 33 )
67#define NODEINFOPACKID GenObjID( 34 )
68#define NODEMAPID GenObjID( 35 )
69#define DATAMESSAGEINFOID GenObjID( 36 )
70#define DATAMESSAGEDRAFTID GenObjID( 37 )
71
72#define MEMORYREQUESTSERVERID GenObjID( 38 )
73#define DYNAMICMEMORYID GenObjID( 39 )
74#define OBSERVATIONID GenObjID( 40 )
75#define DATAMESSAGEID GenObjID( 41 )
77
82static struct PsyType CTRL_TEST = { { 1,10001,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } };
83static struct PsyType CTRL_LOGPRINT = { { 1,10002,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } };
84static struct PsyType CTRL_PING = { { 1,10003,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } };
85static struct PsyType CTRL_PING_REPLY = { { 1,10004,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } };
87
88} // namespace cmlabs
89
90#endif //_OBJECTIDS_H_
91
Core fixed-width scalar typedefs and the PsyType / PsyContext hierarchical identifiers.
static struct PsyType CTRL_LOGPRINT
Definition ObjectIDs.h:83
static struct PsyType CTRL_PING_REPLY
Definition ObjectIDs.h:85
static struct PsyType CTRL_PING
Definition ObjectIDs.h:84
static struct PsyType CTRL_TEST
Definition ObjectIDs.h:82
Hierarchical message type identifier — the key used for publish/subscribe matching in Psyclone.
Definition Types.h:123