| class inputfilestream : public std::istream | |
| { | |
| protected: | |
| std::streambuf *m_streambuf; | |
| bool m_is_good; | |
| public: | |
| explicit inputfilestream(const std::string &filePath); | |
| virtual ~inputfilestream(); | |
| bool good() const { | |
| return m_is_good; | |
| } | |
| void close(); | |
| }; | |
| class inputfilestream : public std::istream | |
| { | |
| protected: | |
| std::streambuf *m_streambuf; | |
| bool m_is_good; | |
| public: | |
| explicit inputfilestream(const std::string &filePath); | |
| virtual ~inputfilestream(); | |
| bool good() const { | |
| return m_is_good; | |
| } | |
| void close(); | |
| }; | |