Develop and Download Open Source Software

Browse CVS Repository

Contents of /xoonips/AL/item.h

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.11 - (show annotations) (download) (as text)
Fri Apr 7 08:18:50 2006 UTC (17 years, 11 months ago) by tani
Branch: MAIN
CVS Tags: AL_PORTING, tag20070307current, tag20061130, merge_to_20060605, tag20070307, HEAD
Branch point for: XOONIPS_STABLE_32, XOONIPS_STABLE_3
Changes since 1.10: +2 -2 lines
File MIME type: text/x-chdr
XNP_ITEM_DOI_LENのサイズをBLOBに合わせて拡張.

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 *
23 * 鐃緒申鐃緒申鐃緒申鐃緒申(BasicInformation)鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申
24 *
25 * $Revision: 1.10 $
26 */
27
28 #if !defined( ITEM_H )
29 #define ITEM_H
30
31 #include "common.h"
32 #include "account.h"
33 #include "itemtype.h"
34
35 #define XNP_ITEM_LANG_LEN 3
36 #define XNP_ITEM_TITLE_LEN 65535
37 #define XNP_ITEM_KEYWORDS_LEN 1024
38 #define XNP_ITEM_DESCRIPTION_LEN 1024
39 #define XNP_ITEM_DOI_LEN 65535
40
41 typedef unsigned int itemid_t;
42
43 class item {
44 private:
45 itemid_t iid;
46 itemtypeid_t itemTypeID;
47 userid_t contributorUID;
48 char *title;
49 char *keywords;
50 char *description;
51 char* doi;
52 time_t lastUpdateDate;
53 time_t creationDate;
54 unsigned int publicationYear;
55 unsigned int publicationMonth;// 1 - 12 (0=unspecified)
56 unsigned int publicationMday;// 1 - 31 (0=unspecified)
57 char lang[ XNP_ITEM_LANG_LEN + 1 ]; //default value 'eng'
58
59 public:
60 // reserved item_id value
61 const static itemid_t IID_ROOT = 1;
62 const static itemid_t IID_BINDERS = 2;
63 const static itemid_t IID_PUBLIC = 3;
64
65 // reserved item_type_id value
66 const static itemtypeid_t ITID_INDEX = 1;
67 const static itemtypeid_t ITID_BINDER = 2;
68
69 //IDs of item operation
70 const static itemop_t OP_READ = 1;
71 const static itemop_t OP_MODIFY = 2;
72 const static itemop_t OP_DELETE = 3;
73
74 item();
75 ~item();
76
77 userid_t getContributorUID() const;
78 itemid_t getItemID() const;
79 itemtypeid_t getItemTypeID() const;
80 const char* getTitle() const;
81 const char* getKeywords() const;
82 const char* getDescription() const;
83 const char* getDOI() const;
84 time_t getCreationDate() const;
85 time_t getLastUpdateDate() const;
86 unsigned int getPublicationYear() const;
87 unsigned int getPublicationMonth() const;
88 unsigned int getPublicationMday() const;
89 const char* getLang() const;
90
91 void setContributorUID( userid_t );
92 void setItemID( itemid_t );
93 void setItemTypeID( itemtypeid_t );
94 void setTitle( const char* );
95 void setKeywords( const char* );
96 void setDescription( const char* );
97 void setDOI( const char* );
98 void setCreationDate( time_t );
99 void setLastUpdateDate( time_t );
100 void setPublicationYear( unsigned int );
101 void setPublicationMonth( unsigned int );
102 void setPublicationMday( unsigned int );
103 void setLang( const char* );
104 };
105
106 typedef class item item_t;
107
108 #endif

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