Inheritance diagram for zeus::BufferCall:
zeus::BufferParameter zeus::Buffer

Public Member Functions

enum zeus::Buffer::typeMessage getType () const override
 
const std::string & getCall () const
 
void setCall (const std::string &_value)
 
- Public Member Functions inherited from zeus::BufferParameter
template<class ZEUS_TYPE_DATA >
ZEUS_TYPE_DATA getParameter (int32_t _id) const
 
zeus::ParamType getParameterType (int32_t _id) const
 
const uint8_t * getParameterPointer (int32_t _id) const
 
uint32_t getParameterSize (int32_t _id) const
 
uint16_t getNumberParameter () const
 
void addParameterEmptyVector ()
 
void addParameter ()
 
std::string simpleStringParam (uint32_t _id) const
 
void composeWith (const uint8_t *_buffer, uint32_t _lenght) override
 
bool writeOn (enet::WebSocket &_interface) override
 
template<class ZEUS_TYPE_DATA >
void addParameter (const ZEUS_TYPE_DATA &_value)
 
void parameterAppendBufferData (ememory::SharedPtr< zeus::BufferData > _obj)
 
- Public Member Functions inherited from zeus::Buffer
virtual ~Buffer ()=default
 
bool haveAsync () const
 
std::vector< zeus::ActionAsyncClient > moveAsync ()
 
void appendBuffer (ememory::SharedPtr< zeus::Buffer > _obj)
 
void clear ()
 
uint32_t getTransactionId () const
 
void setTransactionId (uint32_t _value)
 
uint32_t getClientId () const
 
void setClientId (uint32_t _value)
 
uint32_t getServiceId () const
 
void setServiceId (uint32_t _value)
 
bool getPartFinish () const
 
void setPartFinish (bool _value)
 

Static Public Member Functions

static ememory::SharedPtr< zeus::BufferCallcreate ()
 
- Static Public Member Functions inherited from zeus::Buffer
static ememory::SharedPtr< zeus::Buffercreate ()
 
static ememory::SharedPtr< zeus::Buffercreate (const std::vector< uint8_t > &_buffer)
 

Protected Member Functions

 BufferCall ()
 
void composeWith (const uint8_t *_buffer, uint32_t _lenght) override
 
void appendBufferData (ememory::SharedPtr< zeus::BufferData > _obj) override
 
bool writeOn (enet::WebSocket &_interface) override
 
void generateDisplay (std::ostream &_os) const override
 
- Protected Member Functions inherited from zeus::BufferParameter
template<class ZEUS_TYPE_DATA >
void addParameter (uint16_t _paramId, const ZEUS_TYPE_DATA &_value)
 
- Protected Member Functions inherited from zeus::Buffer
 Buffer ()
 

Protected Attributes

std::string m_callName
 
- Protected Attributes inherited from zeus::BufferParameter
std::vector< std::pair< int32_t, std::vector< uint8_t > > > m_parameter
 
- Protected Attributes inherited from zeus::Buffer
headerBin m_header
 
std::vector< zeus::ActionAsyncClient > m_multipleSend
 

Friends

class zeus::Buffer
 

Additional Inherited Members

- Public Types inherited from zeus::Buffer
enum  typeMessage {
  typeMessage::unknow = 0x0000, typeMessage::call = 0x0001, typeMessage::answer = 0x0002, typeMessage::data = 0x0003,
  typeMessage::event = 0x0004
}
 

Constructor & Destructor Documentation

§ BufferCall()

zeus::BufferCall::BufferCall ( )
inlineprotected

basic constructor (hidden to force the use of ememory::SharedPtr) zeus::BufferCall::create

Member Function Documentation

§ composeWith()

void zeus::BufferCall::composeWith ( const uint8_t *  _buffer,
uint32_t  _lenght 
)
overrideprotectedvirtual

When receive new data form websocket, it might be added by this input (set all the frame ...)

Parameters
[in]_bufferPointer on the data to add.
[in]_lenghtnumber of octet to add.

Reimplemented from zeus::Buffer.

§ create()

static ememory::SharedPtr<zeus::BufferCall> zeus::BufferCall::create ( )
static

Create a shared pointer on the BufferCall.

Returns
Allocated Buffer.

§ getCall()

const std::string& zeus::BufferCall::getCall ( ) const

get the call value of the buffer

Returns
string of the function to call

§ getType()

enum zeus::Buffer::typeMessage zeus::BufferCall::getType ( ) const
inlineoverridevirtual

Get the type of the buffer.

Returns
the current type of the buffer

Reimplemented from zeus::Buffer.

§ setCall()

void zeus::BufferCall::setCall ( const std::string &  _value)

Set the call value of the buffer.

Parameters
[in]_valueFunction to call

§ writeOn()

bool zeus::BufferCall::writeOn ( enet::WebSocket _interface)
overrideprotectedvirtual

Write the buffer on a specific interface.

Parameters
[in]_interfacesocket to write data
Returns
true of no error appear

Reimplemented from zeus::Buffer.


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