Prev Next

SetCallbacks

C++ only. This only needs to be implemented in C++. The code in the example is sufficient and doesn't need to be modified. Extra error or bounds checking may be added.

Inputs

Parameter

Details

const void ** callbackFunctions

An array of callback function pointers to be used to pass data back to Enterprise Architect.

Outputs via Callbacks

None

Details

C++ plugins will receive this method soon after creation. It passes in an array of callback function pointers which are used by the plugin later on to pass data back to Enterprise Architect

Example Implementation

void ExampleIntegrationPlugin::SetCallbacks(const void ** callbackFunctions)

{

if (callbackFunctions)

{

AddProperty = (AddPropertyPtr)callbackFunctions[0];

AddBinaryProperty = (AddBinaryPropertyPtr)callbackFunctions[1];

SetErrorCode = (SetErrorCodePtr)callbackFunctions[2];

SetError = (SetErrorPtr)callbackFunctions[3];

LogMessage = (LogMessagePtr)callbackFunctions[4];

}

}