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.6 - (show annotations) (download) (as text)
Wed Feb 16 07:39:05 2005 UTC (19 years, 1 month ago) by youi
Branch: MAIN
Changes since 1.5: +4 -1 lines
File MIME type: text/x-chdr
setPublicationDate, getPublicationDateを追加した.

1 /*
2 *
3 * ?≪?ゃ????(BasicInformation)膊∞?????????鴻???荐?
4 *
5 * $Revision: 1.5 $
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 time_t publicationDate;
34
35 public:
36 // reserved item_id value
37 const static itemid_t IID_ROOT = 1;
38 const static itemid_t IID_BINDERS = 2;
39 const static itemid_t IID_PUBLIC = 3;
40
41 // reserved item_type_id value
42 const static itemtypeid_t ITID_INDEX = 1;
43 const static itemtypeid_t ITID_BINDER = 2;
44
45 //IDs of item operation
46 const static itemop_t OP_READ = 1;
47 const static itemop_t OP_MODIFY = 2;
48 const static itemop_t OP_DELETE = 3;
49
50 item();
51 ~item();
52
53 userid_t getContributorUID() const;
54 itemid_t getItemID() const;
55 itemtypeid_t getItemTypeID() const;
56 const char* getTitle() const;
57 const char* getKeywords() const;
58 const char* getDescription() const;
59 const char* getDOI() const;
60 time_t getCreationDate() const;
61 time_t getLastUpdateDate() const;
62 time_t getPublicationDate() const;
63
64 void setContributorUID( userid_t );
65 void setItemID( itemid_t );
66 void setItemTypeID( itemtypeid_t );
67 void setTitle( const char* );
68 void setKeywords( const char* );
69 void setDescription( const char* );
70 void setDOI( const char* );
71 void setCreationDate( time_t );
72 void setLastUpdateDate( time_t );
73 void setPublicationDate( time_t );
74 };
75
76 typedef class item item_t;
77
78 #endif

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