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.4 - (show annotations) (download) (as text)
Fri Jan 14 10:33:53 2005 UTC (19 years, 2 months ago) by aga
Branch: MAIN
Changes since 1.3: +7 -1 lines
File MIME type: text/x-c++src
・int groupIndexIDを追加.

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

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