Logic for sending/receiving application messages in a financial market.
Definition: authorizer.hpp:26
std::size_t size() const
Return the number of accounts in the manager.
Definition: authorizer.hpp:39
bool has_account(std::string username) const
Return true if the username exists in the database.
Definition: authorizer.hpp:57
Logic for looking up and validating credentials for new connections.
Definition: authorizer.hpp:32
SystemAccount< Handler > * get_account(std::string username)
Return the account for the given username.
Definition: authorizer.hpp:66
bool is_valid(const std::string &username, const std::string &password) const
Return true if the username and password combination is valid.
Definition: authorizer.hpp:76
void new_user(std::string username, std::string password)
Create a new user in the account manager.
Definition: authorizer.hpp:46
A subclass of the LOB::Account that manages client state on the market server.
Definition: system_account.hpp:35
friend std::ostream & operator<<(std::ostream &stream, const Authorizer &authorizer)
Write the data from the authorizer to a stream.
Definition: authorizer.hpp:92