devana.code_generation
Subpackages
- devana.code_generation.printers
- Subpackages
- devana.code_generation.printers.default
- devana.code_generation.printers.default.attributeprinter
- devana.code_generation.printers.default.basictypeprinter
- devana.code_generation.printers.default.classprinter
- devana.code_generation.printers.default.commentprinter
- devana.code_generation.printers.default.defaultprinter
- devana.code_generation.printers.default.enumprinter
- devana.code_generation.printers.default.externcprinter
- devana.code_generation.printers.default.fileprinter
- devana.code_generation.printers.default.functionprinter
- devana.code_generation.printers.default.functiontypeprinter
- devana.code_generation.printers.default.namespaceprinter
- devana.code_generation.printers.default.stubtypeprinter
- devana.code_generation.printers.default.templateparameterprinter
- devana.code_generation.printers.default.typedefprinter
- devana.code_generation.printers.default.typeexpressionprinter
- devana.code_generation.printers.default.unionprinter
- devana.code_generation.printers.default.usingnamespaceprinter
- devana.code_generation.printers.default.usingprinter
- devana.code_generation.printers.default.utilityprinters
- devana.code_generation.printers.default.variableprinter
- devana.code_generation.printers.default
- devana.code_generation.printers.codeprinter
- devana.code_generation.printers.configuration
- devana.code_generation.printers.dispatcherinjectable
- devana.code_generation.printers.formatter
- devana.code_generation.printers.icodeprinter
- Subpackages
devana.code_generation.stubtype
- class StubType(name)[source]
Bases:
object
This class serves to create outside type representation without sourcing this to lexicon as right type or parse source file. StubType is just free string.
Good example are std types ile std::string or size_t. Parsing stdlib is definitely what you don’t want to do, so you are able to write this type as raw string for code generation. StubType is fast and easy way to stub type. For more complex features ypu should think about create yur own ClassInfo etc.
- property name
Code generation module provides functionality to modify already parsed C++ code and generate new code without manipulation of raw strings.