RosettaStone::AccountLoader Class Reference
AccountLoader class. More...
#include <Rosetta/Loaders/AccountLoader.hpp>
Public Member Functions | |
AccountInfo * | Load (std::string email) const |
void | Save (AccountInfo *account) const |
Detailed Description
AccountLoader class.
This class loads/saves account data from/to <email>.json.
Member Function Documentation
◆ Load()
AccountInfo* RosettaStone::AccountLoader::Load | ( | std::string | ) | const |
Loads account information from a json file named email
.
- Parameters
-
email The email address of the account.
- Returns
- Account instance that stores information that was loaded.
◆ Save()
void RosettaStone::AccountLoader::Save | ( | AccountInfo * | account | ) | const |
Saves account information p
to a json file.
- Parameters
-
account A pointer to account instance that stores information.
The documentation for this class was generated from the following file:
- Rosetta/Loaders/AccountLoader.hpp