2024-03-04 16:31:14 +01:00
|
|
|
#include "calculator_c_interface_lib.h"
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2024-03-11 12:14:28 +01:00
|
|
|
TariffCalculatorHandle CALCULATOR_C_INTERFACE_LIB_EXPORT NewTariffCalculator(void) {
|
|
|
|
return new TariffCalculator();
|
|
|
|
}
|
2024-03-04 16:31:14 +01:00
|
|
|
|
2024-03-11 12:14:28 +01:00
|
|
|
void CALCULATOR_C_INTERFACE_LIB_EXPORT DeleteTariffCalculator(TariffCalculatorHandle handle) {
|
|
|
|
delete handle;
|
2024-03-04 16:31:14 +01:00
|
|
|
}
|
|
|
|
|
2024-03-11 12:14:28 +01:00
|
|
|
|
2024-03-04 16:31:14 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|