10 #ifndef _EMBEDDED_RPC__PYTHONGENERATOR_H_ 11 #define _EMBEDDED_RPC__PYTHONGENERATOR_H_ 13 #include "Generator.h" 235 std::string
filterName(
const std::string &name);
276 #endif // _EMBEDDED_RPC__PYTHONGENERATOR_H_ Collects all definitions from an IDL.
Definition: InterfaceDefinition.h:31
void makeFunctionsTemplateData()
This function sets function type template data.
Definition: PythonGenerator.cpp:567
Leading multi-line comment.
Definition: PythonGenerator.h:240
Member of a struct.
Definition: StructMember.h:38
std::string getBuiltinTypename(const BuiltinType *t)
This function return string representation for given BuiltinType.
Definition: PythonGenerator.cpp:733
void generateInitFile(std::string fileName)
This function generate output package init file.
Definition: PythonGenerator.cpp:66
Trailing inline comment.
Definition: PythonGenerator.h:241
void setOneStructMemberTemplateData(StructMember *member, cpptempl::data_map &member_info)
Fill in template data for a single struct member.
Definition: PythonGenerator.cpp:549
std::string m_suffixStrip
String to remove from suffixes of names.
Definition: PythonGenerator.h:53
cpptempl::data_map makeGroupSymbolsTemplateData(Group *group)
This function sets group symbols template data.
Definition: PythonGenerator.cpp:406
bool checkWhitspaceChar(char c)
Check if character is whitespace type.
Definition: PythonGenerator.cpp:885
void generateServerFile(std::string fileName)
This function generate output server file.
Definition: PythonGenerator.cpp:84
PythonGenerator(InterfaceDefinition *def)
This function is constructor of PythonGenerator class.
Definition: PythonGenerator.cpp:38
void generateClientFile(std::string fileName)
This function generate output client file.
Definition: PythonGenerator.cpp:78
Represents the builtin atomic types.
Definition: BuiltinType.h:26
cpptempl::data_map getFunctionTemplateData(Group *group, Function *fn)
This function return interface function template data.
Definition: PythonGenerator.cpp:170
Structure data type.
Definition: StructType.h:29
Function declaration.
Definition: Function.h:117
Base class for all named declarations in the IDL.
Definition: Symbol.h:28
virtual ~PythonGenerator()
This function is destructor of PythonGenerator class.
Definition: PythonGenerator.h:43
void generateInterfaceFile(std::string fileName)
This function generate output interface file.
Definition: PythonGenerator.cpp:90
void setStructMembersTemplateData(StructType *structType, cpptempl::data_map &structInfo)
This function sets struct member information to struct data map variable.
Definition: PythonGenerator.cpp:513
void parseSubtemplates()
This function prepare helpful functions located in template files.
Definition: PythonGenerator.cpp:102
Code generator for Python.
Definition: PythonGenerator.h:28
void initPythonReservedWords()
Definition: PythonGenerator.cpp:932
std::string getFunctionPrototype(Function *fn)
This function return interface function prototype.
Definition: PythonGenerator.cpp:267
Abstract code generator base class.
Definition: Generator.h:44
virtual void generateGlobalInitFile()
This function generate output crc16 source file.
Definition: PythonGenerator.cpp:96
std::string stripWhitespace(const std::string &s)
Strip leading and trailing whitespace.
Definition: PythonGenerator.cpp:894
Base class for data types.
Definition: DataType.h:26
std::string filterName(const std::string &name)
Filter symbol names.
Definition: PythonGenerator.cpp:768
void makeConstTemplateData()
This function sets const template data.
Definition: PythonGenerator.cpp:291
std::string convertComment(const std::string &comment, comment_type commentType)
Converts a C++-style Doxygen comment into a Python Doxygen comment.
Definition: PythonGenerator.cpp:782
void generateOutputFiles(const std::string &fileName)
This function generate output files.
Definition: PythonGenerator.cpp:52
An interface that contains functions.
Definition: Group.h:28
void makeAliasesTemplateData()
Fill in template data for type aliases.
Definition: PythonGenerator.cpp:367
Definition: cpptempl.h:190
Enumerate data type.
Definition: EnumType.h:28
comment_type
Possible Doxygen comment styles.
Definition: PythonGenerator.h:238
void makeEnumsTemplateData()
This function sets enum template data.
Definition: PythonGenerator.cpp:326
cpptempl::data_map getTypeInfo(DataType *t)
This function return necessary template data for data type.
Definition: PythonGenerator.cpp:593
size_t m_suffixStripSize
Length of the suffix filter string.
Definition: PythonGenerator.h:54
void generateCommonFile(std::string fileName)
This function generate output common module.
Definition: PythonGenerator.cpp:72
void setTemplateComments(Symbol *symbol, cpptempl::data_map &symbolInfo)
This function will get symbol comments and convert to language specific ones.
Definition: PythonGenerator.cpp:164
virtual void generate()
This function generate output code for output files.
Definition: PythonGenerator.cpp:115
cpptempl::data_list getEnumMembersTemplateData(EnumType *enumType)
This function return enum members template data.
Definition: PythonGenerator.cpp:349