Develop and Download Open Source Software

Browse CVS Repository

Annotation of /xoonips/AL/item.h

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


Revision 1.11 - (hide annotations) (download) (as text)
Fri Apr 7 08:18:50 2006 UTC (18 years 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 aga 1.1 /*
2 tani 1.8 * --------------------------------------------------------------------------
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 aga 1.1 *
23     * 鐃緒申鐃緒申鐃緒申鐃緒申(BasicInformation)鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申
24     *
25 tani 1.11 * $Revision: 1.10 $
26 aga 1.1 */
27    
28     #if !defined( ITEM_H )
29     #define ITEM_H
30    
31     #include "common.h"
32 youi 1.4 #include "account.h"
33     #include "itemtype.h"
34    
35 tani 1.9 #define XNP_ITEM_LANG_LEN 3
36 tani 1.10 #define XNP_ITEM_TITLE_LEN 65535
37 youi 1.4 #define XNP_ITEM_KEYWORDS_LEN 1024
38     #define XNP_ITEM_DESCRIPTION_LEN 1024
39 tani 1.11 #define XNP_ITEM_DOI_LEN 65535
40 youi 1.4
41     typedef unsigned int itemid_t;
42 aga 1.1
43     class item {
44     private:
45 youi 1.4 itemid_t iid;
46     itemtypeid_t itemTypeID;
47     userid_t contributorUID;
48 aga 1.1 char *title;
49     char *keywords;
50     char *description;
51 youi 1.4 char* doi;
52 aga 1.1 time_t lastUpdateDate;
53     time_t creationDate;
54 youi 1.7 unsigned int publicationYear;
55     unsigned int publicationMonth;// 1 - 12 (0=unspecified)
56     unsigned int publicationMday;// 1 - 31 (0=unspecified)
57 tani 1.9 char lang[ XNP_ITEM_LANG_LEN + 1 ]; //default value 'eng'
58 aga 1.1
59     public:
60 aga 1.2 // reserved item_id value
61 youi 1.5 const static itemid_t IID_ROOT = 1;
62     const static itemid_t IID_BINDERS = 2;
63     const static itemid_t IID_PUBLIC = 3;
64 aga 1.2
65     // reserved item_type_id value
66 youi 1.5 const static itemtypeid_t ITID_INDEX = 1;
67     const static itemtypeid_t ITID_BINDER = 2;
68 aga 1.2
69 youi 1.4 //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 aga 1.1 item();
75     ~item();
76    
77 youi 1.4 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 aga 1.1 time_t getLastUpdateDate() const;
86 youi 1.7 unsigned int getPublicationYear() const;
87     unsigned int getPublicationMonth() const;
88     unsigned int getPublicationMday() const;
89 tani 1.9 const char* getLang() const;
90 youi 1.4
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 youi 1.7 void setPublicationYear( unsigned int );
101     void setPublicationMonth( unsigned int );
102     void setPublicationMday( unsigned int );
103 tani 1.9 void setLang( const char* );
104 aga 1.1 };
105 aga 1.2
106     typedef class item item_t;
107 aga 1.1
108     #endif

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