FD.io VPP
v19.01.2-3-gf61a1a8
Vector Packet Processing
|
A base class for VPP dump commands. More...
Public Types | |
typedef MSG | msg_t |
typedef MSG::resp_type | record_t |
typedef vapi::Result_set< typename MSG::resp_type >::const_iterator | const_iterator |
Public Member Functions | |
dump_cmd () | |
Default Constructor. More... | |
virtual | ~dump_cmd () |
Destructor. More... | |
dump_cmd (const dump_cmd &d)=default | |
const_iterator | begin () |
Constant iterator to the start of the records retunred during the dump. More... | |
const_iterator | end () |
Constant iterator to the end of the records retunred during the dump. More... | |
rc_t | wait () |
Wait for the issue of the command to complete. More... | |
vapi_error_e | operator() (MSG &d) |
Call operator called when the dump is complete. More... | |
virtual void | retire (connection &con) |
Retire/cancel a long running command. More... | |
Public Member Functions inherited from VOM::cmd | |
cmd () | |
Default constructor. More... | |
virtual | ~cmd () |
Virtual destructor. More... | |
virtual rc_t | issue (connection &con)=0 |
Issue the command to VPP/HW. More... | |
virtual std::string | to_string () const =0 |
convert to string format for debug purposes More... | |
Protected Member Functions | |
void | succeeded () |
Dump commands should not be issued whilst the HW is disabled. More... | |
Protected Attributes | |
std::promise< rc_t > | m_promise |
The underlying promise that implements the synchornous nature of the command issue. More... | |
std::unique_ptr< MSG > | m_dump |
The VAPI event registration. More... | |
Friends | |
class | HW::cmd_q |
The HW::cmd_q is a friend so it can call suceedded. More... | |
A base class for VPP dump commands.
Dump commands are one of the sub-set of command types to VPP. Here the client makes a read request on the resource and VPP responds with all the records. This command is executed synchronously. Once complete the client can 'pop' the records from the command object
Definition at line 43 of file dump_cmd.hpp.
typedef vapi::Result_set<typename MSG::resp_type>::const_iterator VOM::dump_cmd< MSG >::const_iterator |
Definition at line 50 of file dump_cmd.hpp.
typedef MSG VOM::dump_cmd< MSG >::msg_t |
Definition at line 46 of file dump_cmd.hpp.
typedef MSG::resp_type VOM::dump_cmd< MSG >::record_t |
Definition at line 47 of file dump_cmd.hpp.
|
inline |
Default Constructor.
Definition at line 55 of file dump_cmd.hpp.
|
inlinevirtual |
Destructor.
Definition at line 63 of file dump_cmd.hpp.
|
default |
|
inline |
Constant iterator to the start of the records retunred during the dump.
Definition at line 70 of file dump_cmd.hpp.
|
inline |
Constant iterator to the end of the records retunred during the dump.
Definition at line 83 of file dump_cmd.hpp.
|
inline |
Call operator called when the dump is complete.
Definition at line 111 of file dump_cmd.hpp.
|
inlinevirtual |
Retire/cancel a long running command.
Implements VOM::cmd.
Definition at line 121 of file dump_cmd.hpp.
|
inlineprotectedvirtual |
Dump commands should not be issued whilst the HW is disabled.
Implements VOM::cmd.
Definition at line 133 of file dump_cmd.hpp.
|
inline |
Wait for the issue of the command to complete.
Definition at line 93 of file dump_cmd.hpp.
|
friend |
The HW::cmd_q is a friend so it can call suceedded.
Definition at line 138 of file dump_cmd.hpp.
|
protected |
The VAPI event registration.
Definition at line 143 of file dump_cmd.hpp.
|
protected |
The underlying promise that implements the synchornous nature of the command issue.
Definition at line 128 of file dump_cmd.hpp.