00001 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */ 00002 /* 00003 * frpuniverse 00004 * Copyright (C) Peter L. Berghold 2008 <peter@berghold.net> 00005 * 00006 * frpuniverse is free software. 00007 * 00008 * You may redistribute it and/or modify it under the terms of the 00009 * GNU General Public License, as published by the Free Software 00010 * Foundation; either version 2 of the License, or (at your option) 00011 * any later version. 00012 * 00013 * frpuniverse is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00016 * See the GNU General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU General Public License 00019 * along with frpuniverse. If not, write to: 00020 * The Free Software Foundation, Inc., 00021 * 51 Franklin Street, Fifth Floor 00022 * Boston, MA 02110-1301, USA. 00023 */ 00024 00025 #ifndef _BOOK2_DRIVE_OBJECT_HPP_ 00026 #define _BOOK2_DRIVE_OBJECT_HPP_ 00027 00028 typedef struct driveRecord { 00029 char model; 00030 double mass; 00031 double cost; 00032 } driveRecord; 00033 00034 00039 class book2DriveObject 00040 { 00041 public: 00045 book2DriveObject(); 00046 00052 char getModel(); 00053 00061 virtual void setModel(char m); 00062 00068 double getMass(); 00069 00075 void setMass(double m); 00076 00082 double getCost(); 00083 00089 void setCost(double c); 00090 00091 protected: 00092 00093 private: 00094 char model; 00095 double mass; 00096 double cost; 00097 }; 00098 00099 #endif // _BOOK2_DRIVE_OBJECT_HPP_