cashacceptor.hpp (773B)
1 #ifndef CASHACCEPTOR_H 2 #define CASHACCEPTOR_H 3 4 // Exclude some headers to avoid errors compiling in cpp 5 //#define GNUNET_STRINGS_LIB_H 6 //#define TALER_CRYPTO_LIB_H 7 8 //Allow to directly include amount lib, might lead to other bugs.. 9 #define __TALER_UTIL_LIB_H_INSIDE__ 10 extern "C" { 11 #include <taler/taler_amount_lib.h> 12 } 13 14 #include <vector> 15 16 17 18 class Cashaccepor 19 { 20 private: 21 22 23 protected: 24 TALER_Amount accumulatedAmmount; 25 std::vector<TALER_Amount> amountFIFO; 26 27 public: 28 Cashaccepor(){}; 29 virtual int clearAccumulatedAmount() = 0; 30 virtual int startMoneyAcceptance() = 0; 31 virtual int stopMoneyAcceptance() = 0; 32 virtual int readAccumulated(TALER_Amount *retval) = 0; 33 virtual int readFIFO(TALER_Amount *retval) = 0; 34 35 36 }; 37 38 39 40 41 42 43 44 45 46 47 #endif //CASHACCEPTOR_H