| 1 |
youi |
1.1 |
/* |
| 2 |
tani |
1.3 |
* -------------------------------------------------------------------------- |
| 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 |
youi |
1.1 |
* |
| 22 |
tani |
1.3 |
* |
| 23 |
aga4096 |
1.4 |
* $Revision: 1.3 $ |
| 24 |
youi |
1.2 |
* $Log: itemtype.h,v $ |
| 25 |
aga4096 |
1.4 |
* Revision 1.3 2005/03/15 04:49:40 tani |
| 26 |
|
|
* 鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申. |
| 27 |
|
|
* |
| 28 |
tani |
1.3 |
* Revision 1.2 2005/01/24 10:51:11 youi |
| 29 |
|
|
* 鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申ID鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申. |
| 30 |
|
|
* |
| 31 |
youi |
1.2 |
* Revision 1.1 2005/01/14 04:28:07 youi |
| 32 |
|
|
* initial version |
| 33 |
|
|
* |
| 34 |
youi |
1.1 |
* |
| 35 |
|
|
*/ |
| 36 |
|
|
#if !defined( ITEMTYPE_H ) |
| 37 |
|
|
#define ITEMTYPE_H |
| 38 |
|
|
|
| 39 |
youi |
1.2 |
#define XNP_ITEMTYPE_NAME_LEN 30 |
| 40 |
|
|
#define XNP_ITEMTYPE_DISPLAY_NAME_LEN 30 |
| 41 |
aga4096 |
1.4 |
#define XNP_ITEMTYPE_VIEWPHP_LEN 255 |
| 42 |
youi |
1.1 |
|
| 43 |
|
|
typedef int itemop_t; |
| 44 |
|
|
typedef unsigned int itemtypeid_t; |
| 45 |
|
|
class itemtype{ |
| 46 |
|
|
public: |
| 47 |
|
|
itemtype(); |
| 48 |
|
|
~itemtype(); |
| 49 |
|
|
|
| 50 |
|
|
itemtypeid_t getItemTypeID() const; |
| 51 |
youi |
1.2 |
unsigned int getModuleID() const; |
| 52 |
|
|
const char* getName() const; |
| 53 |
|
|
const char* getDisplayName() const; |
| 54 |
aga4096 |
1.4 |
const char* getViewphp() const; |
| 55 |
youi |
1.1 |
|
| 56 |
|
|
void setItemTypeID( itemtypeid_t x ); |
| 57 |
youi |
1.2 |
void setModuleID( unsigned int x ); |
| 58 |
|
|
void setName( const char* x ); |
| 59 |
|
|
void setDisplayName( const char* x ); |
| 60 |
aga4096 |
1.4 |
void setViewphp( const char* x ); |
| 61 |
youi |
1.1 |
private: |
| 62 |
|
|
itemtypeid_t item_type_id; |
| 63 |
youi |
1.2 |
unsigned int mid; |
| 64 |
|
|
char name[ XNP_ITEMTYPE_NAME_LEN + 1 ]; |
| 65 |
|
|
char display_name[ XNP_ITEMTYPE_DISPLAY_NAME_LEN + 1 ]; |
| 66 |
aga4096 |
1.4 |
char viewphp[ XNP_ITEMTYPE_VIEWPHP_LEN + 1 ]; |
| 67 |
youi |
1.1 |
}; |
| 68 |
|
|
typedef itemtype itemtype_t; |
| 69 |
|
|
#endif |