It is meant to carry the payload of an Event.
More...
#include <RTEventPayload.h>
|
void | setValue (const char *payload, std::size_t size) |
|
It is meant to carry the payload of an Event.
fesa::RTEventPayload::RTEventPayload |
( |
| ) |
|
fesa::RTEventPayload::RTEventPayload |
( |
const char * |
payload, |
|
|
std::size_t |
size |
|
) |
| |
Constructor. Performs a copy of the payload (size bytes).
- Parameters
-
payload | pointer to the payload |
size | size of the payload |
fesa::RTEventPayload::RTEventPayload |
( |
const std::string & |
payload | ) |
|
Constructor. The string's C representation is copied (including the terminating NULL byte).
- Parameters
-
payload | string containing the payload. |
fesa::RTEventPayload::RTEventPayload |
( |
const RTEventPayload & |
payload | ) |
|
Copy constructor needed due to the heap allocation of the payload.
Copy Constructor
fesa::RTEventPayload::~RTEventPayload |
( |
| ) |
|
|
virtual |
template<typename T >
const T * fesa::RTEventPayload::getValue |
( |
| ) |
const |
returns the payload of the event
- Returns
- the payload
const char * fesa::RTEventPayload::getValue |
( |
std::size_t & |
size | ) |
const |
returns the value of the payload
- Parameters
-
size | a reference where the actual size of the value will be set |
- Returns
- a char*
void fesa::RTEventPayload::setValue |
( |
const char * |
payload, |
|
|
std::size_t |
size |
|
) |
| |
|
protected |
Sets or resets the payload
- Parameters
-
payload | the new payload |
size | the new size of the payload |
The documentation for this class was generated from the following files:
- RTEventPayload.h
- RTEventPayload.cpp