dca_interface
6.3.4
|
The first thing you must do when using the SCA is to start the 3rd party libraries startup functions:
(see also Initialization of 3rd party libraries)
Next step is to set up a dca::DcaInstance object. This class encapsulates the API as a whole.
To create the instance fill out a dca::InitData structure, and call the function dca::DcaInstance::create().
Note that the provided directories are (once initialized) not changeable for this instance.
The use of two or more DcaInstance objects in the same process (using the same initialization directory) is currently not supported.
The SCA will be deinitialized automatically once the DcaInstance object goes out of scope. For more information on DCA startup and shutdown, Please refer to Startup/Shutdown sequence.
Before going out of scope, call the Deinitilization functions of the 3rd party libraries in reverse order:
The following code demonstrates how to initialize the SCA.