NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
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
#ifdef DOXYGEN
46
50
typedef
int
ParamType
;
51
#endif
52
58
Name
59
getDatasetPrefix
(
const
Name
& prefix)
const
;
60
61
#ifdef DOXYGEN
62
65
typedef
std::vector<int>
ResultType
;
66
#endif
67
71
class
ParseResultError
:
public
tlv::Error
72
{
73
public
:
74
explicit
75
ParseResultError
(
const
std::string& what)
76
: tlv::
Error
(what)
77
{
78
}
79
};
80
81
#ifdef DOXYGEN
82
87
ResultType
88
parseResult
(
ConstBufferPtr
payload)
const
;
89
#endif
90
91
protected
:
96
explicit
97
StatusDataset
(
const
PartialName
& datasetName);
98
99
private
:
104
virtual
void
105
addParameters(
Name
&
name
)
const
;
106
107
private
:
108
PartialName
m_datasetName;
109
};
110
111
117
class
ForwarderGeneralStatusDataset
:
public
StatusDataset
118
{
119
public
:
120
ForwarderGeneralStatusDataset
();
121
122
typedef
ForwarderStatus
ResultType
;
123
124
ResultType
125
parseResult
(
ConstBufferPtr
payload)
const
;
126
};
127
128
133
class
FaceDatasetBase
:
public
StatusDataset
134
{
135
public
:
136
typedef
std::vector<FaceStatus>
ResultType
;
137
138
ResultType
139
parseResult
(
ConstBufferPtr
payload)
const
;
140
141
protected
:
142
explicit
143
FaceDatasetBase
(
const
PartialName
& datasetName);
144
};
145
146
152
class
FaceDataset
:
public
FaceDatasetBase
153
{
154
public
:
155
FaceDataset
();
156
};
157
158
164
class
FaceQueryDataset
:
public
FaceDatasetBase
165
{
166
public
:
167
typedef
FaceQueryFilter
ParamType
;
168
169
explicit
170
FaceQueryDataset
(
const
FaceQueryFilter
& filter);
171
172
private
:
173
virtual
void
174
addParameters(
Name
&
name
)
const override
;
175
176
private
:
177
FaceQueryFilter
m_filter;
178
};
179
180
186
class
ChannelDataset
:
public
StatusDataset
187
{
188
public
:
189
ChannelDataset
();
190
191
typedef
std::vector<ChannelStatus>
ResultType
;
192
193
ResultType
194
parseResult
(
ConstBufferPtr
payload)
const
;
195
};
196
197
203
class
FibDataset
:
public
StatusDataset
204
{
205
public
:
206
FibDataset
();
207
208
typedef
std::vector<FibEntry>
ResultType
;
209
210
ResultType
211
parseResult
(
ConstBufferPtr
payload)
const
;
212
};
213
214
220
class
StrategyChoiceDataset
:
public
StatusDataset
221
{
222
public
:
223
StrategyChoiceDataset
();
224
225
typedef
std::vector<StrategyChoice>
ResultType
;
226
227
ResultType
228
parseResult
(
ConstBufferPtr
payload)
const
;
229
};
230
231
237
class
RibDataset
:
public
StatusDataset
238
{
239
public
:
240
RibDataset
();
241
242
typedef
std::vector<RibEntry>
ResultType
;
243
244
ResultType
245
parseResult
(
ConstBufferPtr
payload)
const
;
246
};
247
248
249
}
// namespace nfd
250
}
// namespace ndn
251
252
#endif // NDN_MGMT_NFD_STATUS_DATASET_HPP
ndn::nfd::FaceDatasetBase
provides common functionality among FaceDataset and FaceQueryDataset
Definition:
status-dataset.hpp:133
ndn::nfd::StatusDataset::ParseResultError
indicates reassembled payload cannot be parsed as ResultType
Definition:
status-dataset.hpp:71
ndn::nfd::ForwarderStatus
represents NFD Forwarder Status
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::ForwarderGeneralStatusDataset
represents a status/general dataset
Definition:
status-dataset.hpp:117
ndn::tlv::Error::Error
Error(const std::string &what)
Definition:
tlv.hpp:54
ndn::nfd::FaceQueryDataset::ParamType
FaceQueryFilter ParamType
Definition:
status-dataset.hpp:167
rib-entry.hpp
face-status.hpp
ndn::nfd::StatusDataset::ParseResultError::ParseResultError
ParseResultError(const std::string &what)
Definition:
status-dataset.hpp:75
ndn::nfd::StatusDataset
base class of NFD StatusDataset
Definition:
status-dataset.hpp:42
ndn::nfd::StatusDataset::getDatasetPrefix
Name getDatasetPrefix(const Name &prefix) const
constructs a name prefix for the dataset
Definition:
status-dataset.cpp:34
ndn::nfd::FaceDatasetBase::ResultType
std::vector< FaceStatus > ResultType
Definition:
status-dataset.hpp:136
ndn::nfd::RibDataset
represents a rib/list dataset
Definition:
status-dataset.hpp:237
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:65
ndn::nfd::StrategyChoiceDataset
represents a strategy-choice/list dataset
Definition:
status-dataset.hpp:220
forwarder-status.hpp
ndn::Name
Name abstraction to represent an absolute name.
Definition:
name.hpp:46
ndn::nfd::FibDataset::ResultType
std::vector< FibEntry > ResultType
Definition:
status-dataset.hpp:208
ndn::nfd::FaceQueryFilter
represents Face Query Filter
Definition:
face-query-filter.hpp:36
ndn::nfd::ForwarderGeneralStatusDataset::ResultType
ForwarderStatus ResultType
Definition:
status-dataset.hpp:122
ndn::nfd::ChannelDataset::ResultType
std::vector< ChannelStatus > ResultType
Definition:
status-dataset.hpp:191
strategy-choice.hpp
face-query-filter.hpp
ndn::nfd::FaceDataset
represents a faces/list dataset
Definition:
status-dataset.hpp:152
ndn::nfd::StrategyChoiceDataset::ResultType
std::vector< StrategyChoice > ResultType
Definition:
status-dataset.hpp:225
ndn::nfd::ChannelDataset
represents a faces/channels dataset
Definition:
status-dataset.hpp:186
channel-status.hpp
ndn::ConstBufferPtr
shared_ptr< const Buffer > ConstBufferPtr
Definition:
buffer.hpp:33
ndn::nfd::StatusDataset::ParamType
int ParamType
if defined, specifies constructor argument type; otherwise, constructor has no argument ...
Definition:
status-dataset.hpp:50
ndn::nfd::StatusDataset::parseResult
ResultType parseResult(ConstBufferPtr payload) const
parses a result from reassembled payload
ndn::nfd::FaceQueryDataset
represents a faces/query dataset
Definition:
status-dataset.hpp:164
ndn::name
Definition:
name-component.cpp:36
ndn::nfd::FibDataset
represents a fib/list dataset
Definition:
status-dataset.hpp:203
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:242
ndnSIM
ndn-cxx
src
mgmt
nfd
status-dataset.hpp
Generated on Wed Jan 11 2017 18:17:14 for ndnSIM by
1.8.13