Description for a function, used for the FunctionDescriptionRequest/Response.
More...
#include <BittyBuzzFunctionDescription.h>
Description for a function, used for the FunctionDescriptionRequest/Response.
◆ BittyBuzzFunctionDescription()
BittyBuzzFunctionDescription::BittyBuzzFunctionDescription |
( |
const char * |
functionName | ) |
|
Warning only the pointer is stored so make sure the functionName data lifetime is greater than the funciton description
◆ addArgument()
bool BittyBuzzFunctionDescription::addArgument |
( |
const char * |
argumentName, |
|
|
FunctionDescriptionArgumentTypeDTO |
argumentType |
|
) |
| |
add an argument to the list of the description
- Parameters
-
argumentName | the name of the argument Warning, the function description just keeps a pointer to the name, so make sure the data it's points to is valid during usage |
argumentType | the type of the argument |
- Returns
- true if the operation was successfull, false if not (no more space in the buffer)
◆ getArguments()
const std::array< std::tuple< const char *, FunctionDescriptionArgumentTypeDTO >, FunctionDescriptionDTO::ARGUMENTS_MAX_SIZE > & BittyBuzzFunctionDescription::getArguments |
( |
| ) |
const |
get the array of arguments description
- Returns
- an reference to an std::array with the information stored
◆ getArgumentsLength()
uint16_t BittyBuzzFunctionDescription::getArgumentsLength |
( |
| ) |
const |
get the length of the array
- Returns
- the length of the array
◆ getFunctionName()
const char * BittyBuzzFunctionDescription::getFunctionName |
( |
| ) |
const |
get the name of the function
- Returns
- the name of the function
◆ m_argumentDescriptions
std::array<std::tuple<const char*, FunctionDescriptionArgumentTypeDTO>, FunctionDescriptionDTO::ARGUMENTS_MAX_SIZE> BittyBuzzFunctionDescription::m_argumentDescriptions |
|
private |
◆ m_argumentDescriptionsLength
uint16_t BittyBuzzFunctionDescription::m_argumentDescriptionsLength = 0 |
|
private |
◆ m_functionName
const char* BittyBuzzFunctionDescription::m_functionName |
|
private |
The documentation for this class was generated from the following files: