| 3 |
* |
* |
| 4 |
* $Revision$ |
* $Revision$ |
| 5 |
* $Log$ |
* $Log$ |
| 6 |
|
* Revision 1.5 2005/01/15 05:31:43 youi |
| 7 |
|
* groupid_tを使って定義. |
| 8 |
|
* |
| 9 |
* Revision 1.4 2005/01/14 10:33:53 aga |
* Revision 1.4 2005/01/14 10:33:53 aga |
| 10 |
* ・int groupIndexIDを追加. |
* ・int groupIndexIDを追加. |
| 11 |
* |
* |
| 38 |
groupIndexID = 0; |
groupIndexID = 0; |
| 39 |
} |
} |
| 40 |
|
|
| 41 |
group::group( int gid, const char* gname, const char* desc ) |
group::group( groupid_t gid, const char* gname, const char* desc ) |
| 42 |
{ |
{ |
| 43 |
this -> gid = gid; |
this -> gid = gid; |
| 44 |
setValue( &this -> gname, gname ); |
setValue( &this -> gname, gname ); |
| 51 |
if( desc != 0 ){ delete[] desc; } |
if( desc != 0 ){ delete[] desc; } |
| 52 |
} |
} |
| 53 |
|
|
| 54 |
int group::getGID() const{ return gid; } |
groupid_t group::getGID() const{ return gid; } |
| 55 |
const char* group::getGname() const{ return gname; } |
const char* group::getGname() const{ return gname; } |
| 56 |
const char* group::getDesc() const{ return desc; } |
const char* group::getDesc() const{ return desc; } |
| 57 |
int group::getGroupIndexID() const{ return groupIndexID; } |
int group::getGroupIndexID() const{ return groupIndexID; } |
| 58 |
|
|
| 59 |
void group::setGID( int gid ){ this -> gid = gid; } |
void group::setGID( groupid_t gid ){ this -> gid = gid; } |
| 60 |
void group::setGname( const char *gname ){ setValue( &this -> gname, gname ); } |
void group::setGname( const char *gname ){ setValue( &this -> gname, gname ); } |
| 61 |
void group::setDesc( const char *desc ){ setValue( &this -> desc, desc ); } |
void group::setDesc( const char *desc ){ setValue( &this -> desc, desc ); } |
| 62 |
void group::setGroupIndexID( int xid ){ this -> groupIndexID = xid; } |
void group::setGroupIndexID( int xid ){ this -> groupIndexID = xid; } |