10 #ifndef _EMBEDDED_RPC__SYMBOL_H_ 11 #define _EMBEDDED_RPC__SYMBOL_H_ 13 #include "Annotation.h" 43 kUnionCaseMemberSymbol,
100 ,
m_name(tok.getStringValue())
208 std::vector<Annotation *>
getAnnotations(std::string name, Annotation::program_lang_t lang);
225 Value *
getAnnValue(
const std::string annName, Annotation::program_lang_t lang);
235 std::string
getAnnStringValue(
const std::string annName, Annotation::program_lang_t lang);
276 #endif // _EMBEDDED_RPC__SYMBOL_H_ std::string printAnnotations()
This function returns description about annotation.
Definition: Type.cpp:62
Annotation class.
Definition: Annotation.h:28
std::string getMlComment()
This function returns multiline comment for this symbol declared in IDL file.
Definition: Symbol.h:242
Symbol(symbol_type_t symType)
Constructor.
Definition: Symbol.h:62
std::string m_ilComment
Definition: Symbol.h:271
int getFirstLine() const
This function return first line from location of symbol.
Definition: Symbol.h:153
virtual bool isBuiltin() const
This function return "false" value as default for identify builtin type.
Definition: Symbol.h:167
int m_lastLine
Definition: Token.h:29
Value * getAnnValue(const std::string annName, Annotation::program_lang_t lang)
This function search and returns Value object for given annotation name.
Definition: Type.cpp:109
std::string getAnnStringValue(const std::string annName, Annotation::program_lang_t lang)
This function search and returns string for given annotation name.
Definition: Type.cpp:115
const std::vector< Annotation > & getAnnotations() const
Return all Symbol annotations.
Definition: Symbol.h:215
std::string m_name
Definition: Symbol.h:267
Symbol(symbol_type_t symType, const Token &tok)
Constructor.
Definition: Symbol.h:98
int m_firstLine
Definition: Token.h:27
void setLocation(const token_loc_t &loc)
This function set location for symbol.
Definition: Symbol.h:146
Base class for all named declarations in the IDL.
Definition: Symbol.h:28
token_loc_t & getLocation()
This function returns location for symbol.
Definition: Symbol.h:139
symbol_type_t m_symbolType
Definition: Symbol.h:266
Abstract base class for values of arbitrary types.
Definition: Value.h:27
std::vector< Annotation > m_annotations
Definition: Symbol.h:269
std::string getIlComment()
This function returns inline comment for this symbol declared in IDL file.
Definition: Symbol.h:256
token_loc_t m_location
Definition: Symbol.h:268
std::string m_mlComment
Definition: Symbol.h:270
const std::string & getName() const
This function returns symbol name.
Definition: Symbol.h:125
Encapsulates all information about a token.
Definition: Token.h:60
virtual std::string getDescription() const
This function returns description about the symbol (symbol name).
Definition: Symbol.h:174
int getLastLine() const
This function return last line from location of symbol.
Definition: Symbol.h:160
void setIlComment(std::string comment)
This function set inline comment for this symbol declared in IDL file.
Definition: Symbol.h:263
symbol_type_t getSymbolType() const
This function returns symbol type.
Definition: Symbol.h:118
void setMlComment(std::string comment)
This function set multiline comment for this symbol declared in IDL file.
Definition: Symbol.h:249
void setName(const std::string &newName)
This function set symbol name.
Definition: Symbol.h:132
Annotation * findAnnotation(std::string name, Annotation::program_lang_t lang)
Find annotation in the annotation list.
Definition: Type.cpp:82
virtual ~Symbol()
Destructor.
Definition: Symbol.h:111
Token location in the source file.
Definition: Token.h:25
void addAnnotation(const Annotation &a)
This function add annotation to vector of symbol annotations.
Definition: Symbol.h:181
symbol_type_t
Supported symbol types.
Definition: Symbol.h:34
Symbol(symbol_type_t symType, const std::string &name)
Constructor.
Definition: Symbol.h:80