10 #ifndef _EMBEDDED_RPC__FUNCTION_H_ 11 #define _EMBEDDED_RPC__FUNCTION_H_ 14 #include "StructType.h" 128 :
Symbol(kFunctionSymbol, tok)
130 , m_uniqueId(++s_idCounter)
131 , m_interface(interface)
132 , m_functionType(nullptr)
146 :
Symbol(kFunctionSymbol, tok)
148 , m_uniqueId(uniqueId)
149 , m_interface(interface)
150 , m_functionType(nullptr)
152 s_idCounter = uniqueId;
216 #endif // _EMBEDDED_RPC__FUNCTION_H_ Function data type.
Definition: FunctionType.h:30
StructMember * getReturnStructMemberType()
This function returns data type of function return value.
Definition: Function.h:63
StructMember * m_returnType
Definition: Function.h:105
Member of a struct.
Definition: StructMember.h:37
StructType & getParameters()
This function returns function parameters.
Definition: Function.h:49
DataType * getReturnType()
This function returns data type of function return value.
Definition: Function.h:56
virtual std::string getDescription() const =0
This function returns description about the interface function.
Structure data type.
Definition: StructType.h:28
Function declaration.
Definition: Function.h:116
uint32_t m_uniqueId
Definition: Function.h:207
Base class for all named declarations in the IDL.
Definition: Symbol.h:27
Function(const Token &tok, Interface *interface)
Constructor.
Definition: Function.h:127
DataType * getDataType()
This function returns pointer to element data type.
Definition: StructMember.h:81
Function(const Token &tok, Interface *interface, uint32_t uniqueId)
Constructor.
Definition: Function.h:145
Interface * getInterface() const
This function returns parent Interface.
Definition: Function.h:174
FunctionType * m_functionType
Definition: Function.h:209
Base class for data types.
Definition: DataType.h:25
Encapsulates all information about a token.
Definition: Token.h:60
static uint32_t s_idCounter
Definition: Function.h:211
StructType m_parameters
Definition: Function.h:104
Interface * m_interface
Definition: Function.h:208
Function base declaration.
Definition: Function.h:29
uint32_t getUniqueId() const
This function returns function unique id.
Definition: Function.h:160
FunctionType * getFunctionType() const
This function returns FunctionType (callback type).
Definition: Function.h:204
void setFunctionType(FunctionType *functionType)
This function sets FunctionType (callback type).
Definition: Function.h:197
An interface that contains functions.
Definition: Interface.h:28
void setIsOneway(bool isOneway)
This function set true/false, when function return type is/isn't oneway.
Definition: Function.h:85
FunctionBase()
Constructor.
Definition: Function.h:35
bool m_isOneway
Definition: Function.h:106
bool isOneway() const
This function returns true/false, when function return type is/isn't oneway.
Definition: Function.h:78
void setReturnStructMemberType(StructMember *returnType)
This function set data type of function return value.
Definition: Function.h:70
void setUniqueId(uint32_t newId)
This function set function unique id.
Definition: Function.h:167