X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fio%2Fiochannel.cxx;h=468f666bde8d7d466d508e952440215011377a4e;hb=3bcd0bafd5fba1eebadfd1cb8a7294d665cf1932;hp=ab83fc09711971e530b1891ab23e4e29bb6aba5a;hpb=22812a0aaef07c8da20b0c7e151016965e29dcff;p=simgear.git diff --git a/simgear/io/iochannel.cxx b/simgear/io/iochannel.cxx index ab83fc09..468f666b 100644 --- a/simgear/io/iochannel.cxx +++ b/simgear/io/iochannel.cxx @@ -2,7 +2,7 @@ // // Written by Curtis Olson, started November 1999. // -// Copyright (C) 1999 Curtis L. Olson - curt@flightgear.org +// Copyright (C) 1999 Curtis L. Olson - http://www.flightgear.org/~curt // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License as @@ -16,14 +16,12 @@ // // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software -// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // // $Id$ #include "iochannel.hxx" -// #include "garmin.hxx" -// #include "nmea.hxx" // constructor @@ -39,7 +37,7 @@ SGIOChannel::~SGIOChannel() // dummy configure routine -bool SGIOChannel::open( SGProtocolDir dir ) { +bool SGIOChannel::open( const SGProtocolDir d ) { return false; } @@ -57,13 +55,13 @@ int SGIOChannel::readline( char *buf, int length ) { // dummy process routine -int SGIOChannel::write( char *buf, int length ) { +int SGIOChannel::write( const char *buf, const int length ) { return false; } // dummy process routine -int SGIOChannel::writestring( char *str ) { +int SGIOChannel::writestring( const char *str ) { return false; } @@ -72,3 +70,9 @@ int SGIOChannel::writestring( char *str ) { bool SGIOChannel::close() { return false; } + + +// dummy eof routine +bool SGIOChannel::eof() const { + return false; +}