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.8 - (hide annotations) (download) (as text)
Tue Mar 15 04:49:40 2005 UTC (19 years ago) by tani
Branch: MAIN
CVS Tags: RELEASE_1_0_0, RELEASE_1_0_1
Changes since 1.7: +21 -1 lines
File MIME type: text/x-chdr
ライセンス文を追加.

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.8 * $Revision: 1.7 $
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     #define XNP_ITEM_TITLE_LEN 255
36     #define XNP_ITEM_KEYWORDS_LEN 1024
37     #define XNP_ITEM_DESCRIPTION_LEN 1024
38     #define XNP_ITEM_DOI_LEN 1024
39    
40     typedef unsigned int itemid_t;
41 aga 1.1
42     class item {
43     private:
44 youi 1.4 itemid_t iid;
45     itemtypeid_t itemTypeID;
46     userid_t contributorUID;
47 aga 1.1 char *title;
48     char *keywords;
49     char *description;
50 youi 1.4 char* doi;
51 aga 1.1 time_t lastUpdateDate;
52     time_t creationDate;
53 youi 1.7 unsigned int publicationYear;
54     unsigned int publicationMonth;// 1 - 12 (0=unspecified)
55     unsigned int publicationMday;// 1 - 31 (0=unspecified)
56 aga 1.1
57     public:
58 aga 1.2 // reserved item_id value
59 youi 1.5 const static itemid_t IID_ROOT = 1;
60     const static itemid_t IID_BINDERS = 2;
61     const static itemid_t IID_PUBLIC = 3;
62 aga 1.2
63     // reserved item_type_id value
64 youi 1.5 const static itemtypeid_t ITID_INDEX = 1;
65     const static itemtypeid_t ITID_BINDER = 2;
66 aga 1.2
67 youi 1.4 //IDs of item operation
68     const static itemop_t OP_READ = 1;
69     const static itemop_t OP_MODIFY = 2;
70     const static itemop_t OP_DELETE = 3;
71    
72 aga 1.1 item();
73     ~item();
74    
75 youi 1.4 userid_t getContributorUID() const;
76     itemid_t getItemID() const;
77     itemtypeid_t getItemTypeID() const;
78     const char* getTitle() const;
79     const char* getKeywords() const;
80     const char* getDescription() const;
81     const char* getDOI() const;
82     time_t getCreationDate() const;
83 aga 1.1 time_t getLastUpdateDate() const;
84 youi 1.7 unsigned int getPublicationYear() const;
85     unsigned int getPublicationMonth() const;
86     unsigned int getPublicationMday() const;
87 youi 1.4
88     void setContributorUID( userid_t );
89     void setItemID( itemid_t );
90     void setItemTypeID( itemtypeid_t );
91     void setTitle( const char* );
92     void setKeywords( const char* );
93     void setDescription( const char* );
94     void setDOI( const char* );
95     void setCreationDate( time_t );
96     void setLastUpdateDate( time_t );
97 youi 1.7 void setPublicationYear( unsigned int );
98     void setPublicationMonth( unsigned int );
99     void setPublicationMday( unsigned int );
100 aga 1.1 };
101 aga 1.2
102     typedef class item item_t;
103 aga 1.1
104     #endif

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