MCPcopy Create free account
hub / github.com/PDAL/PDAL / IStream

Class IStream

pdal/util/IStream.hpp:59–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57 Stream wrapper for input of binary data.
58*/
59class IStream
60{
61public:
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.

Callers 3

ILeStreamMethod · 0.85
IBeStreamMethod · 0.85
ISwitchableStreamClass · 0.85

Calls 1

openFunction · 0.70

Tested by

no test coverage detected