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.7 - (show annotations) (download) (as text)
Fri Mar 11 20:00:29 2005 UTC (19 years, 1 month ago) by orrisroot
Branch: MAIN
Changes since 1.6: +2 -1 lines
File MIME type: text/x-c++src
- Autotoolized XooNiPs Abstract Layer projects.
- changelog.cc commonal.cc index.cc item.cc :
    included <time.h> header file for undefined data type 'time_t' error.

1 /*
2 *
3 * アイテム(BasicInformation)管理用クラスの定義
4 *
5 * $Revision: 1.6 $
6 */
7
8 #include <stdlib.h>
9 #include <time.h>
10
11 #include "item.h"
12 #include "common.h"
13
14 item::item()
15 {
16 iid = 0;
17 itemTypeID = 0;
18 contributorUID = 0;
19 title = 0; setValue( &title, "" );
20 keywords = 0; setValue( &keywords, "" );
21 description = 0; setValue( &description, "" );
22 doi = 0; setValue( &doi, "" );
23 lastUpdateDate = 0;
24 creationDate = 0;
25 }
26
27 item::~item()
28 {
29 if( title != 0 ) delete[] title;
30 if( keywords != 0 ) delete[] keywords;
31 if( description != 0 ) delete[] description;
32 if( doi != 0 ) delete[] doi;
33 }
34
35 itemid_t item::getItemID() const { return iid; }
36 itemtypeid_t item::getItemTypeID() const { return itemTypeID; }
37 userid_t item::getContributorUID() const { return contributorUID; }
38 const char *item::getTitle() const { return title; }
39 const char *item::getKeywords() const { return keywords; }
40 const char *item::getDescription() const { return description; }
41 const char* item::getDOI() const { return doi; }
42 time_t item::getLastUpdateDate() const { return lastUpdateDate; }
43 time_t item::getCreationDate() const { return creationDate; }
44 unsigned int item::getPublicationYear() const { return publicationYear; }
45 unsigned int item::getPublicationMonth() const { return publicationMonth; }
46 unsigned int item::getPublicationMday() const { return publicationMday; }
47
48 void item::setItemID(itemid_t iid_){ iid = iid_; }
49 void item::setItemTypeID(itemtypeid_t itemTypeID_){ itemTypeID = itemTypeID_; }
50 void item::setContributorUID(userid_t contributorUID_){ contributorUID = contributorUID_; }
51 void item::setTitle(const char* title_){ setValue( &this -> title, title_ ); }
52 void item::setKeywords(const char* keywords_){ setValue( &this -> keywords, keywords_ ); }
53 void item::setDescription(const char* description_){ setValue( &this -> description, description_ ); }
54 void item::setDOI( const char* doi_ ){ setValue( &this -> doi, doi_ ); }
55 void item::setLastUpdateDate(time_t lastUpdateDate_){ lastUpdateDate = lastUpdateDate_; }
56 void item::setCreationDate(time_t creationDate_){ creationDate = creationDate_; }
57 void item::setPublicationYear(unsigned int publicationYear_){ publicationYear = publicationYear_; }
58 void item::setPublicationMonth(unsigned int publicationMonth_){ publicationMonth = publicationMonth_; }
59 void item::setPublicationMday(unsigned int publicationMday_){ publicationMday = publicationMday_; }
60

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