HiveMind
BittyBuzzFunctionDescription.h
Go to the documentation of this file.
1 #ifndef __BITTYBUZZFUNCTIONDESCRIPTION_H_
2 #define __BITTYBUZZFUNCTIONDESCRIPTION_H_
3 
4 #include <array>
5 #include <pheromones/FunctionDescriptionArgumentTypeDTO.h>
6 #include <pheromones/FunctionDescriptionDTO.h>
7 #include <tuple>
8 
12  public:
16  BittyBuzzFunctionDescription(const char* functionName);
17 
21  const std::array<std::tuple<const char*, FunctionDescriptionArgumentTypeDTO>,
22  FunctionDescriptionDTO::ARGUMENTS_MAX_SIZE>&
23  getArguments() const;
24 
28  uint16_t getArgumentsLength() const;
29 
33  const char* getFunctionName() const;
34 
41  bool addArgument(const char* argumentName, FunctionDescriptionArgumentTypeDTO argumentType);
42 
43  private:
44  const char* m_functionName;
45  std::array<std::tuple<const char*, FunctionDescriptionArgumentTypeDTO>,
46  FunctionDescriptionDTO::ARGUMENTS_MAX_SIZE>
49 };
50 
51 #endif // __BITTYBUZZFUNCTIONDESCRIPTION_H_
BittyBuzzFunctionDescription::getFunctionName
const char * getFunctionName() const
get the name of the function
Definition: BittyBuzzFunctionDescription.cpp:15
BittyBuzzFunctionDescription::m_argumentDescriptions
std::array< std::tuple< const char *, FunctionDescriptionArgumentTypeDTO >, FunctionDescriptionDTO::ARGUMENTS_MAX_SIZE > m_argumentDescriptions
Definition: BittyBuzzFunctionDescription.h:47
BittyBuzzFunctionDescription::m_argumentDescriptionsLength
uint16_t m_argumentDescriptionsLength
Definition: BittyBuzzFunctionDescription.h:48
BittyBuzzFunctionDescription::addArgument
bool addArgument(const char *argumentName, FunctionDescriptionArgumentTypeDTO argumentType)
add an argument to the list of the description
Definition: BittyBuzzFunctionDescription.cpp:17
BittyBuzzFunctionDescription
Description for a function, used for the FunctionDescriptionRequest/Response.
Definition: BittyBuzzFunctionDescription.h:11
BittyBuzzFunctionDescription::BittyBuzzFunctionDescription
BittyBuzzFunctionDescription(const char *functionName)
Definition: BittyBuzzFunctionDescription.cpp:3
BittyBuzzFunctionDescription::getArgumentsLength
uint16_t getArgumentsLength() const
get the length of the array
Definition: BittyBuzzFunctionDescription.cpp:12
BittyBuzzFunctionDescription::m_functionName
const char * m_functionName
Definition: BittyBuzzFunctionDescription.h:44
BittyBuzzFunctionDescription::getArguments
const std::array< std::tuple< const char *, FunctionDescriptionArgumentTypeDTO >, FunctionDescriptionDTO::ARGUMENTS_MAX_SIZE > & getArguments() const
get the array of arguments description
Definition: BittyBuzzFunctionDescription.cpp:8