Develop and Download Open Source Software

Browse CVS Repository

Contents of /xoonips/AL/group.cc

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


Revision 1.3 - (show annotations) (download) (as text)
Tue Nov 30 02:29:54 2004 UTC (19 years, 4 months ago) by aga
Branch: MAIN
Changes since 1.2: +7 -4 lines
File MIME type: text/x-c++src
・getXxxx()をconstにした.

1 /*
2 * Platform?違???若??膊∞???????????????劫?臂?/span>
3 *
4 * $Revision: 1.2 $
5 * $Log: group.cc,v $
6 * Revision 1.2 2004/11/25 08:58:39 youi
7 * gname, desc???潟?潟?鴻???????水????????????.
8 *
9 * Revision 1.1 2004/11/22 08:25:16 youi
10 * initial version.
11 *
12 *
13 */
14 #include <time.h>
15 #include <string.h>
16
17 #include "group.h"
18 #include "common.h"
19
20 group::group()
21 {
22 // char???ゃ?潟?帥??0?у??????/span>
23 gname = 0;
24 desc = 0;
25
26 gid = 0;
27 setValue( &this -> gname, "" );
28 setValue( &this -> desc, "" );
29 }
30
31 group::group( int gid, const char* gname, const char* desc )
32 {
33 this -> gid = gid;
34 setValue( &this -> gname, gname );
35 setValue( &this -> desc, desc );
36 }
37
38 group::~group()
39 {
40 if( gname != 0 ){ delete[] gname; }
41 if( desc != 0 ){ delete[] desc; }
42 }
43
44 int group::getGID() const{ return gid; }
45 const char* group::getGname() const{ return gname; }
46 const char* group::getDesc() const{ return desc; }
47
48 void group::setGID( int gid ){ this -> gid = gid; }
49 void group::setGname( const char *gname ){ setValue( &this -> gname, gname ); }
50 void group::setDesc( const char *desc ){ setValue( &this -> desc, desc ); }
51

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