| 104 | typedef typename std::basic_istream<CharT, Traits> Base; |
| 105 | |
| 106 | basic_ShiftStream(const std::string& filename, off_type offset) : |
| 107 | Base(&m_buf), m_buf(offset) |
| 108 | { |
| 109 | Base::init(&m_buf); |
| 110 | if (!m_buf.open(filename, |
| 111 | std::ios_base::in | std::ios_base::binary)) |
| 112 | Base::setstate(std::ios_base::failbit); |
| 113 | } |
| 114 | |
| 115 | ~basic_ShiftStream() |
| 116 | { m_buf.close(); } |