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.5 - (show annotations) (download) (as text)
Sat Jan 15 05:31:43 2005 UTC (19 years, 2 months ago) by youi
Branch: MAIN
CVS Tags: mv_to_sourceforge_20050217, demo20050128
Changes since 1.4: +7 -4 lines
File MIME type: text/x-c++src
groupid_tを使って定義.

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

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