#include <user.hpp>
List of all members.
Public Member Functions |
| user_manager (void) |
| construct a new user_manager object
|
virtual | ~user_manager () |
| virtual destructor
|
bool | empty (void) const |
| returns true if no users are defined
|
virtual bool | add_user (const std::string &username, const std::string &password) |
virtual bool | update_user (const std::string &username, const std::string &password) |
virtual bool | remove_user (const std::string &username) |
virtual user_ptr | get_user (const std::string &username) |
virtual user_ptr | get_user (const std::string &username, const std::string &password) |
Protected Types |
typedef std::map< std::string,
user_ptr > | user_map_t |
| data type for a map of usernames to user objects
|
Protected Attributes |
boost::mutex | m_mutex |
| mutex used to protect access to the user list
|
user_map_t | m_users |
| user records container
|
Detailed Description
user_manager base class for user container/manager
Definition at line 167 of file user.hpp.
Member Function Documentation
used to add a new user with plaintext password
- Parameters:
-
username | name or identifier of the user to add |
password | plaintext password of the user to add |
- Returns:
- false if user with such a name already exists
Definition at line 192 of file user.hpp.
References m_mutex, and m_users.
Used to locate user object by username and password
Definition at line 294 of file user.hpp.
References m_mutex, and m_users.
used to remove given user
- Returns:
- false if no user with such username
Definition at line 270 of file user.hpp.
References m_mutex, and m_users.
update password for given user
- Parameters:
-
username | name or identifier of the user to update |
password | plaintext password of the user to update |
- Returns:
- false if user with such a name doesn't exist
Definition at line 212 of file user.hpp.
References m_mutex, and m_users.
The documentation for this class was generated from the following file: