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.4 - (show annotations) (download) (as text)
Sat Jan 15 05:32:55 2005 UTC (19 years, 2 months ago) by youi
Branch: MAIN
CVS Tags: demo20050128
Changes since 1.3: +37 -21 lines
File MIME type: text/x-chdr
itemid_t, itemtypeid_t, userid_tを使った定義.
DOIを追加.

1 /*
2 *
3 * ?≪?ゃ????(BasicInformation)膊∞?????????鴻???荐?
4 *
5 * $Revision: 1.3 $
6 */
7
8 #if !defined( ITEM_H )
9 #define ITEM_H
10
11 #include "common.h"
12 #include "account.h"
13 #include "itemtype.h"
14
15 #define XNP_ITEM_TITLE_LEN 255
16 #define XNP_ITEM_KEYWORDS_LEN 1024
17 #define XNP_ITEM_DESCRIPTION_LEN 1024
18 #define XNP_ITEM_DOI_LEN 1024
19
20 typedef unsigned int itemid_t;
21
22 class item {
23 private:
24 itemid_t iid;
25 itemtypeid_t itemTypeID;
26 userid_t contributorUID;
27 char *title;
28 char *keywords;
29 char *description;
30 char* doi;
31 time_t lastUpdateDate;
32 time_t creationDate;
33
34 public:
35 // reserved item_id value
36 const static int IID_ROOT = 1;
37 const static int IID_BINDERS = 2;
38 const static int IID_PUBLIC = 3;
39
40 // reserved item_type_id value
41 const static int ITID_INDEX = 1;
42 const static int ITID_BINDER = 2;
43
44 //IDs of item operation
45 const static itemop_t OP_READ = 1;
46 const static itemop_t OP_MODIFY = 2;
47 const static itemop_t OP_DELETE = 3;
48
49 item();
50 ~item();
51
52 userid_t getContributorUID() const;
53 itemid_t getItemID() const;
54 itemtypeid_t getItemTypeID() const;
55 const char* getTitle() const;
56 const char* getKeywords() const;
57 const char* getDescription() const;
58 const char* getDOI() const;
59 time_t getCreationDate() const;
60 time_t getLastUpdateDate() const;
61
62 void setContributorUID( userid_t );
63 void setItemID( itemid_t );
64 void setItemTypeID( itemtypeid_t );
65 void setTitle( const char* );
66 void setKeywords( const char* );
67 void setDescription( const char* );
68 void setDOI( const char* );
69 void setCreationDate( time_t );
70 void setLastUpdateDate( time_t );
71 };
72
73 typedef class item item_t;
74
75 #endif

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