#ifndef ACCOUNTMANAGER_H #define ACCOUNTMANAGER_H #include #include #include #include struct Account { std::string Email, Password; }; class AccountManager { public: AccountManager(std::string pathToFile, std::string pathToAccountNumberFile); Account getNextAccount(); int writeDefault(std::string path); size_t getLastAccountNumber(); int setLastAccountNumber(size_t number); bool isDirExist(const std::string& path); bool createDir(std::string path, std::string atLinux = "-p "); private: std::vector accounts; std::string pathToAccountNumberFile; }; #endif // ACCOUNTMANAGER_H