| 57 | Stream wrapper for input of binary data. |
| 58 | */ |
| 59 | class IStream |
| 60 | { |
| 61 | public: |
| 62 | //ABELL - Should prevent copy construction. |
| 63 | //ABELL - Should enable construction from rvalue ref. |
| 64 | //ABELL - Should provide an operator << (..., string) that delegates |
| 65 | // to std::istream |
| 66 | /** |
| 67 | Default constructor. |
| 68 | */ |
| 69 | PDAL_EXPORT IStream() : m_stream(NULL), m_fstream(NULL) |
| 70 | {} |
| 71 | |
| 72 | /** |
| 73 | Construct an IStream from a filename. |
| 74 | |
| 75 | \param filename File from which to read. |
| 76 | */ |
| 77 | PDAL_EXPORT IStream(const std::string& filename) : |
| 78 | m_stream(NULL), m_fstream(NULL) |
| 79 | { open(filename); } |
| 80 | |
| 81 | /** |
| 82 | Construct an IStream from an input stream pointer. |
no test coverage detected