NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
ndn::security::transform::StreamSource Class Reference

A source taking an std::istream as input. More...

#include <stream-source.hpp>

Inheritance diagram for ndn::security::transform::StreamSource:
Collaboration diagram for ndn::security::transform::StreamSource:

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
Sourceoperator>> (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...
 
DownstreamgetNext ()
 
- Protected Attributes inherited from ndn::security::transform::Upstream
unique_ptr< Downstreamm_next
 

Detailed Description

A source taking an std::istream as input.

Definition at line 34 of file stream-source.hpp.

Constructor & Destructor Documentation

◆ StreamSource()

ndn::security::transform::StreamSource::StreamSource ( std::istream &  is,
size_t  bufLen = DEFAULT_BUFFER_LEN 
)
explicit

Construst a source using is as input.

Parameters
isThe input stream
bufLenThe internal buffer size. The default size is 1024.
Precondition
bufLen must be larger than 0.

Definition at line 33 of file stream-source.cpp.

Member Data Documentation

◆ DEFAULT_BUFFER_LEN

const std::size_t ndn::security::transform::StreamSource::DEFAULT_BUFFER_LEN = 1024
static

Definition at line 55 of file stream-source.hpp.


The documentation for this class was generated from the following files: