Develop and Download Open Source Software

Browse CVS Repository

Contents of /xoonips/AL/itembasic.h

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


Revision 1.2 - (show annotations) (download) (as text)
Wed Jan 19 10:29:10 2005 UTC (19 years, 2 months ago) by youi
Branch: MAIN
CVS Tags: MergePnt_20051220, merge_to_20060605, XOONIPS_RC1, RELEASE_1_0_1, AL_PORTING, HEAD
Branch point for: XOONIPS_STABLE, XOONIPS_STABLE_3
Changes since 1.1: +5 -2 lines
File MIME type: text/x-chdr
FILE REMOVED
*** empty log message ***

1 /*
2 *
3 * $Revision: 1.1 $
4 * $Log: itembasic.h,v $
5 * Revision 1.1 2005/01/14 04:28:07 youi
6 * initial version
7 *
8 *
9 */
10
11 #if !defined( ITEMBASIC_H )
12 #define ITEMBASIC_H
13
14 #include "itemtype.h"
15
16 #define XNP_ITEMBASIC_TITLE_LEN 255
17
18 typedef int itemop_t;
19 typedef unsigned int itemid_t;
20 class itembasic{
21 public:
22 itembasic();
23 ~itembasic();
24
25 itemid_t getItemID() const;
26 itemtypeid_t getItemTypeID() const;
27 const char* getTitle() const;
28 const char* getKeywords() const;
29 const char* getDescription() const;
30 const char* getDOI() const;
31 time_t getCreationDate() const;
32 time_t getLastModifiedDate() const;
33
34 void setItemID( itemid_t x );
35 void setItemTypeID( itemtypeid_t x );
36 void setTitle( const char* x );
37 void setKeywords( const char* x );
38 void setDescription( const char* x );
39 void setDOI( const char* x );
40 void setCreationDate( time_t x );
41 void setLastModifiedDate( time_t x );
42
43 private:
44 itemid_t item_id;
45 itemtypeid_t item_type_id;
46 char title[ XNP_ITEMBASIC_TITLE_LEN + 1 ];
47 char* keywords;
48 char* description;
49 char* doi;
50 unsigned int creation_date;
51 unsigned int last_update_date;
52
53 //IDs of item operation
54 const static itemop_t OP_READ = 1;
55 const static itemop_t OP_MODIFY = 2;
56 const static itemop_t OP_DELETE = 3;
57 };
58 typedef itembasic itembasic_t;
59
60 #endif

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