]> git.mxchange.org Git - flightgear.git/commitdiff
- use guarded property pointers
authormfranz <mfranz>
Mon, 17 Apr 2006 17:08:58 +0000 (17:08 +0000)
committermfranz <mfranz>
Mon, 17 Apr 2006 17:08:58 +0000 (17:08 +0000)
- reduce header usage
- make headers not depend on *.cxx files

src/ATC/AIGAVFRTraffic.cxx
src/ATC/AIGAVFRTraffic.hxx
src/ATC/AILocalTraffic.hxx
src/ATC/ATCDialog.cxx
src/ATC/ATCDialog.hxx
src/ATC/ATCmgr.cxx
src/ATC/ATCmgr.hxx
src/ATC/ground.cxx
src/ATC/ground.hxx
src/ATC/tower.hxx

index 26aa3689609d37d673480b6579d81f4fb11b6ef0..6941a2489260d00055f7179c5a3ed09ff7e57d76 100644 (file)
 #  include <config.h>
 #endif
 
-//#include <simgear/scene/model/location.hxx>
-
 #include <Airports/runways.hxx>
 #include <Main/globals.hxx>
-//#include <Scenery/scenery.hxx>
-//#include <Scenery/tilemgr.hxx>
 #include <simgear/math/point3d.hxx>
-//#include <simgear/math/sg_geodesy.hxx>
-//#include <simgear/misc/sg_path.hxx>
 #include <string>
 #include <math.h>
 
 SG_USING_STD(string);
 
+#include "ATC.hxx"
 #include "ATCmgr.hxx"
 #include "AILocalTraffic.hxx"
 #include "AIGAVFRTraffic.hxx"
 #include "ATCutils.hxx"
+#include "tower.hxx"
 
 FGAIGAVFRTraffic::FGAIGAVFRTraffic() {
        ATC = globals->get_ATC_mgr();
index fcfc79d4b3a1a82dba83c4b4c4396ba9feb6ec89..56b296534320dc76e4aa4fee1db9a3edc5b3277d 100644 (file)
 #include <simgear/math/point3d.hxx>
 #include <Main/fg_props.hxx>
 
-#include "tower.hxx"
-#include "AIPlane.hxx"
-#include "ATCProjection.hxx"
-#include "ground.hxx"
 #include "AILocalTraffic.hxx"
 
 #include <string>
index 8b6a5920eacdfb4febda1d0358125d68522efc23..5336de74178b770a180098095109ff895961916c 100644 (file)
 #include <simgear/math/point3d.hxx>
 #include <Main/fg_props.hxx>
 
-#include "tower.hxx"
 #include "AIPlane.hxx"
 #include "ATCProjection.hxx"
 #include "ground.hxx"
 
+class FGGround;
+class FGTower;
+class Gate;
+
 #include <string>
 SG_USING_STD(string);
 
index 6265c6b549c8218d9bd6193bc95020168a795ac5..8fc3e0f1efbb3c83a2cb53ab8d70c003733f16b4 100644 (file)
 #include <Airports/simple.hxx>
 
 #include <sstream>
-#include <map>
 
 SG_USING_STD(ostringstream);
-SG_USING_STD(map);
 
 FGATCDialog *current_atcdialog;
 
index af3f918e04c3ba5481a9de76796a49786e424296..76cf2cc9fb3e9892152b7646dad9f02aefddd400 100644 (file)
 
 #include <simgear/compiler.h>
 
+#include <vector>
+#include <map>
+
 #include "ATC.hxx"
 
+SG_USING_STD(vector);
+SG_USING_STD(map);
+
 class NewGUI;
 
 // ATCMenuEntry - an encapsulation of an entry in the ATC dialog
index 5aee09557a5929dffabc06be216f9c20fb3622a3..c06c6438227ba83ef5e812d4a0abebb79830b7e0 100644 (file)
 #include <simgear/misc/sg_path.hxx>
 #include <simgear/debug/logstream.hxx>
 #include <Airports/simple.hxx>
+
 #include "ATCmgr.hxx"
 #include "commlist.hxx"
 #include "ATCdisplay.hxx"
 #include "ATCDialog.hxx"
 #include "ATCutils.hxx"
+#include "transmissionlist.hxx"
+#include "ground.hxx"
+
 
 /*
 // periodic radio station search wrapper
index 881abcf8fca5747849a0094181a724596f708943..04d53e062f20c7a45b69abe0dcdcce77b9377ec9 100644 (file)
 #include <list>
 #include <map>
 
-#include "atis.hxx"
 #include "tower.hxx"
 #include "approach.hxx"
-#include "ground.hxx"
-#include "ATC.hxx"
-#include "ATCVoice.hxx"
-#include "transmissionlist.hxx"
 
 SG_USING_STD(string);
 SG_USING_STD(list);
index 7475f7ae017a994bc5fe17b4d1ad61bd4e33e964..1a1948383ba3ba741f8435bfc88610c90f6e3465 100644 (file)
 #include STL_FSTREAM
 
 #include "ground.hxx"
-#include "ATCmgr.hxx"
-#include "ATCutils.hxx"
 #include "ATCdisplay.hxx"
+#include "ATCutils.hxx"
 #include "AILocalTraffic.hxx"
+#include "ATCmgr.hxx"
 
 SG_USING_STD(ifstream);
 SG_USING_STD(cout);
index 318191c82668f66c80699710a1cf45f9a409ed04..43f5c0a31e26817da196c87902aab8f96c1e5445 100644 (file)
 #ifndef _FG_GROUND_HXX
 #define _FG_GROUND_HXX
 
-#include STL_IOSTREAM
-#include STL_STRING
-
-SG_USING_STD(string);
-SG_USING_STD(ios);
-
 #include <map>
 #include <vector>
 #include <list>
+
 #include <simgear/math/point3d.hxx>
 #include <simgear/misc/sgstream.hxx>
 #include <simgear/math/sg_geodesy.hxx>
+#include <simgear/props/props.hxx>
 
 #include "ATC.hxx"
-//#include "ATCmgr.hxx"
 #include "ATCProjection.hxx"
-#include "AIEntity.hxx"
-//#include "AILocalTraffic.hxx"        // RunwayDetails - this is a temporary hack
+
+#include STL_IOSTREAM
+#include STL_STRING
+
+SG_USING_STD(string);
+SG_USING_STD(ios);
 
 SG_USING_STD(map);
 SG_USING_STD(vector);
 SG_USING_STD(list);
 
+class FGAIEntity;
+class FGATCMgr;
+
 //////////////////////////////////////////////////////
 // Types for the logical network data structure
 enum arc_type {
@@ -308,8 +310,8 @@ private:
     //NextClearance(ground_rec &g);
        
        // environment - need to make sure we're getting the surface winds and not winds aloft.
-       SGPropertyNode* wind_from_hdg;  //degrees
-       SGPropertyNode* wind_speed_knots;               //knots
+       SGPropertyNode_ptr wind_from_hdg;       //degrees
+       SGPropertyNode_ptr wind_speed_knots;            //knots
        
        // for failure modeling
        string trans_ident;             // transmitted ident
index 75896a0501e22c7c4b2cfb13f5f680c4227a7a2b..a1ed67892db46d408cea193eb401c4ff03f98037 100644 (file)
@@ -24,9 +24,7 @@
 #include <simgear/compiler.h>
 #include <simgear/math/point3d.hxx>
 #include <simgear/misc/sgstream.hxx>
-//#include <simgear/math/sg_geodesy.hxx>
 #include <plib/sg.h>
-//#include <Airports/runways.hxx>
 
 #include STL_IOSTREAM
 #include STL_STRING
@@ -35,11 +33,12 @@ SG_USING_STD(string);
 SG_USING_STD(ios);
 
 #include "ATC.hxx"
-//#include "ATCmgr.hxx"
-#include "ground.hxx"
 #include "ATCProjection.hxx"
 #include "AIPlane.hxx"
 
+class FGATCMgr;
+class FGGround;
+
 //DCL - a complete guess for now.
 #define FG_TOWER_DEFAULT_RANGE 30