Develop and Download Open Source Software

Browse CVS Repository

Annotation of /xoonips/AL/group.cc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download) (as text)
Mon Nov 22 08:25:16 2004 UTC (19 years, 4 months ago) by youi
Branch: MAIN
File MIME type: text/x-c++src
initial version.

1 youi 1.1 /*
2     * Platformグループ管理のためのクラス定義
3     *
4     * $Revision$
5     * $Log$
6     *
7     */
8     #include <time.h>
9     #include <string.h>
10    
11     #include "group.h"
12     #include "common.h"
13    
14     group::group()
15     {
16     gid = 0;
17     setValue( &this -> gname, "" );
18     setValue( &this -> desc, "" );
19     }
20    
21     group::group( int gid, const char* gname, const char* desc )
22     {
23     this -> gid = gid;
24     setValue( &this -> gname, gname );
25     setValue( &this -> desc, desc );
26     }
27    
28     group::~group()
29     {
30     if( gname != 0 ){ delete[] gname; }
31     if( desc != 0 ){ delete[] desc; }
32     }
33    
34     int group::getGID(){ return gid; }
35     const char* group::getGname(){ return gname; }
36     const char* group::getDesc(){ return desc; }
37    
38     void group::setGID( int gid ){ this -> gid = gid; }
39     void group::setGname( const char *gname ){ setValue( &this -> gname, gname ); }
40     void group::setDesc( const char *desc ){ setValue( &this -> desc, desc ); }
41    

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26