]> git.mxchange.org Git - flightgear.git/blob - src/ATC/ATC.cxx
- fixed ANSI C++ namespace problems
[flightgear.git] / src / ATC / ATC.cxx
1 // Implementation of FGATC - ATC subsystem abstract base class.
2 // Nothing in here should ever get called.
3 //
4 // Written by David Luff, started February 2002.
5 //
6 // Copyright (C) 2002  David C Luff - david.luff@nottingham.ac.uk
7 //
8 // This program is free software; you can redistribute it and/or
9 // modify it under the terms of the GNU General Public License as
10 // published by the Free Software Foundation; either version 2 of the
11 // License, or (at your option) any later version.
12 //
13 // This program is distributed in the hope that it will be useful, but
14 // WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16 // General Public License for more details.
17 //
18 // You should have received a copy of the GNU General Public License
19 // along with this program; if not, write to the Free Software
20 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21
22 #include "ATC.hxx"
23
24 FGATC::~FGATC() {
25 }
26
27 void FGATC::Update() {
28 }
29
30 void FGATC::AddPlane(string pid) {
31 }
32
33 int FGATC::RemovePlane() {
34 }
35
36 void FGATC::SetDisplay() {
37 }
38
39 void FGATC::SetNoDisplay() {
40 }
41
42 const char* FGATC::GetIdent() {
43     return("Error - base class function called in FGATC...");
44 }
45
46 atc_type FGATC::GetType() {
47     return INVALID;
48 }
49
50 ostream& operator << (ostream& os, atc_type atc) {
51     switch(atc) {
52     case(INVALID):
53         return(os << "INVALID");
54     case(ATIS):
55         return(os << "ATIS");
56     case(GROUND):
57         return(os << "GROUND");
58     case(TOWER):
59         return(os << "TOWER");
60     case(APPROACH):
61         return(os << "APPROACH");
62     case(DEPARTURE):
63         return(os << "DEPARTURE");
64     case(ENROUTE):
65         return(os << "ENROUTE");
66     }
67     return(os << "ERROR - Unknown switch in atc_type operator << ");
68 }