Develop and Download Open Source Software

Browse CVS Repository

Contents of /xoonips/AL/amazonbook.cc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download) (as text)
Tue Mar 15 04:49:40 2005 UTC (18 years, 11 months ago) by tani
Branch: MAIN
CVS Tags: AL_PORTING, MergePnt_20051116, REL20051226, XOONIPS_RC1, REL20060323, tag20060615, tag20070307current, tag20061115, MergePnt_20051220, tag20061130, merge_to_20060605, tag20070307, REL20060213, RELENG_2_0_0a_RELEASE, RELEASE_1_0_0, RELEASE_1_0_1, tag20060622, merge_to_20060411, HEAD
Branch point for: XOONIPS_STABLE_32, XOONIPS_STABLE, XOONIPS_STABLE_3, XOONIPS_STABLE_2
Changes since 1.1: +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 * $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; }

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