From eaf495444148a3338456dda8c61366b193f9d48e Mon Sep 17 00:00:00 2001 From: curt Date: Thu, 26 Sep 2002 15:34:00 +0000 Subject: [PATCH] Shuffling/reorganizing code. --- src/Cockpit/Makefile.am | 1 + src/Cockpit/dme.cxx | 253 +++++++++++++++++++++++++++++++++++++ src/Cockpit/dme.hxx | 117 +++++++++++++++++ src/Cockpit/navcom.cxx | 16 ++- src/Cockpit/radiostack.cxx | 159 ++--------------------- src/Cockpit/radiostack.hxx | 40 +----- 6 files changed, 395 insertions(+), 191 deletions(-) create mode 100644 src/Cockpit/dme.cxx create mode 100644 src/Cockpit/dme.hxx diff --git a/src/Cockpit/Makefile.am b/src/Cockpit/Makefile.am index 19db9a624..14463061d 100644 --- a/src/Cockpit/Makefile.am +++ b/src/Cockpit/Makefile.am @@ -2,6 +2,7 @@ noinst_LIBRARIES = libCockpit.a libCockpit_a_SOURCES = \ cockpit.cxx cockpit.hxx \ + dme.cxx dme.hxx \ hud.cxx hud.hxx hud_opts.hxx \ hud_card.cxx hud_dnst.cxx hud_gaug.cxx hud_inst.cxx \ hud_labl.cxx hud_ladr.cxx \ diff --git a/src/Cockpit/dme.cxx b/src/Cockpit/dme.cxx new file mode 100644 index 000000000..b6e5fbe41 --- /dev/null +++ b/src/Cockpit/dme.cxx @@ -0,0 +1,253 @@ +// dme.cxx -- class to manage an instance of the DME +// +// Written by Curtis Olson, started April 2000. +// +// Copyright (C) 2000 Curtis L. Olson - curt@flightgear.org +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of the +// License, or (at your option) any later version. +// +// This program 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 this program; if not, write to the Free Software +// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +// +// $Id$ + + +#ifdef HAVE_CONFIG_H +# include +#endif + +#include // snprintf + +#include +#include + +#include +#include +#include +#include +#include