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

Public Member Functions | |
| DCodeGenerator (QDomElement &element) | |
| DCodeGenerator () | |
| virtual | ~DCodeGenerator () |
| virtual QStringList | defaultDatatypes () |
| bool | getAutoGenerateAssocAccessors () |
| bool | getAutoGenerateAttribAccessors () |
| virtual CodeViewerDialog * | getCodeViewerDialog (QWidget *parent, CodeDocument *doc, Settings::CodeViewerState state) |
| DCodeGenerationPolicy * | getDPolicy () |
| Uml::Programming_Language | getLanguage () |
| CodeDocument * | newClassifierCodeDocument (UMLClassifier *classifier) |
| virtual const QStringList | reservedKeywords () const |
Static Public Member Functions | |
| static QString | capitalizeFirstLetter (const QString &item) |
| static QString | fixTypeName (const QString &item) |
| static QString | getListFieldClassName () |
Detailed Description
Definition at line 26 of file dcodegenerator.h.
Constructor & Destructor Documentation
| DCodeGenerator::DCodeGenerator | ( | ) |
Constructor.
Definition at line 41 of file dcodegenerator.cpp.
| DCodeGenerator::DCodeGenerator | ( | QDomElement & | elem | ) |
| DCodeGenerator::~DCodeGenerator | ( | ) | [virtual] |
Destructor.
Definition at line 49 of file dcodegenerator.cpp.
Member Function Documentation
General purpose function we may reuse for all types of D code documents.
- Parameters:
-
item the item to change
- Returns:
- the changed item
Definition at line 114 of file dcodegenerator.cpp.
| QStringList DCodeGenerator::defaultDatatypes | ( | ) | [virtual] |
Adds D's primitives as datatypes.
- Returns:
- the list of primitive datatypes
Reimplemented from CodeGenerator.
Definition at line 163 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".
- Parameters:
-
item the item to change
- Returns:
- the changed item
Definition at line 129 of file dcodegenerator.cpp.
| bool DCodeGenerator::getAutoGenerateAssocAccessors | ( | ) |
A utility method to get the dCodeGenerationPolicy()->getAutoGenerateAssocAccessors() value.
- Returns:
- value of flag
Definition at line 95 of file dcodegenerator.cpp.
| bool DCodeGenerator::getAutoGenerateAttribAccessors | ( | ) |
A utility method to get the dCodeGenerationPolicy()->getAutoGenerateAttribAccessors() value.
- Returns:
- value of flag
Definition at line 86 of file dcodegenerator.cpp.
| CodeViewerDialog * DCodeGenerator::getCodeViewerDialog | ( | QWidget * | parent, | |
| CodeDocument * | doc, | |||
| Settings::CodeViewerState | state | |||
| ) | [virtual] |
Get the editing dialog for this code document.
In the D version, we make the ANT build file also available.
Reimplemented from CodeGenerator.
Definition at line 66 of file dcodegenerator.cpp.
| DCodeGenerationPolicy * DCodeGenerator::getDPolicy | ( | ) |
Utility function for getting the d code generation policy.
- Returns:
- generation policy object
Definition at line 77 of file dcodegenerator.cpp.
| Uml::Programming_Language DCodeGenerator::getLanguage | ( | ) | [virtual] |
Return our language.
- Returns:
- language identifier
Implements CodeGenerator.
Definition at line 57 of file dcodegenerator.cpp.
| QString DCodeGenerator::getListFieldClassName | ( | ) | [static] |
Get the list variable class name to use.
For D, we have set this to "Vector".
- Returns:
- name of list field class
Definition at line 104 of file dcodegenerator.cpp.
| CodeDocument * DCodeGenerator::newClassifierCodeDocument | ( | UMLClassifier * | classifier | ) | [virtual] |
Create a new classifier code document.
- Parameters:
-
classifier the UML classifier
- Returns:
- the created classifier code document object
Implements CodeGenerator.
Definition at line 143 of file dcodegenerator.cpp.
| const QStringList DCodeGenerator::reservedKeywords | ( | ) | const [virtual] |
Get list of reserved keywords.
- Returns:
- the list of reserved keywords
Reimplemented from CodeGenerator.
Definition at line 197 of file dcodegenerator.cpp.
The documentation for this class was generated from the following files:
KDE 4.4 API Reference