budget/src/data/accountData.h
2022-08-12 17:04:56 -05:00

30 lines
447 B
C++

//
// Created by quentin on 8/4/22.
//
#ifndef BUDGET_ACCOUNTDATA_H
#define BUDGET_ACCOUNTDATA_H
#include "data.h"
#include "../money/account.h"
static const char *jsonTemplate = "";
class AccountData : private Data<Account> {
public:
explicit AccountData(const std::string &file);
Account *getAccount();
private:
Account account;
Account createObject() override;
bool isJsonCorrect() override;
};
#endif //BUDGET_ACCOUNTDATA_H