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

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