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.6 - (show annotations) (download) (as text)
Fri Feb 25 07:00:37 2005 UTC (19 years, 1 month ago) by tani
Branch: MAIN
Changes since 1.5: +10 -1 lines
File MIME type: text/x-c++src
item_number_limit, index_number_limit, item_storage_limitを追加.

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

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