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
Classes
Files
File List
File Members
status-dataset.hpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
22
#ifndef NDN_MGMT_NFD_STATUS_DATASET_HPP
23
#define NDN_MGMT_NFD_STATUS_DATASET_HPP
24
25
#include "../../name.hpp"
26
#include "
forwarder-status.hpp
"
27
#include "
face-status.hpp
"
28
#include "
face-query-filter.hpp
"
29
#include "
channel-status.hpp
"
30
#include "
fib-entry.hpp
"
31
#include "
strategy-choice.hpp
"
32
#include "
rib-entry.hpp
"
33
34
namespace
ndn
{
35
namespace
nfd
{
36
42
class
StatusDataset
: noncopyable
43
{
44
public
:
45
virtual
46
~StatusDataset
();
47
48
#ifdef DOXYGEN
49
53
typedef
int
ParamType
;
54
#endif
55
61
Name
62
getDatasetPrefix
(
const
Name
& prefix)
const
;
63
64
#ifdef DOXYGEN
65
68
typedef
std::vector<int>
ResultType
;
69
#endif
70
74
class
ParseResultError
:
public
tlv::Error
75
{
76
public
:
77
explicit
78
ParseResultError
(
const
std::string& what)
79
: tlv::
Error
(what)
80
{
81
}
82
};
83
84
#ifdef DOXYGEN
85
90
ResultType
91
parseResult
(
ConstBufferPtr
payload)
const
;
92
#endif
93
94
protected
:
99
explicit
100
StatusDataset
(
const
PartialName
& datasetName);
101
102
private
:
107
virtual
void
108
addParameters(
Name
&
name
)
const
;
109
110
private
:
111
PartialName
m_datasetName;
112
};
113
114
120
class
ForwarderGeneralStatusDataset
:
public
StatusDataset
121
{
122
public
:
123
ForwarderGeneralStatusDataset
();
124
125
typedef
ForwarderStatus
ResultType
;
126
127
ResultType
128
parseResult
(
ConstBufferPtr
payload)
const
;
129
};
130
131
136
class
FaceDatasetBase
:
public
StatusDataset
137
{
138
public
:
139
typedef
std::vector<FaceStatus>
ResultType
;
140
141
ResultType
142
parseResult
(
ConstBufferPtr
payload)
const
;
143
144
protected
:
145
explicit
146
FaceDatasetBase
(
const
PartialName
& datasetName);
147
};
148
149
155
class
FaceDataset
:
public
FaceDatasetBase
156
{
157
public
:
158
FaceDataset
();
159
};
160
161
167
class
FaceQueryDataset
:
public
FaceDatasetBase
168
{
169
public
:
170
typedef
FaceQueryFilter
ParamType
;
171
172
explicit
173
FaceQueryDataset
(
const
FaceQueryFilter
& filter);
174
175
private
:
176
void
177
addParameters(
Name
&
name
)
const override
;
178
179
private
:
180
FaceQueryFilter
m_filter;
181
};
182
183
189
class
ChannelDataset
:
public
StatusDataset
190
{
191
public
:
192
ChannelDataset
();
193
194
typedef
std::vector<ChannelStatus>
ResultType
;
195
196
ResultType
197
parseResult
(
ConstBufferPtr
payload)
const
;
198
};
199
200
206
class
FibDataset
:
public
StatusDataset
207
{
208
public
:
209
FibDataset
();
210
211
typedef
std::vector<FibEntry>
ResultType
;
212
213
ResultType
214
parseResult
(
ConstBufferPtr
payload)
const
;
215
};
216
217
223
class
StrategyChoiceDataset
:
public
StatusDataset
224
{
225
public
:
226
StrategyChoiceDataset
();
227
228
typedef
std::vector<StrategyChoice>
ResultType
;
229
230
ResultType
231
parseResult
(
ConstBufferPtr
payload)
const
;
232
};
233
234
240
class
RibDataset
:
public
StatusDataset
241
{
242
public
:
243
RibDataset
();
244
245
typedef
std::vector<RibEntry>
ResultType
;
246
247
ResultType
248
parseResult
(
ConstBufferPtr
payload)
const
;
249
};
250
251
252
}
// namespace nfd
253
}
// namespace ndn
254
255
#endif // NDN_MGMT_NFD_STATUS_DATASET_HPP
ndn::nfd::FaceDatasetBase
provides common functionality among FaceDataset and FaceQueryDataset
Definition:
status-dataset.hpp:136
ndn::nfd::StatusDataset::ParseResultError
indicates reassembled payload cannot be parsed as ResultType
Definition:
status-dataset.hpp:74
ndn::nfd::ForwarderStatus
represents NFD General Status dataset
Definition:
forwarder-status.hpp:36
ndn
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-strategy-choice-helper.hpp:34
ndn::nfd::StatusDataset::parseResult
ResultType parseResult(ConstBufferPtr payload) const
parses a result from reassembled payload
ndn::nfd::ForwarderGeneralStatusDataset
represents a status/general dataset
Definition:
status-dataset.hpp:120
ndn::tlv::Error::Error
Error(const std::string &what)
Definition:
tlv.hpp:54
ndn::nfd::FaceQueryDataset::ParamType
FaceQueryFilter ParamType
Definition:
status-dataset.hpp:170
rib-entry.hpp
face-status.hpp
ndn::nfd::StatusDataset::ParseResultError::ParseResultError
ParseResultError(const std::string &what)
Definition:
status-dataset.hpp:78
ndn::nfd::StatusDataset
base class of NFD StatusDataset
Definition:
status-dataset.hpp:42
ndn::nfd::FaceDatasetBase::ResultType
std::vector< FaceStatus > ResultType
Definition:
status-dataset.hpp:139
ndn::nfd::StatusDataset::~StatusDataset
virtual ~StatusDataset()
ndn::nfd::RibDataset
represents a rib/list dataset
Definition:
status-dataset.hpp:240
nfd
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-common.hpp:40
ndn::nfd::StatusDataset::StatusDataset
StatusDataset(const PartialName &datasetName)
constructs a StatusDataset instance with given sub-prefix
Definition:
status-dataset.cpp:28
ndn::nfd::StatusDataset::ResultType
std::vector< int > ResultType
provides the result type, usually a vector
Definition:
status-dataset.hpp:68
ndn::nfd::StatusDataset::getDatasetPrefix
Name getDatasetPrefix(const Name &prefix) const
constructs a name prefix for the dataset
Definition:
status-dataset.cpp:36
ndn::nfd::StrategyChoiceDataset
represents a strategy-choice/list dataset
Definition:
status-dataset.hpp:223
forwarder-status.hpp
ndn::Name
Represents an absolute name.
Definition:
name.hpp:42
ndn::nfd::FibDataset::ResultType
std::vector< FibEntry > ResultType
Definition:
status-dataset.hpp:211
ndn::nfd::FaceQueryFilter
represents Face Query Filter
Definition:
face-query-filter.hpp:36
ndn::nfd::ForwarderGeneralStatusDataset::ResultType
ForwarderStatus ResultType
Definition:
status-dataset.hpp:125
ndn::nfd::ChannelDataset::ResultType
std::vector< ChannelStatus > ResultType
Definition:
status-dataset.hpp:194
strategy-choice.hpp
face-query-filter.hpp
ndn::nfd::FaceDataset
represents a faces/list dataset
Definition:
status-dataset.hpp:155
ndn::nfd::StrategyChoiceDataset::ResultType
std::vector< StrategyChoice > ResultType
Definition:
status-dataset.hpp:228
ndn::nfd::ChannelDataset
represents a faces/channels dataset
Definition:
status-dataset.hpp:189
channel-status.hpp
ndn::nfd::StatusDataset::ParamType
int ParamType
if defined, specifies constructor argument type; otherwise, constructor has no argument ...
Definition:
status-dataset.hpp:53
ndn::nfd::FaceQueryDataset
represents a faces/query dataset
Definition:
status-dataset.hpp:167
ndn::name
Definition:
name-component.cpp:37
ndn::nfd::FibDataset
represents a fib/list dataset
Definition:
status-dataset.hpp:206
ndn::tlv::Error
represents an error in TLV encoding or decoding
Definition:
tlv.hpp:50
fib-entry.hpp
ndn::nfd::RibDataset::ResultType
std::vector< RibEntry > ResultType
Definition:
status-dataset.hpp:245
ndn::ConstBufferPtr
shared_ptr< const Buffer > ConstBufferPtr
Definition:
buffer.hpp:89
ndnSIM
ndn-cxx
src
mgmt
nfd
status-dataset.hpp
Generated on Thu Nov 2 2017 03:30:28 for ndnSIM by
1.8.11