Overview

The following legacy support is provided. Also provided are the legacy data/utility interfaces detailed at Legacy (1199).

Data & Utility Interfaces

1065 Data & Utility Components provided a rather informal interface. These have since been upgraded to 1199. The old interfaces are emulated in the 1065 binding so that 1065 Processes will not need modification.

C++ API (1065)
void rng_select(Symbol hUtility, const char* generator) void rng_seed(Symbol hUtility, UINT32* seed, UINT32 count) void rng_seed(Symbol hUtility, const VUINT32& seed) void rng_fill(Symbol hUtility, DOUBLE* dst, UINT64 count, DOUBLE gain = 1.0, DOUBLE offset = 0.0) void rng_fill(Symbol hUtility, SINGLE* dst, UINT64 count, SINGLE gain = 1.0, SINGLE offset = 0.0) DOUBLE rng_get(Symbol hUtility) string rng_get_state(Symbol hUtility) void rng_set_state(Symbol hUtility, const char* state) dev_std_data_numeric::Structure* numeric_get_structure(Symbol hData) void numeric_set_structure(Symbol hData, dev_std_data_numeric::Structure& structure) void numeric_set_structure(Symbol hData, TYPE type, const Dims& dims) void numeric_validate(Symbol hData, TYPE type) void numeric_validate(Symbol hData, TYPE type, const Dims& dims) void numeric_validate(Symbol hData, dev_std_data_numeric::Structure& structure) void numeric_set_content(Symbol hData, const void* real, const void* imag = NULL, UINT32 bytes = 0) UINT64 numeric_get_content(Symbol hData, const void*& real, const void*& imag) const void* numeric_get_content(Symbol hData) Dimensions* spikes_get_dimensions(Symbol hData) void spikes_set_dimensions(Symbol hData, Dimensions* dims) UINT32 spikes_get_capacity(Symbol hData) void spikes_set_capacity(Symbol hData, UINT32 capacity) UINT32 spikes_get_content(Symbol hData, INT32*& state) void spikes_set_content(Symbol hData, INT32* state, UINT32 count)

Component Interface

The Component Interface has undergone various improvements for consistency and correct operation since 1065 was published. 1065 provides as much as possible of the old Component Interface interface through macros and inline functions, so that 1065 Processes will need as little modification as possible.

C++ API (1065)
const Symbol RESPONSE_NULL = S_NULL; const Symbol RESPONSE_OK = C_OK; const Symbol RESPONSE_STOP_USER_CANCEL = C_STOP_USER; const Symbol RESPONSE_STOP_EXTERNAL_CANCEL = C_STOP_EXTERNAL; const Symbol RESPONSE_STOP_CONDITION_REACHED = C_STOP_CONDITION; const Symbol RESPONSE_STOP_THEREFOREIAM = C_STOP_THEREFOREIAM; const Symbol RESPONSE_FUNCTION_NOT_FOUND = E_FUNC_NOT_FOUND; const Symbol RESPONSE_BAD_ARG_COUNT = E_BAD_ARG_COUNT; const Symbol RESPONSE_BAD_ARG_TYPE = E_BAD_ARG_TYPE; const Symbol RESPONSE_BAD_ARG_SIZE = E_BAD_ARG_SIZE; #define VersionFramework FrameworkVersion #define coreGetElementTypeString getTypeString #define getElementTypeString getTypeString #define coreGetEventTypeString getSymbolString #define coreCreateUtility(t, c, r) createUtility(hComponent, c, r, NULL) #define SAMPLERATE SampleRate #define BASESAMPLES BaseSamples #define FLAG_ENCAPSULATED F_ENCAPSULATED #define H_FLAG_OUTPUT F_OUTPUT #define FLAG_FIRST_CALL F_FIRST_CALL #define FLAG_LAST_CALL F_LAST_CALL #define FLAG_ERROR F_GLOBAL_ERROR #define FLAG_LOCAL_ERROR F_LOCAL_ERROR #define FLAG_UNDEFINED F_UNDEFINED #define FLAG_ZERO F_ZERO #define FLAG_MODIFIED F_MODIFIED #define FLAG_FRESH F_FRESH #define FLAG_IS_LISTENED F_LISTENED #define FLAG_NEEDS_ALL_INPUTS F_NEEDS_ALL_INPUTS #define FLAG_INPUTS_SAME_RATE F_INPUTS_SAME_RATE #define FLAG_OUTPUTS_SAME_RATE F_OUTPUTS_SAME_RATE #define FLAG_NOT_RATE_CHANGER F_NOT_RATE_CHANGER #define FLAG_NOT_THREAD_SAFE F_NO_CONCURRENCY #define EVENT_BASE_PUBLIC C_BASE_USER_EVENT #define EVENT_BASE_MODULE C_BASE_USER_EVENT; #define EVENT_EXECPARS (C_BASE_EVENT + 0xFFF0) #define versionComponent MODULE_VERSION_COMPONENT #define VERSION_EXPORTED ( -2 ) #define DEFAULT_SET ( -1 ) #define HANDLE_INVALID S_NULL #define TYPE_NOT_SET TYPE_UNSPECIFIED #define time (*ptime) #define Event Event1065