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

📄 ozipstream.h

📁 这是一个兼容C++标准的IO流接口
💻 H
字号:
//------------------------------------------------------------------------------
// (c) 2001 Gottfried Chen
//------------------------------------------------------------------------------

#ifndef OZIPSTREAM_H
#define OZIPSTREAM_H

#include "ozipbuf.h"


namespace zip
{

template<class Character, class Traits = std::char_traits<Character> >
class basic_ozipstream : public std::basic_ostream<Character, Traits>
{
public:
    basic_ozipstream(ozipfile& zip, const char* fileName,
                     std::ios_base::openmode = std::ios_base::out | std::ios_base::trunc);

    void open(ozipfile& zip, const char* fileName,
              std::ios_base::openmode = std::ios_base::out | std::ios_base::trunc);
    void close();

private:
    basic_ozipbuf<Character, Traits> mBuffer;
};

typedef basic_ozipstream<char> ozipstream;

// Attention: No wide to multibyte character translation is done on output.
typedef basic_ozipstream<wchar_t> wozipstream;

} // namespace zip

#include "ozipstream.inl"
#endif // OZIPSTREAM_H

⌨️ 快捷键说明

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