User Class Reference

This class is used to store users. More...

#include <User.hpp>

List of all members.


Public Member Functions

 User (uint userId, char username[], char password[])
 default constructor
 ~User ()
 default destructor
char * getUsername ()
char * getPassword ()
uint getUserId ()
void addProfile (Profile *profile)
 add a reference to the specified profile
vector< Profile * > getProfiles ()

Detailed Description

This class is used to store users.

Author:
Klaus Schoeffmann

Definition at line 65 of file User.hpp.


Member Function Documentation

char * User::getPassword  ) 
 

Returns:
password of user
Definition at line 88 of file User.cpp.
00089 { 00090 return password; 00091 }

vector< Profile * > User::getProfiles  ) 
 

Returns:
a reference to the list of profiles for that user
Definition at line 100 of file User.cpp.
00101 { 00102 return profiles; 00103 }

uint User::getUserId  ) 
 

Returns:
id of user
Definition at line 94 of file User.cpp.

Referenced by UserList::getUserById().

00095 { 00096 return userId; 00097 }

char * User::getUsername  ) 
 

Returns:
name of user
Definition at line 82 of file User.cpp.

Referenced by UserList::getUserByName().

00083 { 00084 return username; 00085 }


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