NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
+
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
+
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
+
Typedefs
a
b
c
d
e
f
h
i
l
m
n
o
p
q
r
s
t
u
v
Enumerations
+
Enumerator
a
b
c
d
e
f
h
i
k
l
m
n
o
p
q
r
s
u
v
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
~
+
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
~
+
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
w
+
Typedefs
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
+
Enumerator
a
d
e
f
i
k
l
n
p
r
s
u
w
+
Related Functions
b
c
d
e
f
g
i
k
l
m
n
o
p
s
v
+
Files
File List
+
File Members
+
All
a
b
c
d
e
f
g
h
i
k
l
m
n
p
r
s
u
v
w
+
Functions
c
f
h
m
r
s
u
w
+
Variables
a
c
d
g
k
l
n
p
r
s
Typedefs
+
Macros
b
d
e
f
i
l
m
n
p
r
s
u
v
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
stream-source.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_SOURCE_HPP
23
#define NDN_CXX_SECURITY_TRANSFORM_STREAM_SOURCE_HPP
24
25
#include "
transform-base.hpp
"
26
#include <iostream>
27
28
namespace
ndn
{
29
namespace
security
{
30
namespace
transform {
31
35
class
StreamSource
:
public
Source
36
{
37
public
:
45
explicit
46
StreamSource
(std::istream& is,
size_t
bufLen =
DEFAULT_BUFFER_LEN
);
47
48
private
:
52
virtual
void
53
doPump()
final
;
54
55
public
:
56
static
const
std::size_t
DEFAULT_BUFFER_LEN
;
57
58
private
:
59
std::istream& m_is;
60
size_t
m_bufferSize;
61
};
62
63
typedef
StreamSource
streamSource
;
64
65
}
// namespace transform
66
}
// namespace security
67
}
// namespace ndn
68
69
#endif // NDN_CXX_SECURITY_TRANSFORM_STREAM_SOURCE_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::StreamSource::StreamSource
StreamSource(std::istream &is, size_t bufLen=DEFAULT_BUFFER_LEN)
Construst a source using is as input.
Definition:
stream-source.cpp:31
ndn::security::transform::StreamSource
A source taking an std::istream as input.
Definition:
stream-source.hpp:35
ndn::security::transform::Source
Abstraction of the transformation source module.
Definition:
transform-base.hpp:288
ndn::security::transform::StreamSource::DEFAULT_BUFFER_LEN
static const std::size_t DEFAULT_BUFFER_LEN
Definition:
stream-source.hpp:56
security
ndn::security::transform::streamSource
StreamSource streamSource
Definition:
stream-source.hpp:63
ndnSIM
ndn-cxx
src
security
transform
stream-source.hpp
Generated on Wed Jan 11 2017 18:17:14 for ndnSIM by
1.8.13