ndn-cxx: NDN C++ Library 0.9.0-33-g832ea91d
Loading...
Searching...
No Matches
ndn::nfd::RibAnnounceCommand Class Reference

Represents a rib/announce command. More...

#include <ndn-cxx/mgmt/nfd/control-command.hpp>

+ Inheritance diagram for ndn::nfd::RibAnnounceCommand:
+ Collaboration diagram for ndn::nfd::RibAnnounceCommand:

Public Types

using RequestFormat = ApplicationParametersCommandFormat< RibAnnounceParameters >
 
using RequestParameters = typename RequestFormat::ParametersType
 
using ResponseFormat = ControlParametersCommandFormat
 
using ResponseParameters = typename ResponseFormat::ParametersType
 

Static Public Member Functions

static void applyDefaultsToRequest (RequestParameters &params)
 Apply default values to missing fields in request.
 
static void applyDefaultsToResponse (ResponseParameters &params)
 Apply default values to missing fields in response.
 
static Interest createRequest (Name commandPrefix, const RequestParameters &params)
 Construct request Interest.
 
static PartialName getName ()
 Return the command name (module + verb).
 
static shared_ptr< mgmt::ControlParametersBaseparseRequest (const Interest &interest, size_t prefixLen)
 Extract parameters from request Interest.
 
static void validateRequest (const RequestParameters &params)
 Validate request parameters.
 
static void validateResponse (const ResponseParameters &params)
 Validate response parameters.
 

Static Public Attributes

static const ::ndn::name::Component module {std::string_view( "rib" )}
 
static const ::ndn::name::Component verb {std::string_view( "announce" )}
 

Detailed Description

Member Typedef Documentation

◆ RequestFormat

◆ RequestParameters

◆ ResponseFormat

◆ ResponseParameters

Member Function Documentation

◆ applyDefaultsToRequest()

Apply default values to missing fields in request.

Definition at line 221 of file control-command.hpp.

◆ applyDefaultsToResponse()

Apply default values to missing fields in response.

Definition at line 241 of file control-command.hpp.

◆ createRequest()

Construct request Interest.

Exceptions
ArgumentErrorif parameters are invalid

Definition at line 187 of file control-command.hpp.

◆ getName()

Return the command name (module + verb).

Definition at line 177 of file control-command.hpp.

◆ parseRequest()

static shared_ptr< mgmt::ControlParametersBase > ndn::nfd::ControlCommand< RibAnnounceCommand , ApplicationParametersCommandFormat< RibAnnounceParameters > , ControlParametersCommandFormat >::parseRequest ( const Interest interest,
size_t  prefixLen 
)
inlinestaticinherited

Extract parameters from request Interest.

Definition at line 200 of file control-command.hpp.

◆ validateRequest()

Validate request parameters.

Exceptions
ArgumentErrorif parameters are invalid

Definition at line 211 of file control-command.hpp.

◆ validateResponse()

Validate response parameters.

Exceptions
ArgumentErrorif parameters are invalid

Definition at line 231 of file control-command.hpp.

Member Data Documentation

◆ module

const ::ndn::name::Component ndn::nfd::RibAnnounceCommand::module {std::string_view( "rib" )}
inlinestatic

Definition at line 503 of file control-command.hpp.

◆ verb

const ::ndn::name::Component ndn::nfd::RibAnnounceCommand::verb {std::string_view( "announce" )}
inlinestatic

Definition at line 503 of file control-command.hpp.