NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
nfd-channel-status.hpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
22
#ifndef NDN_MANAGEMENT_NFD_CHANNEL_STATUS_HPP
23
#define NDN_MANAGEMENT_NFD_CHANNEL_STATUS_HPP
24
25
#include "../encoding/block.hpp"
26
27
namespace
ndn
{
28
namespace
nfd
{
29
35
class
ChannelStatus
36
{
37
public
:
38
class
Error
:
public
tlv::Error
39
{
40
public
:
41
explicit
42
Error
(
const
std::string& what)
43
: tlv::
Error
(what)
44
{
45
}
46
};
47
48
ChannelStatus
();
49
50
explicit
51
ChannelStatus
(
const
Block
& payload);
52
53
template
<encoding::Tag TAG>
54
size_t
55
wireEncode
(
EncodingImpl<TAG>
& encoder)
const
;
56
57
const
Block
&
58
wireEncode
()
const
;
59
60
void
61
wireDecode
(
const
Block
& wire);
62
63
public
:
// getters & setters
64
const
std::string&
65
getLocalUri
()
const
66
{
67
return
m_localUri;
68
}
69
70
ChannelStatus
&
71
setLocalUri
(
const
std::string localUri);
72
73
private
:
74
std::string m_localUri;
75
76
mutable
Block
m_wire;
77
};
78
79
}
// namespace nfd
80
}
// namespace ndn
81
82
#endif // NDN_MANAGEMENT_NFD_CHANNEL_STATUS_HPP
ndn
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-strategy-choice-helper.hpp:34
ndn::nfd::ChannelStatus::getLocalUri
const std::string & getLocalUri() const
Definition:
nfd-channel-status.hpp:65
ndn::nfd::ChannelStatus::Error
Definition:
nfd-channel-status.hpp:38
ndn::nfd::ChannelStatus::wireEncode
const Block & wireEncode() const
Definition:
nfd-channel-status.cpp:66
ndn::nfd::ChannelStatus::Error::Error
Error(const std::string &what)
Definition:
nfd-channel-status.hpp:42
ndn::Block
Class representing a wire element of NDN-TLV packet format.
Definition:
block.hpp:43
nfd
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-common.hpp:40
ndn::encoding::EncodingImpl
Definition:
encoding-buffer-fwd.hpp:45
ndn::nfd::ChannelStatus
represents NFD Channel Status dataset
Definition:
nfd-channel-status.hpp:35
ndn::nfd::ChannelStatus::wireDecode
void wireDecode(const Block &wire)
Definition:
nfd-channel-status.cpp:82
ndn::tlv::Error
represents an error in TLV encoding or decoding
Definition:
tlv.hpp:50
ndn::nfd::ChannelStatus::setLocalUri
ChannelStatus & setLocalUri(const std::string localUri)
Definition:
nfd-channel-status.cpp:101
ndn::nfd::ChannelStatus::ChannelStatus
ChannelStatus()
Definition:
nfd-channel-status.cpp:36
ndnSIM
ndn-cxx
src
management
nfd-channel-status.hpp
Generated on Fri Feb 23 2018 12:30:54 for ndnSIM by
1.8.14