DCSModulesAPI  1.0.0
DCS sub project containing all the control modules as libraries.
Classes | Public Types | Static Public Member Functions | List of all members
DCS::Registry Class Reference

Autogenerated class responsible for registering any function calls that might be requested via tcp/ip. More...

#include <registry.h>

Classes

struct  SVParams
 Auto-generated class that allows for buffer <-> parameters conversion. More...
 
struct  SVReturn
 Holds messages return types. More...
 

Public Types

typedef void(* EventCallbackFunc) (u8 *data, u8 *userData)
 

Static Public Member Functions

static DCS_API const u16 Get (const char *func_signature)
 Get a function id [SV_CALL_*] by function name. Syntax: ["ns::func"] Example: "DCS::Threading::GetMaxHardwareConcurrency" -> Returns: SV_CALL_DCS_Threading_GetMaxHardwareConcurrency.
 
static DCS_API const i32 SetupEvent (unsigned char *buffer, u8 id, EventCallbackFunc f, u8 *userData=nullptr)
 Set up event to subscribe by ID SV_EVT_*.
 
static DCS_API const i32 RemoveEvent (unsigned char *buffer, u8 id)
 Set up event to unsubscribe by ID SV_EVT_*.
 
static DCS_API const EventCallbackFunc GetEventCallback (u8 id)
 
static DCS_API const bool CheckEvent (u8 id)
 
static DCS_API const u8 GetEvent (const char *func)
 
static DCS_API u8GetEventUserData (u8 id)
 
static DCS_API void SetEvent (u8 id)
 
static DCS_API void UnsetEvent (u8 id)
 
static DCS_API SVReturn Execute (SVParams params)
 

Detailed Description

Autogenerated class responsible for registering any function calls that might be requested via tcp/ip.

An hash table is auto generated via the DCS_REGISTER_CALL token. Any function declarated with it shall be registered in the hash table and attributed an id callable via the Registry::Execute*() function family.


The documentation for this class was generated from the following files: