X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FMain%2Ffg_io.hxx;h=aa377c18298eff61e6f7d318c0293dce8d2fa969;hb=e322c70f529eacbfa0460f8f10419657eee00675;hp=6f7f55cb19c855de0d17593bdc45802ac9215999;hpb=4c0a3b3db43f5be847129b77d71f35036c452ad1;p=flightgear.git diff --git a/src/Main/fg_io.hxx b/src/Main/fg_io.hxx index 6f7f55cb1..aa377c182 100644 --- a/src/Main/fg_io.hxx +++ b/src/Main/fg_io.hxx @@ -26,14 +26,39 @@ #include +#include +#include +#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