KSOLVERGetVersion
Obtain the solver product version information.
Interface Definition
C interface:
int KSOLVERGetVersion(KSOLVERVersion *ver);
Parameters
Parameter |
Type |
Description |
Input/Output |
|---|---|---|---|
ver |
Pointer to the KSOLVERVersion structure |
Storage version information. This parameter value cannot be NULL. |
Input/Output |
Dependencies
#include "kml_solver.h"
#include "kml_service.h"
Examples
C interface:
int main()
{
KSOLVERVersion *ver = (KSOLVERVersion*)malloc(sizeof(KSOLVERVersion));
int res = KSOLVERGetVersion(ver);
if (res != 0) {
printf("Get version error.\n");
return 0;
}
printf("Component Name: %s\nComponent Version: %s\nSoftware Name: %s\nSoftware Version: %s\n",
ver->componentName, ver->componentVersion, ver->softwareName, ver->softwareVersion);
return 0;
}
Output:
Component Name: BoostKit-kml Component Version: 1.8.0 Software Name: boostkit-kml-solver Software Version: 1.8.0
The version number in the example above are for reference only.
Parent topic: Single-Node Mode