X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fmisc%2Fsgstream.hxx;h=a0414b18fdbc03fb6b087555ecb09edd8a063a6c;hb=e4e31be7d43569a92a5d9fa7e784381b66cbd95a;hp=7473ee870195e7ee84dd5f6f1938b457f18b8067;hpb=b8ce139b8a6cb3e49432e7fbee1afafd06975dcc;p=simgear.git diff --git a/simgear/misc/sgstream.hxx b/simgear/misc/sgstream.hxx index 7473ee87..a0414b18 100644 --- a/simgear/misc/sgstream.hxx +++ b/simgear/misc/sgstream.hxx @@ -17,10 +17,9 @@ // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Library General Public License for more details. // -// You should have received a copy of the GNU Library General Public -// License along with this library; if not, write to the -// Free Software Foundation, Inc., 59 Temple Place - Suite 330, -// Boston, MA 02111-1307, USA. +// 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // // $Id$ @@ -28,41 +27,22 @@ #ifndef _SGSTREAM_HXX #define _SGSTREAM_HXX -#ifndef __cplusplus +#ifndef __cplusplus # error This library requires C++ -#endif - -#ifdef HAVE_CONFIG_H -# include #endif #include -#if defined( SG_HAVE_STD_INCLUDES ) # include -#elif defined ( SG_HAVE_NATIVE_SGI_COMPILERS ) -# include -#elif defined ( __BORLANDC__ ) -# include -#else -# include -#endif -#include STL_STRING +#include #include -SG_USING_STD(string); - -#ifndef SG_HAVE_NATIVE_SGI_COMPILERS -SG_USING_STD(istream); -#endif - - /** * An envelope class for gzifstream. */ -class sg_gzifstream : private gzifstream_base, public istream +class sg_gzifstream : private gzifstream_base, public std::istream { public: /** Default constructor */ @@ -74,7 +54,7 @@ public: * @param name name of file * @param io_mode file open mode(s) "or'd" together */ - sg_gzifstream( const string& name, + sg_gzifstream( const std::string& name, ios_openmode io_mode = ios_in | ios_binary ); /** @@ -89,7 +69,7 @@ public: * @param name name of file * @param io_mode file open mode(s) "or'd" together */ - void open( const string& name, + void open( const std::string& name, ios_openmode io_mode = ios_in|ios_binary ); /** @@ -118,14 +98,14 @@ private: * An istream manipulator that skips to end of line. * @param in input stream */ -istream& skipeol( istream& in ); +std::istream& skipeol( std::istream& in ); /** * \relates sg_gzifstream * An istream manipulator that skips over white space. * @param in input stream */ -istream& skipws( istream& in ); +std::istream& skipws( std::istream& in ); /** * \relates sg_gzifstream @@ -133,7 +113,7 @@ istream& skipws( istream& in ); * Ignores comments that start with '#'. * @param in input stream */ -istream& skipcomment( istream& in ); +std::istream& skipcomment( std::istream& in ); #endif /* _SGSTREAM_HXX */