Develop and Download Open Source Software

Browse CVS Repository

Diff of /xoonips/AL/item.h

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

revision 1.3 by aga, Sat Jan 15 00:39:16 2005 UTC revision 1.4 by youi, Sat Jan 15 05:32:55 2005 UTC
# Line 9  Line 9 
9  #define ITEM_H  #define ITEM_H
10    
11  #include "common.h"  #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 {  class item {
23  private:  private:
24      int iid;      itemid_t iid;
25      int itemTypeID;      itemtypeid_t itemTypeID;
26      int contributorUID;      userid_t contributorUID;
27      char *title;      char *title;
28      char *keywords;      char *keywords;
29      char *description;      char *description;
30        char* doi;
31      time_t lastUpdateDate;      time_t lastUpdateDate;
32      time_t creationDate;      time_t creationDate;
33    
# Line 31  public: Line 41  public:
41      const static int ITID_INDEX = 1;      const static int ITID_INDEX = 1;
42      const static int ITID_BINDER = 2;      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();      item();
50      ~item();      ~item();
51            
52      int getItemID() const;      userid_t getContributorUID() const;
53      int getItemTypeID() const;      itemid_t getItemID() const;
54      int getContributorUID() const;      itemtypeid_t getItemTypeID() const;
55      const char *getTitle() const;      const char* getTitle() const;
56      const char *getKeywords() const;      const char* getKeywords() const;
57      const char *getDescription() const;      const char* getDescription() const;
58      time_t getLastUpdateDate() const;      const char* getDOI() const;
59      time_t getCreationDate() const;      time_t getCreationDate() const;
60            time_t getLastUpdateDate() const;
61        
62      void setItemID(int);      void setContributorUID( userid_t );
63      void setItemTypeID(int);      void setItemID( itemid_t );
64      void setContributorUID(int);      void setItemTypeID( itemtypeid_t );
65      void setTitle(const char*);      void setTitle( const char* );
66      void setKeywords(const char*);      void setKeywords( const char* );
67      void setDescription(const char*);      void setDescription( const char* );
68      void setLastUpdateDate(time_t);      void setDOI( const char* );
69      void setCreationDate(time_t);      void setCreationDate( time_t );
70        void setLastUpdateDate( time_t );
71  };  };
72    
73  typedef class item item_t;  typedef class item item_t;

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

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