]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/fg_io.hxx
Depreciate NetworkOLK. A big thanks goes to Oliver Delise for implementing it in...
[flightgear.git] / src / Main / fg_io.hxx
index 6f7f55cb19c855de0d17593bdc45802ac9215999..aa377c18298eff61e6f7d318c0293dce8d2fa969 100644 (file)
 
 
 #include <simgear/compiler.h>
+#include <simgear/structure/subsystem_mgr.hxx>
 
+#include <vector>
+#include STL_STRING
 
-// initialize I/O channels based on command line options (if any)
-void fgIOInit();
+SG_USING_STD(vector);
+SG_USING_STD(string);
 
+class FGProtocol;
 
-// process any I/O work
-void fgIOProcess();
+class FGIO : public SGSubsystem
+{
+public:
+    FGIO();
+    ~FGIO();
+
+    void init();
+    void bind();
+    void unbind();
+    void update( double dt );
+
+    void shutdown_all();
+
+private:
+
+    FGProtocol* parse_port_config( const string& cfgstr );
+
+private:
+
+    // define the global I/O channel list
+    //io_container global_io_list;
+    vector< FGProtocol* > io_channels;
+};
 
 
 #endif // _FG_IO_HXX