[Gcblue-commits] gcb_wx/include/database tcSonobuoyDBObject.h,NONE,1.1 tcDatabaseObject.h,1.20,1.21
Status: Alpha
Brought to you by:
ddcforge
|
From: Dewitt C. <ddc...@us...> - 2005-03-05 22:38:30
|
Update of /cvsroot/gcblue/gcb_wx/include/database In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21843/include/database Modified Files: tcDatabaseObject.h Added Files: tcSonobuoyDBObject.h Log Message: Added sonobuoy model. 2525 view now uses small symbol for ballistic and sonobuoy instead of unknown symbol Index: tcDatabaseObject.h =================================================================== RCS file: /cvsroot/gcblue/gcb_wx/include/database/tcDatabaseObject.h,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** tcDatabaseObject.h 31 Jan 2005 01:32:35 -0000 1.20 --- tcDatabaseObject.h 5 Mar 2005 22:37:50 -0000 1.21 *************** *** 68,71 **** --- 68,72 ---- #define PTYPE_SUBMARINE 0x0081 #define PTYPE_TORPEDO 0x0082 + #define PTYPE_SONOBUOY 0x0084 #define PTYPE_FIXED 0x0100 #define PTYPE_BALLISTIC 0x0200 *************** *** 91,94 **** --- 92,96 ---- #define MTYPE_AIRFIELD 13 #define MTYPE_BALLISTIC 14 + #define MTYPE_SONOBUOY 15 *************** *** 110,113 **** --- 112,116 ---- #define DTYPE_SONAR 14 #define DTYPE_TORPEDO 15 + #define DTYPE_SONOBUOY 16 #define DTYPE_NULL 0xFFFFFFFF --- NEW FILE: tcSonobuoyDBObject.h --- /* ** @file tcSonobuoyDBObject.h */ /* Copyright (C) 2005 Dewitt Colclough (de...@tw...) ** All rights reserved. ** This file is part of the Global Conflict Blue (GCB) program. ** GCB is free software; you can redistribute it and/or modify ** it under the terms of version 2 of the GNU General Public License as ** published by the Free Software Foundation. ** GCB is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ** GNU General Public License for more details. ** You should have received a copy of the GNU General Public License ** along with GCB; if not, write to the Free Software ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #ifndef _SONOBUOYDBOBJECT_H_ #define _SONOBUOYDBOBJECT_H_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #include "tcDatabaseObject.h" #include "tcSensorPlatformDBObject.h" class TiXmlElement; namespace Database { class tcSqlReader; class tcSonobuoyDBObject : public tcDatabaseObject, public tcSensorPlatformDBObject { public: float batteryLife_s; ///< duration that buoy is active float commRange_km; ///< max comm range to parent platform virtual const char* GetClassName() {return "Sonobuoy";} ///< returns class name of database object bool IsLeaf() const; ///< returns true if db obj is a leaf obj virtual void PrintToFile(tcFile& file); virtual void SerializeXml(TiXmlElement* node, bool load); ///< XML serialization static void AddSqlColumns(std::string& columnString); void ReadSql(tcSqlReader& entry); void WriteSql(std::string& valueString); tcSonobuoyDBObject(tcSonobuoyDBObject& obj); tcSonobuoyDBObject(); virtual ~tcSonobuoyDBObject(); }; } // namespace Database #endif |