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.8 - (show annotations) (download) (as text)
Tue Mar 15 04:49:40 2005 UTC (19 years ago) by tani
Branch: MAIN
CVS Tags: RELEASE_1_0_0, RELEASE_1_0_1
Changes since 1.7: +21 -1 lines
File MIME type: text/x-c++src
ライセンス文を追加.

1 /*
2 * --------------------------------------------------------------------------
3 * XooNiPs Xoops modules for Neuroinformatics Platforms
4 * Copyright (C) 2005 RIKEN, Japan. All rights reserved.
5 * http://sourceforge.jp/projects/xoonips/
6 * --------------------------------------------------------------------------
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 * --------------------------------------------------------------------------
21 *
22 *
23 * 鐃緒申鐃緒申鐃緒申鐃緒申(BasicInformation)鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申
24 *
25 * $Revision: 1.7 $
26 */
27
28 #include <stdlib.h>
29 #include <time.h>
30
31 #include "item.h"
32 #include "common.h"
33
34 item::item()
35 {
36 iid = 0;
37 itemTypeID = 0;
38 contributorUID = 0;
39 title = 0; setValue( &title, "" );
40 keywords = 0; setValue( &keywords, "" );
41 description = 0; setValue( &description, "" );
42 doi = 0; setValue( &doi, "" );
43 lastUpdateDate = 0;
44 creationDate = 0;
45 }
46
47 item::~item()
48 {
49 if( title != 0 ) delete[] title;
50 if( keywords != 0 ) delete[] keywords;
51 if( description != 0 ) delete[] description;
52 if( doi != 0 ) delete[] doi;
53 }
54
55 itemid_t item::getItemID() const { return iid; }
56 itemtypeid_t item::getItemTypeID() const { return itemTypeID; }
57 userid_t item::getContributorUID() const { return contributorUID; }
58 const char *item::getTitle() const { return title; }
59 const char *item::getKeywords() const { return keywords; }
60 const char *item::getDescription() const { return description; }
61 const char* item::getDOI() const { return doi; }
62 time_t item::getLastUpdateDate() const { return lastUpdateDate; }
63 time_t item::getCreationDate() const { return creationDate; }
64 unsigned int item::getPublicationYear() const { return publicationYear; }
65 unsigned int item::getPublicationMonth() const { return publicationMonth; }
66 unsigned int item::getPublicationMday() const { return publicationMday; }
67
68 void item::setItemID(itemid_t iid_){ iid = iid_; }
69 void item::setItemTypeID(itemtypeid_t itemTypeID_){ itemTypeID = itemTypeID_; }
70 void item::setContributorUID(userid_t contributorUID_){ contributorUID = contributorUID_; }
71 void item::setTitle(const char* title_){ setValue( &this -> title, title_ ); }
72 void item::setKeywords(const char* keywords_){ setValue( &this -> keywords, keywords_ ); }
73 void item::setDescription(const char* description_){ setValue( &this -> description, description_ ); }
74 void item::setDOI( const char* doi_ ){ setValue( &this -> doi, doi_ ); }
75 void item::setLastUpdateDate(time_t lastUpdateDate_){ lastUpdateDate = lastUpdateDate_; }
76 void item::setCreationDate(time_t creationDate_){ creationDate = creationDate_; }
77 void item::setPublicationYear(unsigned int publicationYear_){ publicationYear = publicationYear_; }
78 void item::setPublicationMonth(unsigned int publicationMonth_){ publicationMonth = publicationMonth_; }
79 void item::setPublicationMday(unsigned int publicationMday_){ publicationMday = publicationMday_; }
80

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