cogip::wizard::Wizard Class Reference

Wizard class. More...

Detailed Description

Wizard class.

Definition at line 47 of file Wizard.hpp.

#include <Wizard.hpp>

+ Collaboration diagram for cogip::wizard::Wizard:

Public Types

using PB_Message = PB_Wizard< WIZARD_NAME_MAX_LENGTH, WIZARD_NAME_MAX_LENGTH, WIZARD_NAME_MAX_LENGTH, WIZARD_REP_MAX, WIZARD_REP_MAX, WIZARD_REP_MAX, WIZARD_NAME_MAX_LENGTH, WIZARD_NAME_MAX_LENGTH, WIZARD_REP_MAX, WIZARD_REP_MAX, WIZARD_REP_MAX, WIZARD_REP_MAX, WIZARD_REP_MAX, WIZARD_NAME_MAX_LENGTH, WIZARD_REP_MAX, WIZARD_NAME_MAX_LENGTH, WIZARD_NAME_MAX_LENGTH >
 Protobuf message type. Shortcut for original template type.
 

Public Member Functions

 Wizard (cogip::uartpb::UartProtobuf &uartpb)
 Constructor. More...
 
void handle_response (cogip::uartpb::ReadBuffer &buffer)
 Message handler for responses. More...
 
const PB_Messagerequest (const PB_Message &request)
 Send a request and wait for the response. More...
 

Constructor & Destructor Documentation

◆ Wizard()

cogip::wizard::Wizard::Wizard ( cogip::uartpb::UartProtobuf &  uartpb)
explicit

Constructor.

Parameters
[in]uartpb[in] uartpb pointer used to send/receive messages

Member Function Documentation

◆ handle_response()

void cogip::wizard::Wizard::handle_response ( cogip::uartpb::ReadBuffer &  buffer)

Message handler for responses.

Parameters
[in]buffer[in] buffer containing the received message

◆ request()

const PB_Message& cogip::wizard::Wizard::request ( const PB_Message request)

Send a request and wait for the response.

Returns
the response
Parameters
[in]request[in] request to send

The documentation for this class was generated from the following file: