|
tudocomp
– The TU Dortmund Compression Framework
|
Class that stores the source of input data. More...
#include <InputSource.hpp>
Public Types | |
| enum | Content { Content::View, Content::File, Content::Stream } |
Public Member Functions | |
| InputSource (const std::string &path) | |
| InputSource (const View &view) | |
| InputSource (std::istream *stream) | |
| bool | is_view () const |
| bool | is_stream () const |
| bool | is_file () const |
| const View & | view () const |
| std::istream * | stream () const |
| const std::string & | file () const |
Friends | |
| bool | operator== (const InputSource &, const InputSource &) |
Class that stores the source of input data.
This can store either the path of a file, a view into memory, or a pointer to a std::istream.
Definition at line 12 of file InputSource.hpp.
|
strong |
| Enumerator | |
|---|---|
| View | |
| File | |
| Stream | |
Definition at line 14 of file InputSource.hpp.
|
inline |
Definition at line 28 of file InputSource.hpp.
|
inline |
Definition at line 31 of file InputSource.hpp.
|
inline |
Definition at line 34 of file InputSource.hpp.
|
inline |
Definition at line 52 of file InputSource.hpp.
|
inline |
Definition at line 40 of file InputSource.hpp.
|
inline |
Definition at line 39 of file InputSource.hpp.
|
inline |
Definition at line 38 of file InputSource.hpp.
|
inline |
Definition at line 47 of file InputSource.hpp.
|
inline |
Definition at line 42 of file InputSource.hpp.
|
friend |
Definition at line 58 of file InputSource.hpp.