]> git.mxchange.org Git - flightgear.git/blobdiff - src/ATC/ATC.hxx
- fixed ANSI C++ namespace problems
[flightgear.git] / src / ATC / ATC.hxx
index 5a8b8397d4303a70cc29fbae9a2b0f2d98d478e6..417058edae83348d44dade0723b5cec1d8a557a1 100644 (file)
 #ifndef _FG_ATC_HXX
 #define _FG_ATC_HXX
 
+#include <simgear/compiler.h>
+
+#include <iostream>
+#include <string>
+
+SG_USING_STD(ostream);
+SG_USING_STD(string);
+
 // Possible types of ATC type that the radios may be tuned to.
 // INVALID implies not tuned in to anything.
-typedef enum atc_type {
+enum atc_type {
     INVALID,
     ATIS,
     GROUND,
@@ -32,7 +40,9 @@ typedef enum atc_type {
     APPROACH,
     DEPARTURE,
     ENROUTE
-};  
+}; 
+
+ostream& operator << (ostream& os, atc_type atc);
 
 class FGATC {
 
@@ -43,6 +53,12 @@ public:
     // Run the internal calculations
     virtual void Update();
 
+    // Add plane to a stack
+    virtual void AddPlane(string pid);
+
+    // Remove plane from stack
+    virtual int RemovePlane();
+
     // Indicate that this instance should output to the display if appropriate 
     virtual void SetDisplay();
 
@@ -56,4 +72,4 @@ public:
     virtual atc_type GetType();
 };
 
-#endif  // _FG_ATC_HXX
\ No newline at end of file
+#endif  // _FG_ATC_HXX