NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
stream-sink.hpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
22
#ifndef NDN_CXX_SECURITY_TRANSFORM_STREAM_SINK_HPP
23
#define NDN_CXX_SECURITY_TRANSFORM_STREAM_SINK_HPP
24
25
#include "
transform-base.hpp
"
26
#include <iostream>
27
28
namespace
ndn
{
29
namespace
security
{
30
namespace
transform {
31
35
class
StreamSink
:
public
Sink
36
{
37
public
:
41
explicit
42
StreamSink
(std::ostream& os);
43
44
private
:
50
virtual
size_t
51
doWrite(
const
uint8_t* buf,
size_t
size)
final
;
52
56
virtual
void
57
doEnd()
final
;
58
59
private
:
60
std::ostream& m_os;
61
};
62
63
unique_ptr<Sink>
64
streamSink
(std::ostream& os);
65
66
}
// namespace transform
67
}
// namespace security
68
}
// namespace ndn
69
70
#endif // NDN_CXX_SECURITY_TRANSFORM_STREAM_SINK_HPP
transform-base.hpp
There are three types of module in a transformation chain: Source, Transform, and Sink...
ndn
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-strategy-choice-helper.hpp:34
ndn::security::transform::Sink
Abstraction of the transformation sink module.
Definition:
transform-base.hpp:278
ndn::security::transform::StreamSink::StreamSink
StreamSink(std::ostream &os)
Create a stream sink which outputs to os.
Definition:
stream-sink.cpp:28
ndn::security::transform::StreamSink
A sink which directs output to an std::ostream.
Definition:
stream-sink.hpp:35
ndn::security::transform::streamSink
unique_ptr< Sink > streamSink(std::ostream &os)
Definition:
stream-sink.cpp:51
security
ndnSIM
ndn-cxx
src
security
transform
stream-sink.hpp
Generated on Wed Jan 11 2017 18:17:14 for ndnSIM by
1.8.13