00001 // iochannel.cxx -- High level IO channel class 00002 // 00003 // Written by Curtis Olson, started November 1999. 00004 // 00005 // Copyright (C) 1999 Curtis L. Olson - http://www.flightgear.org/~curt 00006 // 00007 // This program is free software; you can redistribute it and/or 00008 // modify it under the terms of the GNU General Public License as 00009 // published by the Free Software Foundation; either version 2 of the 00010 // License, or (at your option) any later version. 00011 // 00012 // This program is distributed in the hope that it will be useful, but 00013 // WITHOUT ANY WARRANTY; without even the implied warranty of 00014 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 // General Public License for more details. 00016 // 00017 // You should have received a copy of the GNU General Public License 00018 // along with this program; if not, write to the Free Software 00019 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00020 // 00021 // $Id: iochannel_8cxx_source.html,v 1.3 2010/02/23 22:10:14 curt Exp $ 00022 00023 00024 #include "iochannel.hxx" 00025 00026 00027 // constructor 00028 SGIOChannel::SGIOChannel() 00029 { 00030 } 00031 00032 00033 // destructor 00034 SGIOChannel::~SGIOChannel() 00035 { 00036 } 00037 00038 00039 // dummy configure routine 00040 bool SGIOChannel::open( const SGProtocolDir d ) { 00041 return false; 00042 } 00043 00044 00045 // dummy process routine 00046 int SGIOChannel::read( char *buf, int length ) { 00047 return 0; 00048 } 00049 00050 00051 // dummy process routine 00052 int SGIOChannel::readline( char *buf, int length ) { 00053 return 0; 00054 } 00055 00056 00057 // dummy process routine 00058 int SGIOChannel::write( const char *buf, const int length ) { 00059 return false; 00060 } 00061 00062 00063 // dummy process routine 00064 int SGIOChannel::writestring( const char *str ) { 00065 return false; 00066 } 00067 00068 00069 // dummy close routine 00070 bool SGIOChannel::close() { 00071 return false; 00072 } 00073 00074 00075 // dummy eof routine 00076 bool SGIOChannel::eof() { 00077 return false; 00078 }