umbrello/umbrello
DCodeGenerator Class Reference
#include <dcodegenerator.h>

Detailed Description
Definition at line 28 of file dcodegenerator.h.
Public Member Functions | |
| DCodeGenerator () | |
| DCodeGenerator (QDomElement &element) | |
| virtual | ~DCodeGenerator () |
| bool | getAutoGenerateAttribAccessors () |
| bool | getAutoGenerateAssocAccessors () |
| virtual CodeViewerDialog * | getCodeViewerDialog (QWidget *parent, CodeDocument *doc, Settings::CodeViewerState state) |
| DCodeGenerationPolicy * | getDPolicy () |
| CodeDocument * | newClassifierCodeDocument (UMLClassifier *classifier) |
| Uml::Programming_Language | getLanguage () |
| virtual QStringList | defaultDatatypes () |
| virtual const QStringList | reservedKeywords () const |
Static Public Member Functions | |
| static QString | getListFieldClassName () |
| static QString | capitalizeFirstLetter (const QString &string) |
| static QString | fixTypeName (const QString &string) |
Protected Member Functions | |
| CodeBlockWithComments * | createClassDecl (UMLClassifier *c, DClassifierCodeDocument *doc) |
Constructor & Destructor Documentation
| DCodeGenerator::DCodeGenerator | ( | ) |
| DCodeGenerator::DCodeGenerator | ( | QDomElement & | element | ) |
Definition at line 31 of file dcodegenerator.cpp.
| DCodeGenerator::~DCodeGenerator | ( | ) | [virtual] |
Member Function Documentation
| bool DCodeGenerator::getAutoGenerateAttribAccessors | ( | ) |
A utility method to get the dCodeGenerationPolicy()->getAutoGenerateAttribAccessors() value.
Definition at line 69 of file dcodegenerator.cpp.
| bool DCodeGenerator::getAutoGenerateAssocAccessors | ( | ) |
A utility method to get the dCodeGenerationPolicy()->getAutoGenerateAssocAccessors() value.
Definition at line 74 of file dcodegenerator.cpp.
| QString DCodeGenerator::getListFieldClassName | ( | ) | [static] |
Get the list variable class name to use.
For D, we have set this to "Vector".
Definition at line 79 of file dcodegenerator.cpp.
| CodeViewerDialog * DCodeGenerator::getCodeViewerDialog | ( | QWidget * | parent, | |
| CodeDocument * | doc, | |||
| Settings::CodeViewerState | state | |||
| ) | [virtual] |
Get the editing dialog for this code document.
Reimplemented from CodeGenerator.
Definition at line 57 of file dcodegenerator.cpp.
Definition at line 86 of file dcodegenerator.cpp.
| DCodeGenerationPolicy * DCodeGenerator::getDPolicy | ( | ) |
Utility function for getting the d code generation policy.
Definition at line 65 of file dcodegenerator.cpp.
| CodeDocument * DCodeGenerator::newClassifierCodeDocument | ( | UMLClassifier * | c | ) | [virtual] |
- Returns:
- ClassifierCodeDocument
- Returns:
- ClassifierCodeDocument
- Parameters:
-
classifier classifier
Implements CodeGenerator.
Definition at line 110 of file dcodegenerator.cpp.
| Uml::Programming_Language DCodeGenerator::getLanguage | ( | ) | [virtual] |
Return the unique language enum that identifies this type of code generator.
Implements CodeGenerator.
Definition at line 52 of file dcodegenerator.cpp.
| QStringList DCodeGenerator::defaultDatatypes | ( | ) | [virtual] |
Adds D's primitives as datatypes.
Reimplemented from CodeGenerator.
Definition at line 122 of file dcodegenerator.cpp.
IF the type is "string" we need to declare it as the D Object "String" (there is no string primative in D).
Same thing again for "bool" to "boolean".
Definition at line 97 of file dcodegenerator.cpp.
| const QStringList DCodeGenerator::reservedKeywords | ( | ) | const [virtual] |
get list of reserved keywords
Reimplemented from CodeGenerator.
Definition at line 151 of file dcodegenerator.cpp.
| CodeBlockWithComments* DCodeGenerator::createClassDecl | ( | UMLClassifier * | c, | |
| DClassifierCodeDocument * | doc | |||
| ) | [protected] |
create the codeblock that will represent the class declaration for this classifier
The documentation for this class was generated from the following files:
KDE 4.0 API Reference