CMSDK 2.0.1
Cross-platform C++ base library and SDK for the Psyclone AIOS platform
Loading...
Searching...
No Matches
PsyInternal.h
Go to the documentation of this file.
1
10#if !defined(_PSYINTERNAL_H_)
11#define _PSYINTERNAL_H_
12
13#include "Utils.h"
14#include "PsyAPI.h"
15#include "Bitmap.h"
16
17namespace cmlabs {
18
22 std::string key;
23 std::string value;
24};
25
34 std::string postName;
35 uint32 delayMS;
36 uint64 nextTime;
37 uint32 timeMS;
38 uint32 intervalMS;
39 std::map<std::string, TrackPlayerMessageEntry> entryMap;
45 bool addEntry(const char* key, const char* value, const char* keytype = NULL);
46};
47
52int8 Internal_Simple(PsyAPI* api);
53int8 Internal_Ping(PsyAPI* api);
54int8 Internal_Pong(PsyAPI* api);
55int8 Internal_Shutdown(PsyAPI* api);
56int8 Internal_Print(PsyAPI* api);
57int8 Internal_Time(PsyAPI* api);
58int8 Internal_SignalPing(PsyAPI* api);
59int8 Internal_SignalPong(PsyAPI* api);
62int8 Internal_QueryTest(PsyAPI* api);
63int8 Internal_StatsLog(PsyAPI* api);
68
69} // namespace cmlabs
70
71#endif //_PSYINTERNAL_H_
72
In-memory RGBA raster image (Bitmap) with drawing primitives, resizing, BMP file I/O and delta/RLE co...
PsyAPI — the component-facing API handle of the CMSDK.
Cross-platform utility toolbox for CMSDK: threading, synchronization, shared memory,...
The API handle a component (crank) uses to talk to the Psyclone system.
Definition PsyAPI.h:82
int8 Internal_QueryTest(PsyAPI *api)
Exercises query/queryReply round-trips.
int8 Internal_Pong(PsyAPI *api)
Latency test counterpart: answers pings.
int8 Internal_Print(PsyAPI *api)
Prints incoming messages to the console/log.
int8 Internal_Simple(PsyAPI *api)
Pass-through test crank: copies each incoming message to its posts.
int8 Internal_SignalPong(PsyAPI *api)
Signal-based pong counterpart.
int8 Internal_StatsLog(PsyAPI *api)
Periodically logs system statistics.
int8 Internal_SignalPing(PsyAPI *api)
Signal-based ping test.
int8 Internal_MessageToggler(PsyAPI *api)
Alternates/toggles message output for testing.
int8 Internal_Shutdown(PsyAPI *api)
Initiates system shutdown when triggered.
int8 Internal_Ping(PsyAPI *api)
Latency test: posts pings, expects pongs.
int8 Internal_Time(PsyAPI *api)
Posts time information/timestamps.
int8 Internal_BitmapPoster(PsyAPI *api)
Posts test bitmap/image messages.
int8 Internal_MessageTypeConverter(PsyAPI *api)
Converts incoming messages to another type before reposting.
int8 Internal_MessageScript(PsyAPI *api)
Plays back scripted TrackPlayerMessage sequences.
int8 Internal_RetrieveTest(PsyAPI *api)
Exercises whiteboard retrieve calls.
One key/value entry of a scripted TrackPlayerMessage.
Definition PsyInternal.h:20
std::string key
Entry key placed in the generated message.
Definition PsyInternal.h:22
EntryType
Definition PsyInternal.h:21
@ TEXT
Definition PsyInternal.h:21
@ INT
Definition PsyInternal.h:21
@ FLOAT
Definition PsyInternal.h:21
std::string value
Entry value (textual; converted per entryType).
Definition PsyInternal.h:23
enum cmlabs::TrackPlayerMessageEntry::EntryType entryType
Data type of the value string.
One scripted post/signal action for the message-script player (Internal_MessageScript).
Definition PsyInternal.h:31
std::string postName
Post/signal name to use.
Definition PsyInternal.h:34
enum cmlabs::TrackPlayerMessage::PostType postType
Send as a posted message or as a signal.
uint32 timeMS
Time offset in ms for time-triggered sends.
Definition PsyInternal.h:37
bool addEntry(const char *key, const char *value, const char *keytype=NULL)
Add an entry to the message.
uint32 intervalMS
Repeat interval in ms; 0 for one-shot.
Definition PsyInternal.h:38
uint64 nextTime
Next scheduled send time (PsyTime µs), maintained by the player.
Definition PsyInternal.h:36
std::map< std::string, TrackPlayerMessageEntry > entryMap
Entries copied into each generated message.
Definition PsyInternal.h:39
enum cmlabs::TrackPlayerMessage::TriggerType triggerType
What causes the send: incoming trigger, timer, or nothing.
uint32 delayMS
Delay in ms before sending (after the trigger).
Definition PsyInternal.h:35