10#if !defined(_PSYINTERNAL_H_)
11#define _PSYINTERNAL_H_
39 std::map<std::string, TrackPlayerMessageEntry>
entryMap;
45 bool addEntry(
const char* key,
const char* value,
const char* keytype = NULL);
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.
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.
std::string key
Entry key placed in the generated message.
std::string value
Entry value (textual; converted per entryType).
enum cmlabs::TrackPlayerMessageEntry::EntryType entryType
Data type of the value string.
One scripted post/signal action for the message-script player (Internal_MessageScript).
std::string postName
Post/signal name to use.
enum cmlabs::TrackPlayerMessage::PostType postType
Send as a posted message or as a signal.
uint32 timeMS
Time offset in ms for time-triggered sends.
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.
uint64 nextTime
Next scheduled send time (PsyTime µs), maintained by the player.
std::map< std::string, TrackPlayerMessageEntry > entryMap
Entries copied into each generated message.
enum cmlabs::TrackPlayerMessage::TriggerType triggerType
What causes the send: incoming trigger, timer, or nothing.
uint32 delayMS
Delay in ms before sending (after the trigger).