36 #ifndef _EMBEDDED_RPC__PYTHONGENERATOR_H_ 37 #define _EMBEDDED_RPC__PYTHONGENERATOR_H_ 39 #include "Generator.h" 260 std::string
filterName(
const std::string &name);
301 #endif // _EMBEDDED_RPC__PYTHONGENERATOR_H_ Collects all definitions from an IDL.
Definition: InterfaceDefinition.h:56
void makeFunctionsTemplateData()
This function sets function type template data.
Definition: PythonGenerator.cpp:562
Leading multi-line comment.
Definition: PythonGenerator.h:265
Member of a struct.
Definition: StructMember.h:63
std::string getBuiltinTypename(const BuiltinType *t)
This function return string representation for given BuiltinType.
Definition: PythonGenerator.cpp:737
void generateInitFile(std::string fileName)
This function generate output package init file.
Definition: PythonGenerator.cpp:90
Trailing inline comment.
Definition: PythonGenerator.h:266
void setOneStructMemberTemplateData(StructMember *member, cpptempl::data_map &member_info)
Fill in template data for a single struct member.
Definition: PythonGenerator.cpp:544
std::string m_suffixStrip
String to remove from suffixes of names.
Definition: PythonGenerator.h:78
cpptempl::data_map makeGroupSymbolsTemplateData(Group *group)
This function sets group symbols template data.
Definition: PythonGenerator.cpp:429
bool checkWhitspaceChar(char c)
Check if character is whitespace type.
Definition: PythonGenerator.cpp:888
void generateServerFile(std::string fileName)
This function generate output server file.
Definition: PythonGenerator.cpp:108
PythonGenerator(InterfaceDefinition *def)
This function is constructor of PythonGenerator class.
Definition: PythonGenerator.cpp:62
void generateClientFile(std::string fileName)
This function generate output client file.
Definition: PythonGenerator.cpp:102
Represents the builtin atomic types.
Definition: BuiltinType.h:51
cpptempl::data_map getFunctionTemplateData(Group *group, Function *fn)
This function return interface function template data.
Definition: PythonGenerator.cpp:194
Structure data type.
Definition: StructType.h:54
Function declaration.
Definition: Function.h:142
Base class for all named declarations in the IDL.
Definition: Symbol.h:53
virtual ~PythonGenerator()
This function is destructor of PythonGenerator class.
Definition: PythonGenerator.h:68
void generateInterfaceFile(std::string fileName)
This function generate output interface file.
Definition: PythonGenerator.cpp:114
void setStructMembersTemplateData(StructType *structType, cpptempl::data_map &structInfo)
This function sets struct member information to struct data map variable.
Definition: PythonGenerator.cpp:508
void parseSubtemplates()
This function prepare helpful functions located in template files.
Definition: PythonGenerator.cpp:126
Code generator for Python.
Definition: PythonGenerator.h:53
void initPythonReservedWords()
Definition: PythonGenerator.cpp:935
std::string getFunctionPrototype(Function *fn)
This function return interface function prototype.
Definition: PythonGenerator.cpp:290
Abstract code generator base class.
Definition: Generator.h:69
virtual void generateGlobalInitFile()
This function generate output crc16 source file.
Definition: PythonGenerator.cpp:120
std::string stripWhitespace(const std::string &s)
Strip leading and trailing whitespace.
Definition: PythonGenerator.cpp:897
Base class for data types.
Definition: DataType.h:51
std::string filterName(const std::string &name)
Filter symbol names.
Definition: PythonGenerator.cpp:772
void makeConstTemplateData()
This function sets const template data.
Definition: PythonGenerator.cpp:314
std::string convertComment(const std::string &comment, comment_type commentType)
Converts a C++-style Doxygen comment into a Python Doxygen comment.
Definition: PythonGenerator.cpp:786
void generateOutputFiles(const std::string &fileName)
This function generate output files.
Definition: PythonGenerator.cpp:76
An interface that contains functions.
Definition: Group.h:53
void makeAliasesTemplateData()
Fill in template data for type aliases.
Definition: PythonGenerator.cpp:390
Definition: cpptempl.h:190
Enumerate data type.
Definition: EnumType.h:53
comment_type
Possible Doxygen comment styles.
Definition: PythonGenerator.h:263
void makeEnumsTemplateData()
This function sets enum template data.
Definition: PythonGenerator.cpp:349
cpptempl::data_map getTypeInfo(DataType *t)
This function return necessary template data for data type.
Definition: PythonGenerator.cpp:588
size_t m_suffixStripSize
Length of the suffix filter string.
Definition: PythonGenerator.h:79
void generateCommonFile(std::string fileName)
This function generate output common module.
Definition: PythonGenerator.cpp:96
void setTemplateComments(Symbol *symbol, cpptempl::data_map &symbolInfo)
This function will get symbol comments and convert to language specific ones.
Definition: PythonGenerator.cpp:188
virtual void generate()
This function generate output code for output files.
Definition: PythonGenerator.cpp:139
cpptempl::data_list getEnumMembersTemplateData(EnumType *enumType)
This function return enum members template data.
Definition: PythonGenerator.cpp:372