BufferAnswer.hpp
Go to the documentation of this file.
bool writeOn(enet::WebSocket &_interface) override
Write the buffer on a specific interface.
const std::string & getErrorHelp() const
get the error help (if exist)
void addAnswer(const ZEUS_TYPE_DATA &_value)
set the answer of the call
Definition: BufferAnswer.hpp:46
static ememory::SharedPtr< zeus::BufferAnswer > create()
Create a shared pointer on the BufferAnswer.
enum zeus::Buffer::typeMessage getType() const override
Get the type of the buffer.
Definition: BufferAnswer.hpp:38
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 ...
void addParameter()
Add parameter (or not.. this is the end of an auto resursive add parameter)
void addError(const std::string &_value, const std::string &_comment)
Ann an error on the message answer.
ZEUS_TYPE_DATA getAnswer() const
get the answer value
Definition: BufferAnswer.hpp:55
Answer from a previous call.
Definition: BufferAnswer.hpp:14
BufferAnswer()
basic constructor (hidden to force the use of ememory::SharedPtr) zeus::BufferAnswer::create ...
Definition: BufferAnswer.hpp:24
Definition: BufferParameter.hpp:13