ProfileList Class Reference

This class is used to read user-profiles into memory. More...

#include <ProfileList.hpp>

List of all members.


Public Member Functions

 ProfileList ()
 default constructor
 ~ProfileList ()
 default destructor
void readProfilesFromFile (const char *filename, UserList *ul)
 read all profiles from specified file into memory and add a reference to this profile to every appropriate user
ProfilegetProfileById (const uint profileId)

Detailed Description

This class is used to read user-profiles into memory.

Author:
Klaus Schoeffmann

Definition at line 69 of file ProfileList.hpp.


Member Function Documentation

Profile * ProfileList::getProfileById const uint  profileId  ) 
 

Returns:
a reference to the profile with specified id
Definition at line 239 of file ProfileList.cpp.

References Profile::getProfileId().

Referenced by SemiProxySession::forwardToServer(), SemiProxySession::handlePlayResponse(), and SemiProxySession::play().

00240 { 00241 Globals::sdebug << "\nProfileList::getProfileById(): searching for profile " << profileId; 00242 uint i; 00243 for (i=0; i < list.size(); i++) 00244 { 00245 Profile *profile = list[i]; 00246 if (profile->getProfileId() == profileId) return profile; 00247 } 00248 00249 Globals::sdebug << "\nProfileList::getProfileById(): NOT FOUND!!!"; 00250 return NULL; 00251 }


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