23#ifndef PERSONALFINANCE_MAIN_H
24#define PERSONALFINANCE_MAIN_H
31#include <nlohmann/json.hpp>
35int main(
int argc,
char **argv);
110void toJSON(nlohmann::json &j, map<string, Account> accs);
The Account class is used to perform various operations on an Account object.
Definition: Account.h:41
void createAccount(map< string, Account > &accounts)
Creates a new account.
void viewAccount(Account &acc)
Prints details of the current account.
void determineLeverageRatio(Account acc)
void determineGrowthRate()
void saveInit(nlohmann::json &j)
void loadAccountData(nlohmann::json &j, bool &fileFound)
void calculateLongTermLoan()
void generateAccountMapFromJSON(map< string, Account > &accMap, nlohmann::json data)
int main(int argc, char **argv)
void listAvailableAccounts(nlohmann::json &data)
Lists the currently available accounts to choose from.
Account createAccountInit(map< string, Account > &accounts)
Creates a new account if no accounts are found on start.
void viewRecurring(Account acc)
Account switchAccounts(const nlohmann::json &data)
Allows the user to switch the account currently being used.
void fromJSON(const nlohmann::json &j, Account &acc, const string &nameOf)
void tools(Account &acc, map< string, Account > &accMap)
Provides various tools for the user to use.
void saveData(map< string, Account > accounts)
void toJSON(nlohmann::json &j, map< string, Account > accs)
void doubleAnInvestment()
void viewCashFlow(Account acc)
void printJSON(const nlohmann::json &j)
void addIncome(Account &acc, map< string, Account > &accMap)
void updateAccount(Account &acc, map< string, Account > &accounts)
Updates the current account.