A source taking an std::istream as input. More...
#include <stream-source.hpp>
Public Member Functions | |
StreamSource (std::istream &is, size_t bufLen=DEFAULT_BUFFER_LEN) | |
Construst a source using is as input. More... | |
Public Member Functions inherited from ndn::security::transform::Source | |
Source & | operator>> (unique_ptr< Transform > transform) |
Connect to an intermediate transformation module. More... | |
void | operator>> (unique_ptr< Sink > sink) |
Connect to the last transformation module. More... | |
Public Member Functions inherited from ndn::security::transform::Upstream | |
virtual | ~Upstream ()=default |
Static Public Attributes | |
static const std::size_t | DEFAULT_BUFFER_LEN = 1024 |
Additional Inherited Members | |
Protected Member Functions inherited from ndn::security::transform::Source | |
Source () | |
void | pump () |
Pump all data into next transformation module. More... | |
size_t | getIndex () const |
Get the source module index (should always be 0). More... | |
Protected Member Functions inherited from ndn::security::transform::Upstream | |
Upstream () | |
void | appendChain (unique_ptr< Downstream > tail) |
connect to next transformation module More... | |
Downstream * | getNext () |
Protected Attributes inherited from ndn::security::transform::Upstream | |
unique_ptr< Downstream > | m_next |
A source taking an std::istream as input.
Definition at line 34 of file stream-source.hpp.
|
explicit |
Construst a source using is
as input.
is | The input stream |
bufLen | The internal buffer size. The default size is 1024. |
Definition at line 33 of file stream-source.cpp.
References ndn::security::transform::Source::getIndex(), and ndn::security::transform::Upstream::m_next.
|
static |
Definition at line 55 of file stream-source.hpp.