![]() |
eRPC Generator (erpcgen)
Rev. 1.9.0
NXP Semiconductors
|
Member of a enum. More...
#include <EnumMember.h>
Public Member Functions | |
| EnumMember (const Token &tok, uint32_t value) | |
| Constructor. More... | |
| EnumMember (const Token &tok) | |
| Constructor. More... | |
| void | setValue (IntegerValue value) |
| This function set enum member value. More... | |
| uint32_t | getValue () const |
| This function returns enum member value. More... | |
| bool | hasValue () const |
| This function return true if enum member has set value. More... | |
| virtual std::string | getDescription () const |
| This function returns description about the enum member. More... | |
Public Member Functions inherited from erpcgen::Symbol | |
| Symbol (symbol_type_t symType) | |
| Constructor. More... | |
| Symbol (symbol_type_t symType, const std::string &name) | |
| Constructor. More... | |
| Symbol (symbol_type_t symType, const Token &tok) | |
| Constructor. More... | |
| virtual | ~Symbol () |
| Destructor. | |
| symbol_type_t | getSymbolType () const |
| This function returns symbol type. More... | |
| const std::string & | getName () const |
| This function returns symbol name. More... | |
| void | setName (const std::string &newName) |
| This function set symbol name. More... | |
| token_loc_t & | getLocation () |
| This function returns location for symbol. More... | |
| void | setLocation (const token_loc_t &loc) |
| This function set location for symbol. More... | |
| int | getFirstLine () const |
| This function return first line from location of symbol. More... | |
| int | getLastLine () const |
| This function return last line from location of symbol. More... | |
| virtual bool | isBuiltin () const |
| This function return "false" value as default for identify builtin type. More... | |
| void | addAnnotation (const Annotation &a) |
| This function add annotation to vector of symbol annotations. More... | |
| std::string | printAnnotations () |
| This function returns description about annotation. More... | |
| Annotation * | findAnnotation (std::string name, Annotation::program_lang_t lang) |
| Find annotation in the annotation list. More... | |
| std::vector< Annotation * > | getAnnotations (std::string name, Annotation::program_lang_t lang) |
| Find annotations matching name in the annotation list. More... | |
| const std::vector< Annotation > & | getAnnotations () const |
| Return all Symbol annotations. More... | |
| Value * | getAnnValue (const std::string annName, Annotation::program_lang_t lang) |
| This function search and returns Value object for given annotation name. More... | |
| std::string | getAnnStringValue (const std::string annName, Annotation::program_lang_t lang) |
| This function search and returns string for given annotation name. More... | |
| std::string | getMlComment () |
| This function returns multiline comment for this symbol declared in IDL file. More... | |
| void | setMlComment (std::string comment) |
| This function set multiline comment for this symbol declared in IDL file. More... | |
| std::string | getIlComment () |
| This function returns inline comment for this symbol declared in IDL file. More... | |
| void | setIlComment (std::string comment) |
| This function set inline comment for this symbol declared in IDL file. More... | |
Protected Attributes | |
| IntegerValue | m_value |
| bool | m_valueSet |
Protected Attributes inherited from erpcgen::Symbol | |
| symbol_type_t | m_symbolType |
| std::string | m_name |
| token_loc_t | m_location |
| std::vector< Annotation > | m_annotations |
| std::string | m_mlComment |
| std::string | m_ilComment |
Additional Inherited Members | |
Public Types inherited from erpcgen::Symbol | |
| enum | symbol_type_t { kConstSymbol, kEnumMemberSymbol, kFunctionSymbol, kInterfaceSymbol, kProgramSymbol, kStructMemberSymbol, kTypenameSymbol, kUnionCaseMemberSymbol, kAliasTypeSymbol, kArrayTypeSymbol, kBuiltinTypeSymbol, kEnumTypeSymbol, kFunctionTypeSymbol, kListTypeSymbol, kStructTypeSymbol, kUnionTypeSymbol } |
| Supported symbol types. | |
Member of a enum.
|
inline |
Constructor.
This function sets the value and token
| [in] | tok | Token, which contains name and location. |
| [in] | value | Given value. |
|
inline |
Constructor.
This function set token to given token.
| [in] | tok | Token, which contains name and location. |
|
virtual |
This function returns description about the enum member.
Reimplemented from erpcgen::Symbol.
|
inline |
This function returns enum member value.
|
inline |
This function return true if enum member has set value.
| true | When enum member has set value. |
| false | When enum member has not set value. |
|
inline |
This function set enum member value.
| [in] | value | Value of enum member. |
|
protected |
Integer value of enum member.