メインページ   クラス階層   構成   ファイル一覧   構成メンバ   ファイルメンバ  

lo-sstream.h

解説を見る。
00001 /*
00002 
00003 Copyright (C) 2002 John W. Eaton
00004 
00005 This file is part of Octave.
00006 
00007 Octave is free software; you can redistribute it and/or modify it
00008 under the terms of the GNU General Public License as published by the
00009 Free Software Foundation; either version 2, or (at your option) any
00010 later version.
00011 
00012 Octave is distributed in the hope that it will be useful, but WITHOUT
00013 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00014 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00015 for more details.
00016 
00017 You should have received a copy of the GNU General Public License
00018 along with Octave; see the file COPYING.  If not, write to the Free
00019 Software Foundation, 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00020 
00021 */
00022 
00023 #if !defined (octave_liboctave_sstream_h)
00024 #define octave_liboctave_sstream_h 1
00025 
00026 #if defined (__GNUG__) && __GNUC__ < 3
00027 #undef HAVE_SSTREAM
00028 #endif
00029 
00030 #ifdef HAVE_SSTREAM
00031 
00032 #include <sstream>
00033 
00034 #define STRINGSTREAMBUF std::stringbuf
00035 
00036 #define ISSTREAM std::istringstream
00037 
00038 #define OSSTREAM std::ostringstream
00039 #define OSSTREAM_STR(os) (os).str ()
00040 // XXX FIXME XXX -- how long is the temporary created by the str()
00041 // method guaranteed to exist?
00042 #define OSSTREAM_C_STR(os) (os).str () . c_str ()
00043 #define OSSTREAM_ENDS ""
00044 #define OSSTREAM_FREEZE(os) do { } while (0)
00045 
00046 #else
00047 
00048 #include <strstream>
00049 
00050 #define STRINGSTREAMBUF std::strstreambuf
00051 
00052 #define ISSTREAM std::istrstream
00053 
00054 #define OSSTREAM std::ostrstream
00055 #define OSSTREAM_STR(os) std::string ((os).str ())
00056 #define OSSTREAM_C_STR(os) (os).str ()
00057 #define OSSTREAM_ENDS std::ends
00058 #define OSSTREAM_FREEZE(os) do { (os).freeze (false); } while (0)
00059 
00060 #endif
00061 
00062 #endif
00063 
00064 /*
00065 ;;; Local Variables: ***
00066 ;;; mode: C++ ***
00067 ;;; End: ***
00068 */

Wed Dec 29 11:51:42 2004に生成されました。 doxygen1.2.18
SEO [PR] 爆速!無料ブログ 無料ホームページ開設 無料ライブ放送