Represents a user with a name. More...
#include <Mediator_User_Classes.h>
Public Member Functions | |
User () | |
Default constructor. | |
User (std::string name) | |
Constructor. | |
std::string | Name () |
The name of the user (read-only). | |
bool | Equals (const std::string &s) const |
Compare a string to this User. | |
bool | Equals (const User &user) const |
Compare another User name to this User name. | |
Private Attributes | |
std::string | _name |
Represents a user with a name.
Definition at line 25 of file Mediator_User_Classes.h.
|
inline |
Default constructor.
Definition at line 34 of file Mediator_User_Classes.h.
|
inline |
Constructor.
name | The name of the user to assign. |
Definition at line 42 of file Mediator_User_Classes.h.
|
inline |
Compare a string to this User.
s | A string containing the name of a user. |
Definition at line 61 of file Mediator_User_Classes.h.
References User::_name.
Referenced by UserList::_SearchForUser().
|
inline |
Compare another User name to this User name.
user | A User object to compare names with. |
Definition at line 71 of file Mediator_User_Classes.h.
References User::_name.
|
inline |
The name of the user (read-only).
Definition at line 51 of file Mediator_User_Classes.h.
References User::_name.
Referenced by Visitor_Shop::PickupOrder(), Visitor_Shop::PlaceOrder(), and EntryInformation::ToString().
|
private |
Definition at line 28 of file Mediator_User_Classes.h.
Referenced by User::__eq__(), User::Equals(), Visitor_Village::LoadVillage(), User::Name(), FileDirEntry::Name(), Memento_TextObject.Memento::Name(), Visitor_Village::Name(), and MoveCommand::Show().