Classes | |
class | Component |
Represents a name component. More... | |
Enumerations | |
enum | UriFormat { UriFormat::CANONICAL, UriFormat::ALTERNATE, UriFormat::ENV_OR_CANONICAL, UriFormat::ENV_OR_ALTERNATE, UriFormat::DEFAULT = ENV_OR_ALTERNATE } |
Format used for the URI representation of a name. More... | |
enum | Convention { Convention::MARKER = 1 << 0, Convention::TYPED = 1 << 1, Convention::EITHER = MARKER | TYPED } |
Identify a style of NDN Naming Conventions. More... | |
enum | : uint8_t { SEGMENT_MARKER = 0x00, SEGMENT_OFFSET_MARKER = 0xFB, VERSION_MARKER = 0xFD, TIMESTAMP_MARKER = 0xFC, SEQUENCE_NUMBER_MARKER = 0xFE } |
Name component markers defined in Naming Conventions revision 1 (obsolete). More... | |
Functions | |
Convention | getConventionEncoding () |
Return which Naming Conventions style to use while encoding. More... | |
void | setConventionEncoding (Convention convention) |
Set which Naming Conventions style to use while encoding. More... | |
Convention | getConventionDecoding () |
Return which Naming Conventions style(s) to accept while decoding. More... | |
void | setConventionDecoding (Convention convention) |
Set which Naming Conventions style(s) to accept while decoding. More... | |
static bool | canDecodeMarkerConvention () |
static bool | canDecodeTypedConvention () |
static bool | wantAltUri (UriFormat format) |
static Component | parseUriEscapedValue (uint32_t type, const char *input, size_t len) |
NDN_CXX_DEFINE_WIRE_ENCODE_INSTANTIATIONS (Component) | |
NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS (Component) | |
|
strong |
Format used for the URI representation of a name.
Enumerator | |
---|---|
CANONICAL | Always use |
ALTERNATE | Always prefer the alternate format when available. |
ENV_OR_CANONICAL | Same as UriFormat::CANONICAL, unless |
ENV_OR_ALTERNATE | Same as UriFormat::ALTERNATE, unless |
DEFAULT | Use the library's default format; currently equivalent to UriFormat::ENV_OR_ALTERNATE. |
Definition at line 36 of file name-component.hpp.
|
strong |
Identify a style of NDN Naming Conventions.
Enumerator | |
---|---|
MARKER | Component markers (revision 1) |
TYPED | Typed name components (revision 3) |
EITHER |
Definition at line 52 of file name-component.hpp.
anonymous enum : uint8_t |
Name component markers defined in Naming Conventions revision 1 (obsolete).
Enumerator | |
---|---|
SEGMENT_MARKER | |
SEGMENT_OFFSET_MARKER | |
VERSION_MARKER | |
TIMESTAMP_MARKER | |
SEQUENCE_NUMBER_MARKER |
Definition at line 61 of file name-component.hpp.
Convention ndn::name::getConventionEncoding | ( | ) |
Return which Naming Conventions style to use while encoding.
The library default is Convention::TYPED.
Definition at line 49 of file name-component.cpp.
References g_conventionEncoding.
void ndn::name::setConventionEncoding | ( | Convention | convention | ) |
Set which Naming Conventions style to use while encoding.
convention | either Convention::MARKER or Convention::TYPED. |
Definition at line 55 of file name-component.cpp.
Convention ndn::name::getConventionDecoding | ( | ) |
Return which Naming Conventions style(s) to accept while decoding.
The current library default is Convention::EITHER, but this will change in the future.
Definition at line 68 of file name-component.cpp.
References g_conventionDecoding.
void ndn::name::setConventionDecoding | ( | Convention | convention | ) |
Set which Naming Conventions style(s) to accept while decoding.
convention | Convention::MARKER or Convention::TYPED accepts the specified style only; Convention::EITHER accepts either. |
Definition at line 74 of file name-component.cpp.
|
static |
Definition at line 80 of file name-component.cpp.
References MARKER, and ndn::to_underlying().
Referenced by ndn::name::Component::isByteOffset(), ndn::name::Component::isSegment(), ndn::name::Component::isSequenceNumber(), ndn::name::Component::isTimestamp(), ndn::name::Component::isVersion(), ndn::name::Component::toByteOffset(), ndn::name::Component::toSegment(), ndn::name::Component::toSequenceNumber(), ndn::name::Component::toTimestamp(), and ndn::name::Component::toVersion().
|
static |
Definition at line 86 of file name-component.cpp.
References ndn::to_underlying(), and TYPED.
Referenced by ndn::name::Component::isByteOffset(), ndn::name::Component::isSegment(), ndn::name::Component::isSequenceNumber(), ndn::name::Component::isTimestamp(), ndn::name::Component::isVersion(), ndn::name::Component::toByteOffset(), ndn::name::Component::toSegment(), ndn::name::Component::toSequenceNumber(), ndn::name::Component::toTimestamp(), and ndn::name::Component::toVersion().
|
static |
Definition at line 92 of file name-component.cpp.
References ALTERNATE, ENV_OR_ALTERNATE, ENV_OR_CANONICAL, ndn::tlv::NameComponentMax, ndn::tlv::NameComponentMin, NDN_THROW, ndn::to_string(), and ndn::Block::type().
Referenced by ndn::name::Component::toUri().
|
static |
Definition at line 163 of file name-component.cpp.
References ndn::name::Component::Component(), NDN_THROW, ndn::unescape(), and ndn::Block::value().
Referenced by ndn::name::Component::fromEscapedString().
ndn::name::NDN_CXX_DEFINE_WIRE_ENCODE_INSTANTIATIONS | ( | Component | ) |
Referenced by ndn::name::Component::wireEncode().
ndn::name::NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS | ( | Component | ) |
ndn::name::WireEncodable< Component > |
Definition at line 39 of file name-component.cpp.
ndn::name::WireEncodableWithEncodingBuffer< Component > |
Definition at line 40 of file name-component.cpp.
ndn::name::WireDecodable< Component > |
Definition at line 41 of file name-component.cpp.
|
static |
Definition at line 45 of file name-component.cpp.
Referenced by getConventionEncoding().
|
static |
Definition at line 46 of file name-component.cpp.
Referenced by getConventionDecoding().