| 1 |
/* |
| 2 |
* -------------------------------------------------------------------------- |
| 3 |
* XooNiPs Xoops modules for Neuroinformatics Platforms |
| 4 |
* Copyright (C) 2005 RIKEN, Japan. All rights reserved. |
| 5 |
* http://sourceforge.jp/projects/xoonips/ |
| 6 |
* -------------------------------------------------------------------------- |
| 7 |
* This program is free software; you can redistribute it and/or |
| 8 |
* modify it under the terms of the GNU General Public License |
| 9 |
* as published by the Free Software Foundation; either version 2 |
| 10 |
* of the License, or (at your option) any later version. |
| 11 |
* |
| 12 |
* This program is distributed in the hope that it will be useful, |
| 13 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 |
* GNU General Public License for more details. |
| 16 |
* |
| 17 |
* You should have received a copy of the GNU General Public License |
| 18 |
* along with this program; if not, write to the Free Software |
| 19 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 20 |
* -------------------------------------------------------------------------- |
| 21 |
* |
| 22 |
* Platform鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申 |
| 23 |
* |
| 24 |
* $Revision: 1.8 $ |
| 25 |
* $Log: group.h,v $ |
| 26 |
* Revision 1.8 2005/02/25 07:00:37 tani |
| 27 |
* item_number_limit, index_number_limit, item_storage_limit鐃緒申鐃緒申鐃緒申. |
| 28 |
* |
| 29 |
* Revision 1.7 2005/02/03 12:03:10 youi |
| 30 |
* 鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申. |
| 31 |
* |
| 32 |
* Revision 1.6 2005/01/22 00:18:33 aga |
| 33 |
* 鐃緒申indexID 鐃緒申 unsigned 鐃緒申鐃緒申鐃緒申. |
| 34 |
* |
| 35 |
* Revision 1.5 2005/01/15 05:31:43 youi |
| 36 |
* groupid_t鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申. |
| 37 |
* |
| 38 |
* Revision 1.4 2005/01/14 10:33:53 aga |
| 39 |
* 鐃緒申int groupIndexID鐃緒申鐃緒申鐃緒申. |
| 40 |
* |
| 41 |
* Revision 1.3 2004/11/30 02:29:54 aga |
| 42 |
* 鐃緒申getXxxx()鐃緒申const鐃緒申鐃緒申鐃緒申. |
| 43 |
* |
| 44 |
* Revision 1.2 2004/11/25 04:12:14 youi |
| 45 |
* typedef鐃緒申鐃緒申鐃緒申. |
| 46 |
* |
| 47 |
* Revision 1.1 2004/11/22 08:25:16 youi |
| 48 |
* initial version. |
| 49 |
* |
| 50 |
* |
| 51 |
*/ |
| 52 |
#if !defined( GROUP_H ) |
| 53 |
#define GROUP_H |
| 54 |
|
| 55 |
typedef unsigned int groupid_t; |
| 56 |
class group{ |
| 57 |
private: |
| 58 |
groupid_t gid; //鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申 |
| 59 |
char* gname; //鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申 |
| 60 |
char* desc; //鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申 |
| 61 |
unsigned int groupIndexID; |
| 62 |
int itemNumberLimit; |
| 63 |
int indexNumberLimit; |
| 64 |
double itemStorageLimit; |
| 65 |
public: |
| 66 |
const static groupid_t GID_DEFAULT = 1; |
| 67 |
|
| 68 |
group(); |
| 69 |
group( groupid_t gid, const char* gname, const char* desc ); |
| 70 |
~group(); |
| 71 |
|
| 72 |
groupid_t getGID() const; |
| 73 |
const char *getGname() const; |
| 74 |
const char *getDesc() const; |
| 75 |
int getGroupIndexID() const; |
| 76 |
int getItemNumberLimit( ) const; |
| 77 |
int getIndexNumberLimit( ) const; |
| 78 |
double getItemStorageLimit( ) const; |
| 79 |
|
| 80 |
void setGID( groupid_t gid ); |
| 81 |
void setGname( const char *gname ); |
| 82 |
void setDesc( const char *desc ); |
| 83 |
void setGroupIndexID( int xid ); |
| 84 |
void setItemNumberLimit( int ); |
| 85 |
void setIndexNumberLimit( int ); |
| 86 |
void setItemStorageLimit( double ); |
| 87 |
}; |
| 88 |
|
| 89 |
typedef group group_t; |
| 90 |
|
| 91 |
#endif |