mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
31 lines
764 B
C++
31 lines
764 B
C++
/*!
|
|
*
|
|
* \author: einhornimmond
|
|
*
|
|
* \date: 25.10.19
|
|
*
|
|
* \brief: Interface for Transaction Objects
|
|
*/
|
|
#ifndef GRADIDO_LOGIN_SERVER_MODEL_TRANSACTION_BASE_INCLUDE
|
|
#define GRADIDO_LOGIN_SERVER_MODEL_TRANSACTION_BASE_INCLUDE
|
|
|
|
#pragma warning(disable:4800)
|
|
|
|
#include "../lib/ErrorList.h"
|
|
#include "../proto/gradido/BasicTypes.pb.h"
|
|
#include "../SingletonManager/MemoryManager.h"
|
|
|
|
class TransactionBase : public ErrorList, public UniLib::lib::MultithreadContainer
|
|
{
|
|
public:
|
|
TransactionBase(const std::string& memo);
|
|
virtual int prepare() = 0;
|
|
|
|
static std::string amountToString(google::protobuf::int64 amount);
|
|
inline const std::string& getMemo() const { return mMemo; }
|
|
|
|
protected:
|
|
std::string mMemo;
|
|
};
|
|
|
|
#endif //GRADIDO_LOGIN_SERVER_MODEL_TRANSACTION_BASE_INCLUDE
|