| 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 |
* $Revision: 1.1 $ |
| 23 |
*/ |
| 24 |
|
| 25 |
#include "amazonbook.h" |
| 26 |
#include "common.h" |
| 27 |
|
| 28 |
amazonbook::amazonbook() |
| 29 |
{ |
| 30 |
title=0; setValue( &title, "" ); |
| 31 |
author=0; setValue( &author, "" ); |
| 32 |
publisher=0; setValue( &publisher, "" ); |
| 33 |
isbn=0; setValue( &isbn, "" ); |
| 34 |
url=0; setValue( &url, "" ); |
| 35 |
yearOfPublication = 0; |
| 36 |
} |
| 37 |
|
| 38 |
amazonbook::~amazonbook() |
| 39 |
{ |
| 40 |
delete[] title; |
| 41 |
delete[] author; |
| 42 |
delete[] publisher; |
| 43 |
delete[] isbn; |
| 44 |
delete[] url; |
| 45 |
} |
| 46 |
|
| 47 |
const char* amazonbook::getTitle( ) const { return title; } |
| 48 |
const char* amazonbook::getAuthor( ) const { return author; } |
| 49 |
const char* amazonbook::getPublisher( ) const { return publisher; } |
| 50 |
const char* amazonbook::getISBN( ) const { return isbn; } |
| 51 |
const char* amazonbook::getURL( ) const { return url; } |
| 52 |
int amazonbook::getYearOfPublication( ) const { return yearOfPublication; } |
| 53 |
|
| 54 |
void amazonbook::setTitle( const char* x ){ setValue( &title, x ); } |
| 55 |
void amazonbook::setAuthor( const char* x ){ setValue( &author, x ); } |
| 56 |
void amazonbook::setPublisher( const char* x ){ setValue( &publisher, x ); } |
| 57 |
void amazonbook::setISBN( const char* x ){ setValue( &isbn, x ); } |
| 58 |
void amazonbook::setURL( const char* x ){ setValue( &url, x ); } |
| 59 |
void amazonbook::setYearOfPublication( int x ){ this -> yearOfPublication = x; } |