ATBTariffCalculator/CalculatorCInterface/calculator_c_interface_lib.cpp

20 lines
351 B
C++
Raw Normal View History

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