Main Page   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields  

User.h

00001 /*
00002  * $Id: User.h,v 1.6 2003/07/22 15:00:35 mindstorm2600 Exp $
00003  */
00004 #ifndef __CLAW_USER_H__
00005 #define __CLAW_USER_H__
00006 
00007 #include<Unix.h>
00008 
00009 namespace clawsoft{
00016         class User:protected Unix{
00017                 protected:
00019                         int _userid;
00021                         String _username;
00023                         static char *_getUsername(int uid);
00024                 public:
00030                         User();
00034                         User(int uid);
00039                         User(const String &uname);
00041                         int getUserID();
00043                         static int getCurrentUserID();
00046                         static int getUserID(const String &uname);
00048                         static int getEffectiveUserID();
00049 
00051                         static void setUserID(int uid);
00053                         static void setUserID(const String &uname);
00055                         static void setUserID(const User &usrobj);
00056 
00058                         static void setEffectiveUserID(int uid);
00060                         static void setEffectiveUserID(const String &uname);
00062                         static void setEffectiveUserID(const User &usrobj);
00063 
00064                         const String &toString();
00065         };
00066 };
00067 
00068 #endif

Authors:

Juan V. Guerrero
Jannette C. Mejia
Juan C. Guevara

Powered by:

SourceForgeLogo