29 msg_t req(con.
ctx(), std::ref(*
this));
HW::item< bool > & m_hw_item
A reference to an object's HW::item that the command will update.
poll(HW::item< bool > &item)
Constructor taking the HW::item to update.
Error codes that VPP will return during a HW write.
std::string to_string() const
convert to string format for debug purposes
A representation of the connection to VPP.
A base class for all RPC commands to VPP.
#define VAPI_CALL(_stmt)
Convenince wrapper macro for error handling in VAPI sends.
rc_t issue(connection &con)
Issue the command to VPP/HW.
static const rc_t OK
The HW write was successfull.
vapi::Connection & ctx()
Retrun the VAPI context the commands will use.
The VPP Object Model (VOM) library.
void set(const rc_t &rc)
Set the HW return code - should only be called from the family of Command objects.
vapi::Control_ping msg_t
convenient typedef
std::string to_string() const
convert to string format for debug purposes
rc_t wait()
Wait on the commands promise.