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

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