RosettaStone::AccountLoader Class Reference

AccountLoader class. More...

#include <Rosetta/Loaders/AccountLoader.hpp>

Public Member Functions

AccountInfoLoad (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  email) const

Loads account information from a json file named email.

Parameters
emailThe 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
accountA pointer to account instance that stores information.

The documentation for this class was generated from the following file: