36 #ifndef _EMBEDDED_RPC__SYMBOL_H_ 37 #define _EMBEDDED_RPC__SYMBOL_H_ 39 #include "Annotation.h" 68 kUnionCaseMemberSymbol,
125 ,
m_name(tok.getStringValue())
233 std::vector<Annotation *>
getAnnotations(std::string name, Annotation::program_lang_t lang);
250 Value *
getAnnValue(
const std::string annName, Annotation::program_lang_t lang);
260 std::string
getAnnStringValue(
const std::string annName, Annotation::program_lang_t lang);
301 #endif // _EMBEDDED_RPC__SYMBOL_H_ std::string printAnnotations()
This function returns description about annotation.
Definition: Type.cpp:87
Annotation class.
Definition: Annotation.h:53
std::string getMlComment()
This function returns multiline comment for this symbol declared in IDL file.
Definition: Symbol.h:267
Symbol(symbol_type_t symType)
Constructor.
Definition: Symbol.h:87
std::string m_ilComment
Definition: Symbol.h:296
int getFirstLine() const
This function return first line from location of symbol.
Definition: Symbol.h:178
virtual bool isBuiltin() const
This function return "false" value as default for identify builtin type.
Definition: Symbol.h:192
int m_lastLine
Definition: Token.h:55
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:134
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:140
const std::vector< Annotation > & getAnnotations() const
Return all Symbol annotations.
Definition: Symbol.h:240
std::string m_name
Definition: Symbol.h:292
Symbol(symbol_type_t symType, const Token &tok)
Constructor.
Definition: Symbol.h:123
int m_firstLine
Definition: Token.h:53
void setLocation(const token_loc_t &loc)
This function set location for symbol.
Definition: Symbol.h:171
Base class for all named declarations in the IDL.
Definition: Symbol.h:53
token_loc_t & getLocation()
This function returns location for symbol.
Definition: Symbol.h:164
symbol_type_t m_symbolType
Definition: Symbol.h:291
Abstract base class for values of arbitrary types.
Definition: Value.h:47
std::vector< Annotation > m_annotations
Definition: Symbol.h:294
std::string getIlComment()
This function returns inline comment for this symbol declared in IDL file.
Definition: Symbol.h:281
token_loc_t m_location
Definition: Symbol.h:293
std::string m_mlComment
Definition: Symbol.h:295
const std::string & getName() const
This function returns symbol name.
Definition: Symbol.h:150
Encapsulates all information about a token.
Definition: Token.h:86
virtual std::string getDescription() const
This function returns description about the symbol (symbol name).
Definition: Symbol.h:199
int getLastLine() const
This function return last line from location of symbol.
Definition: Symbol.h:185
void setIlComment(std::string comment)
This function set inline comment for this symbol declared in IDL file.
Definition: Symbol.h:288
symbol_type_t getSymbolType() const
This function returns symbol type.
Definition: Symbol.h:143
void setMlComment(std::string comment)
This function set multiline comment for this symbol declared in IDL file.
Definition: Symbol.h:274
void setName(const std::string &newName)
This function set symbol name.
Definition: Symbol.h:157
Annotation * findAnnotation(std::string name, Annotation::program_lang_t lang)
Find annotation in the annotation list.
Definition: Type.cpp:107
virtual ~Symbol()
Destructor.
Definition: Symbol.h:136
Token location in the source file.
Definition: Token.h:51
void addAnnotation(const Annotation &a)
This function add annotation to vector of symbol annotations.
Definition: Symbol.h:206
symbol_type_t
Supported symbol types.
Definition: Symbol.h:59
Symbol(symbol_type_t symType, const std::string &name)
Constructor.
Definition: Symbol.h:105