BufferParameter.hpp
Go to the documentation of this file.
const uint8_t * getParameterPointer(int32_t _id) const
Get the start pointer of the parameter.
void addParameter()
Add parameter (or not.. this is the end of an auto resursive add parameter)
bool writeOn(enet::WebSocket &_interface) override
Write the buffer on a specific interface.
ZEUS_TYPE_DATA getParameter(int32_t _id) const
Template to get a parameter with a specific type.
void composeWith(const uint8_t *_buffer, uint32_t _lenght) override
When receive new data form websocket, it might be added by this input (set all the frame ...
uint16_t getNumberParameter() const
Get the number of parameter availlable.
uint32_t getParameterSize(int32_t _id) const
Get the size of the parameter availlable in the parameter pointer.
std::string simpleStringParam(uint32_t _id) const
Convert the parameter in a simple human readable string.
zeus::ParamType getParameterType(int32_t _id) const
Get the type of a parameter.
Definition: BufferParameter.hpp:13
void addParameterEmptyVector()
Add an empty vector with no type.
std::vector< std::pair< int32_t, std::vector< uint8_t > > > m_parameter
list of the parameter (offset of start data and buffer of data (subprotocol...)
Definition: BufferParameter.hpp:16