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

Group.h

00001 /*
00002  * $Id: Group.h,v 1.4 2003/07/22 13:37:11 mindstorm2600 Exp $
00003  */
00004 #ifndef __CLAW_GROUP_H__
00005 #define __CLAW_GROUP_H__
00006 
00007 #include<Unix.h>
00008 
00009 namespace clawsoft{
00016         class Group:protected Unix{
00017                 protected:
00019                         int _groupid;
00021                         String _groupname;
00029                         char *getGroupName(int gid);
00030                 public:
00036                         Group();
00040                         Group(int gid);
00045                         Group(const String &gname);
00047                         int  getGroupID();
00049                         static int  getCurrentGroupID();
00052                         static int  getGroupID(const String &gname);
00054                         static int  getEffectiveGroupID();
00056                         static void setGroupID(int gid);
00058                         static void setGroupID(const String &gname);
00060                         static void setGroupID(const Group &grpobj);
00062                         static void setEffectiveGroupID(int gid);
00064                         static void setEffectiveGroupID(const String &gname);
00066                         static void setEffectiveGroupID(const Group &grpobj);
00068                         const String &toString();
00069         };
00070 };
00071 
00072 #endif

Authors:

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

Powered by:

SourceForgeLogo