Browse CVS Repository
Contents of /xoonips/AL/amazonbook.cc
Parent Directory
| Revision Log
| Revision Graph
Revision 1.1 -
( show annotations)
( download)
( as text)
Sat Jan 22 02:41:15 2005 UTC
(19 years, 2 months ago)
by aga
Branch: MAIN
CVS Tags: mv_to_sourceforge_20050217, demo20050128
File MIME type: text/x-c++src
・amazon補完を作成.
| 1 |
/* |
| 2 |
* $Revision$ |
| 3 |
*/ |
| 4 |
|
| 5 |
#include "amazonbook.h" |
| 6 |
#include "common.h" |
| 7 |
|
| 8 |
amazonbook::amazonbook() |
| 9 |
{ |
| 10 |
title=0; setValue( &title, "" ); |
| 11 |
author=0; setValue( &author, "" ); |
| 12 |
publisher=0; setValue( &publisher, "" ); |
| 13 |
isbn=0; setValue( &isbn, "" ); |
| 14 |
url=0; setValue( &url, "" ); |
| 15 |
yearOfPublication = 0; |
| 16 |
} |
| 17 |
|
| 18 |
amazonbook::~amazonbook() |
| 19 |
{ |
| 20 |
delete[] title; |
| 21 |
delete[] author; |
| 22 |
delete[] publisher; |
| 23 |
delete[] isbn; |
| 24 |
delete[] url; |
| 25 |
} |
| 26 |
|
| 27 |
const char* amazonbook::getTitle( ) const { return title; } |
| 28 |
const char* amazonbook::getAuthor( ) const { return author; } |
| 29 |
const char* amazonbook::getPublisher( ) const { return publisher; } |
| 30 |
const char* amazonbook::getISBN( ) const { return isbn; } |
| 31 |
const char* amazonbook::getURL( ) const { return url; } |
| 32 |
int amazonbook::getYearOfPublication( ) const { return yearOfPublication; } |
| 33 |
|
| 34 |
void amazonbook::setTitle( const char* x ){ setValue( &title, x ); } |
| 35 |
void amazonbook::setAuthor( const char* x ){ setValue( &author, x ); } |
| 36 |
void amazonbook::setPublisher( const char* x ){ setValue( &publisher, x ); } |
| 37 |
void amazonbook::setISBN( const char* x ){ setValue( &isbn, x ); } |
| 38 |
void amazonbook::setURL( const char* x ){ setValue( &url, x ); } |
| 39 |
void amazonbook::setYearOfPublication( int x ){ this -> yearOfPublication = x; } |
| |