#include <user.h>
Public Member Functions | |
int | id () const |
const std::string & | name () const |
const std::string & | category () const |
const std::string & | info () const |
bool | operator== (const User &user) const |
bool | operator< (const User &user) const |
Comparison, first on category, then on id. | |
Dv::Xml::Node | xml (const std::string &name="user") const |
Create XML representation of user. | |
User (const std::string &category="anonymous", int id=0, const std::string &name="anonymous", const std::string &info="") | |
Constructor. | |
User (Dv::Xml::Node::Ref xml_user) throw (Dv::Ticket::Exception) | |
Constructor. | |
Private Attributes | |
int | id_ |
Id of user, should be unique within the same category. | |
std::string | category_ |
Category of user. | |
std::string | name_ |
User name (e.g. | |
std::string | info_ |
Extra info. | |
Friends | |
class | Dv::Ticket::Request |
class | Dv::Ticket::Authenticator |
class | Dv::Ticket::Ticket |
A user is identified by a numeric id, and a category. A user also has a name and an uninterpreted info string.
The ticket database stores all components of the user-owner of the ticket.
Definition at line 26 of file user.h.
|
Constructor.
|
|
Constructor.
|
|
Definition at line 32 of file user.h. References id_. Referenced by operator==(). |
|
Definition at line 34 of file user.h. References name_. |
|
Definition at line 36 of file user.h. References category_. Referenced by operator==(). |
|
Definition at line 38 of file user.h. References info_. |
|
Definition at line 44 of file user.h. References category(), and id(). |
|
Comparison, first on category, then on id.
|
|
Create XML representation of user.
|
|
|
|
|
|
|
|
Id of user, should be unique within the same category.
|
|
Category of user.
Definition at line 87 of file user.h. Referenced by category(), and User(). |
|
User name (e.g. login name). |
|
Extra info.
|
dvticket-0.7.1 | [24 October, 2003] |