Develop and Download Open Source Software

Browse CVS Repository

Contents of /xoonips/AL/item.cc

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: +11 -7 lines
File MIME type: text/x-c++src
itemid_t, itemtypeid_t, userid_tを使った定義.
DOIを追加.

1 /*
2 *
3 * ?≪?ゃ????(BasicInformation)膊∞?????????鴻???臂?/span>
4 *
5 * $Revision: 1.3 $
6 */
7
8 #include <stdlib.h>
9
10 #include "item.h"
11 #include "common.h"
12
13 item::item()
14 {
15 iid = 0;
16 itemTypeID = 0;
17 contributorUID = 0;
18 title = 0; setValue( &title, "" );
19 keywords = 0; setValue( &keywords, "" );
20 description = 0; setValue( &description, "" );
21 doi = 0; setValue( &doi, "" );
22 lastUpdateDate = 0;
23 creationDate = 0;
24 }
25
26 item::~item()
27 {
28 if( title != 0 ) delete[] title;
29 if( keywords != 0 ) delete[] keywords;
30 if( description != 0 ) delete[] description;
31 if( doi != 0 ) delete[] doi;
32 }
33
34 itemid_t item::getItemID() const { return iid; }
35 itemtypeid_t item::getItemTypeID() const { return itemTypeID; }
36 userid_t item::getContributorUID() const { return contributorUID; }
37 const char *item::getTitle() const { return title; }
38 const char *item::getKeywords() const { return keywords; }
39 const char *item::getDescription() const { return description; }
40 const char* item::getDOI() const { return doi; }
41 time_t item::getLastUpdateDate() const { return lastUpdateDate; }
42 time_t item::getCreationDate() const { return creationDate; }
43
44 void item::setItemID(itemid_t iid_){ iid = iid_; }
45 void item::setItemTypeID(itemtypeid_t itemTypeID_){ itemTypeID = itemTypeID_; }
46 void item::setContributorUID(userid_t contributorUID_){ contributorUID = contributorUID_; }
47 void item::setTitle(const char* title_){ setValue( &this -> title, title_ ); }
48 void item::setKeywords(const char* keywords_){ setValue( &this -> keywords, keywords_ ); }
49 void item::setDescription(const char* description_){ setValue( &this -> description, description_ ); }
50 void item::setDOI( const char* doi_ ){ setValue( &this -> doi, doi_ ); }
51 void item::setLastUpdateDate(time_t lastUpdateDate_){ lastUpdateDate = lastUpdateDate_; }
52 void item::setCreationDate(time_t creationDate_){ creationDate = creationDate_; }
53

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