Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

Password Class Reference

#include <password.h>

List of all members.

Public Member Functions

void setUnencoded (const string &s)
void setEncoded (const string &s)
void setInt (int pwd)
bool empty () const
void reset ()
string toString () const
bool operator== (const Password &p) const
bool operator!= (const Password &p) const
void read (tnstream &stream)
void write (tnstream &stream) const

Protected Member Functions

int encodepassword (const char *pw) const
string encodedpassword2string (int pwd) const


Member Function Documentation

bool Password::empty  )  const
 

Definition at line 89 of file password.cpp.

Referenced by authenticateUser(), enterpassword(), and networksupervisor().

string Password::encodedpassword2string int  pwd  )  const [protected]
 

Definition at line 73 of file password.cpp.

References strrr().

Referenced by read(), setEncoded(), setInt(), and setUnencoded().

int Password::encodepassword const char *  pw  )  const [protected]
 

Definition at line 60 of file password.cpp.

References crc32buf().

Referenced by setUnencoded().

bool Password::operator!= const Password p  )  const
 

Definition at line 54 of file password.cpp.

References password.

bool Password::operator== const Password p  )  const
 

Definition at line 49 of file password.cpp.

References password.

void Password::read tnstream stream  ) 
 

Definition at line 100 of file password.cpp.

References encodedpassword2string(), and tnstream::readInt().

Referenced by GameMap::read().

void Password::reset  ) 
 

Definition at line 120 of file password.cpp.

Referenced by Player::resetPassword().

void Password::setEncoded const string &  s  ) 
 

Definition at line 32 of file password.cpp.

References atoi(), and encodedpassword2string().

Referenced by StartMultiplayerGame::Apply(), CGameOptions::getDefaultPassword(), and CGameOptions::getDefaultSupervisorPassword().

void Password::setInt int  pwd  ) 
 

Definition at line 44 of file password.cpp.

References encodedpassword2string().

void Password::setUnencoded const string &  s  ) 
 

Definition at line 27 of file password.cpp.

References encodedpassword2string(), and encodepassword().

Referenced by StartMultiplayerGame::Apply(), and k_loadmap().

string Password::toString  )  const
 

Definition at line 94 of file password.cpp.

void Password::write tnstream stream  )  const
 

Definition at line 106 of file password.cpp.

References atoi(), and tnstream::writeInt().

Referenced by GameMap::write().


The documentation for this class was generated from the following files:
Generated on Tue Jun 24 02:18:44 2008 for Advanced Strategic Command by  doxygen 1.4.2