X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FATC%2Fatis.hxx;h=12fc4fd07e3ed209dcf5c4ceb639af324e5d8339;hb=40480eb2b4b4e4067808aa3226ee204d589a07ce;hp=741e9943dd63c5950d0935887eab59b4ba0c04fb;hpb=7a044b3faa97ef39d0813fe95211c4e6248abfb8;p=flightgear.git diff --git a/src/ATC/atis.hxx b/src/ATC/atis.hxx index 741e9943d..12fc4fd07 100644 --- a/src/ATC/atis.hxx +++ b/src/ATC/atis.hxx @@ -1,95 +1,39 @@ -// atis.hxx -- ATIS class -// -// Written by David Luff, started October 2001. -// Based on nav.hxx by Curtis Olson, started April 2000. -// -// Copyright (C) 2001 David C. Luff - david.luff@nottingham.ac.uk -// -// 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. - - -#ifndef _FG_ATIS_HXX -#define _FG_ATIS_HXX - -#include -#include - -#include -#include -#include -#include -#include - -#ifdef SG_HAVE_STD_INCLUDES -# include -# include -#elif defined( __BORLANDC__ ) || (__APPLE__) -# include -#else -# include -# include -#endif - -SG_USING_STD(istream); -SG_USING_STD(string); - -#include "ATC.hxx" - -//DCL - a complete guess for now. -#define FG_ATIS_DEFAULT_RANGE 30 - -class FGATIS : public FGATC { - - //atc_type type; - string transmission; // The actual ATIS transmission - // This is not stored in default.atis but is generated - // from the prevailing conditions when required. - - // for failure modeling - string trans_ident; // transmitted ident - bool atis_failed; // atis failed? - - // Aircraft position - // ATIS is actually a special case in that unlike other ATC eg.tower it doesn't actually know about - // or the whereabouts of the aircraft it is transmitting to. However, to ensure consistancy of - // operation with the other ATC classes the ATIS class must calculate range to the aircraft in order - // to decide whether to render the transmission - hence the users plane details must be stored. - //SGPropertyNode *airplane_lon_node; - //SGPropertyNode *airplane_lat_node; - //SGPropertyNode *airplane_elev_node; - - public: - - FGATIS(void); - ~FGATIS(void); - - //run the ATIS instance - void Update(double dt); - - //inline void set_type(const atc_type tp) {type = tp;} - inline string get_trans_ident() { return trans_ident; } - inline void set_refname(string r) { refname = r; } - - private: - - string refname; // Holds the refname of a transmission in progress - - //Update the transmission string - void UpdateTransmission(void); - - friend istream& operator>> ( istream&, FGATIS& ); +/* -*- Mode: C++ -*- ***************************************************** + * atic.hxx + * Written by Durk Talsma. Started August 1, 2010; based on earlier work + * by David C. Luff + * + * 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + * + **************************************************************************/ + +#ifndef _ATIS_HXX_ +#define _ATIS_HXX_ + +#include + +class FGAtisManager : public SGSubsystem +{ +private: + +public: + FGAtisManager(); + ~FGAtisManager(); + void init(); + void update(double time); }; - -#endif // _FG_ATIS_HXX + +#endif // _ATIS_HXX_ \ No newline at end of file