⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vcl_sstream.h

📁 DTMK软件开发包,此为开源软件,是一款很好的医学图像开发资源.
💻 H
字号:
#ifndef vcl_sstream_h_
#define vcl_sstream_h_
// fsm
#include "vcl_compiler.h"

#if VCL_CXX_HAS_HEADER_SSTREAM
# include "iso/vcl_sstream.h"
#else // assuming <strstream.h> exists
# include "vcl_iostream.h" // this is to get the vcl_ios_* macros.
# include <strstream.h>
# include <vcl_string.h>

# undef  vcl_stringstream
# define vcl_stringstream vcl_stringstream
struct vcl_stringstream : public strstream
{
  vcl_stringstream(int /*which*/ = vcl_ios_in | vcl_ios_out) { }
  vcl_stringstream(vcl_string const &s, int which = vcl_ios_in | vcl_ios_out)
    : strstream((char*)s.c_str(), (int)strlen(s.c_str()), which) { }

  // [27.7.4]
  vcl_string str() { return strstream::str(); }
  //FIXME void str(vcl_string const &s);
};

# undef  vcl_istringstream
# define vcl_istringstream vcl_istringstream
struct vcl_istringstream : public istrstream
{
  vcl_istringstream(vcl_string const &s) : istrstream(s.c_str()) { }

  // [27.7.2.2]
  vcl_string str() { return istrstream::rdbuf()->str(); }
  //FIXME void str(vcl_string const &s);
};

# undef  vcl_ostringstream
# define vcl_ostringstream vcl_ostringstream
struct vcl_ostringstream : public ostrstream
{
  // [27.7.3.2]
  vcl_string str() { return ostrstream::str(); }
  //FIXME void str(vcl_string const &s);
};

#endif // VCL_CXX_HAS_HEADER_SSTREAM

#endif // vcl_sstream_h_

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -