user.h

paradigm_3/user.h · 776 B

From the archive paradigm_3.zip

Download the archive   « Back to the archive contents

/*! \file user.h
  This is the generic User class definition.

  \author Jon A. Lambert
  \date 05/02/2003
  \version 0.30
 */
#ifndef	USER_H
#define	USER_H

/*!
  The User class contains the minimum amount of attributes
  to reasonably maintain a socket user with a client.
 */
class User {
public:
  User(unsigned int id);
  User(const User& r_user);
  virtual ~User();
  User& operator=(const User& r_user);
  bool operator==(const User& r_user) const;
  bool operator==(unsigned int id) const;
  bool operator!=(unsigned int id) const;
  unsigned int Id();
private:
  unsigned int  mClientId;  //!< client id from server (socket)
  int mState;               //!< users state
  string mName;             //!< user's name
};

#endif // USER_H

Site Stats

Snippets: 1791
Codebases: 571