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

Strip whitespace characters from a stream. More...

#include <strip-space.hpp>

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

Public Member Functions

 StripSpace (const char *whitespaces=DEFAULT_WHITESPACES)
 
- Public Member Functions inherited from ndn::security::transform::Upstream
virtual ~Upstream ()=default
 
- Public Member Functions inherited from ndn::security::transform::Downstream
virtual ~Downstream ()=default
 
size_t write (span< const uint8_t > buf)
 Accept input data and perform transformation. More...
 
void end ()
 Close the input interface of a module. More...
 
bool isEnd () const
 Check if the input interface of a module is closed. More...
 
void setIndex (size_t index)
 Set the module index. More...
 
size_t getIndex () const
 Get the module index. More...
 

Static Public Attributes

static const char *const DEFAULT_WHITESPACES = " \f\n\r\t\v"
 

Additional Inherited Members

- Protected Types inherited from ndn::security::transform::Transform
using OBuffer = std::vector< uint8_t >
 
- Protected Member Functions inherited from ndn::security::transform::Transform
 Transform ()=default
 
void flushOutputBuffer ()
 Read the content from output buffer and write it into next module. More...
 
void flushAllOutput ()
 Read the all the content from output buffer and write it into next module. More...
 
void setOutputBuffer (unique_ptr< OBuffer > buffer)
 Set output buffer to buffer. More...
 
bool isOutputBufferEmpty () const
 Check if output buffer is empty. More...
 
- Protected Member Functions inherited from ndn::security::transform::Upstream
 Upstream ()=default
 
void appendChain (unique_ptr< Downstream > tail)
 Connect to the next transformation module. More...
 
DownstreamgetNext ()
 
- Protected Member Functions inherited from ndn::security::transform::Downstream
 Downstream ()=default
 
- Protected Attributes inherited from ndn::security::transform::Upstream
unique_ptr< Downstreamm_next
 

Detailed Description

Strip whitespace characters from a stream.

This transform interprets the input as a byte string, and puts all bytes except whitespace characters on the output.

Definition at line 40 of file strip-space.hpp.

Constructor & Destructor Documentation

◆ StripSpace()

ndn::security::transform::StripSpace::StripSpace ( const char *  whitespaces = DEFAULT_WHITESPACES)
explicit

Member Data Documentation

◆ DEFAULT_WHITESPACES

const char *const ndn::security::transform::StripSpace::DEFAULT_WHITESPACES = " \f\n\r\t\v"
static

Definition at line 43 of file strip-space.hpp.


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