36 #ifndef _EMBEDDED_RPC__FUNCTION_H_ 37 #define _EMBEDDED_RPC__FUNCTION_H_ 40 #include "StructType.h" 154 :
Symbol(kFunctionSymbol, tok)
156 , m_uniqueId(++s_idCounter)
157 , m_interface(interface)
158 , m_functionType(nullptr)
172 :
Symbol(kFunctionSymbol, tok)
174 , m_uniqueId(uniqueId)
175 , m_interface(interface)
176 , m_functionType(nullptr)
178 s_idCounter = uniqueId;
242 #endif // _EMBEDDED_RPC__FUNCTION_H_ Function data type.
Definition: FunctionType.h:56
StructMember * getReturnStructMemberType()
This function returns data type of function return value.
Definition: Function.h:89
StructMember * m_returnType
Definition: Function.h:131
Member of a struct.
Definition: StructMember.h:63
StructType & getParameters()
This function returns function parameters.
Definition: Function.h:75
DataType * getReturnType()
This function returns data type of function return value.
Definition: Function.h:82
virtual std::string getDescription() const =0
This function returns description about the interface function.
Structure data type.
Definition: StructType.h:54
Function declaration.
Definition: Function.h:142
uint32_t m_uniqueId
Definition: Function.h:233
Base class for all named declarations in the IDL.
Definition: Symbol.h:53
Function(const Token &tok, Interface *interface)
Constructor.
Definition: Function.h:153
DataType * getDataType()
This function returns pointer to element data type.
Definition: StructMember.h:107
Function(const Token &tok, Interface *interface, uint32_t uniqueId)
Constructor.
Definition: Function.h:171
Interface * getInterface() const
This function returns parent Interface.
Definition: Function.h:200
FunctionType * m_functionType
Definition: Function.h:235
Base class for data types.
Definition: DataType.h:51
Encapsulates all information about a token.
Definition: Token.h:86
static uint32_t s_idCounter
Definition: Function.h:237
StructType m_parameters
Definition: Function.h:130
Interface * m_interface
Definition: Function.h:234
Function base declaration.
Definition: Function.h:55
uint32_t getUniqueId() const
This function returns function unique id.
Definition: Function.h:186
FunctionType * getFunctionType() const
This function returns FunctionType (callback type).
Definition: Function.h:230
void setFunctionType(FunctionType *functionType)
This function sets FunctionType (callback type).
Definition: Function.h:223
An interface that contains functions.
Definition: Interface.h:54
void setIsOneway(bool isOneway)
This function set true/false, when function return type is/isn't oneway.
Definition: Function.h:111
FunctionBase()
Constructor.
Definition: Function.h:61
bool m_isOneway
Definition: Function.h:132
bool isOneway() const
This function returns true/false, when function return type is/isn't oneway.
Definition: Function.h:104
void setReturnStructMemberType(StructMember *returnType)
This function set data type of function return value.
Definition: Function.h:96
void setUniqueId(uint32_t newId)
This function set function unique id.
Definition: Function.h:193