#include <pascalwriter.h>
|
enum | GenerationState { Generated
, Failed
, Skipped
} |
|
virtual void | syncCodeToDocument () |
|
virtual void | syncCodeToDocument () |
|
void | codeGenerated (UMLClassifier *concept, bool generated) |
|
void | codeGenerated (UMLClassifier *concept, CodeGenerator::GenerationState result) |
|
void | showGeneratedFile (const QString &filename) |
|
static QString | cleanName (const QString &name) |
|
static QString | formatDoc (const QString &text, const QString &linePrefix=QLatin1String(" *"), int lineWidth=80) |
|
static QString | formatSourceCode (const QString &code, const QString &indentation) |
|
static void | findObjectsRelated (UMLClassifier *c, UMLPackageList &cList) |
|
QString | findFileName (UMLPackage *concept, const QString &ext) |
|
QString | overwritableName (UMLPackage *concept, const QString &name, const QString &ext) |
|
bool | hasDefaultValueAttr (UMLClassifier *c) |
|
bool | hasAbstractOps (UMLClassifier *c) |
|
QString | indent () |
|
virtual void | initFromParentDocument () |
|
QString | overwritableName (const QString &name, const QString &extension) |
|
bool | openFile (QFile &file, const QString &name) |
|
void | writeListedCodeDocsToFile (CodeDocumentList *docs) |
|
virtual void | finalizeRun () |
|
QString | className_ |
|
QString | fileName_ |
|
QMap< UMLPackage *, QString > | m_fileMap |
|
bool | m_createDirHierarchyForPackages |
|
QString | m_indentation |
|
int | m_indentLevel |
|
QString | m_endl |
|
QHash< QString, CodeDocument * > | m_codeDocumentDictionary |
|
bool | m_applyToAllRemaining |
|
UMLDoc * | m_document |
|
◆ PascalWriter()
PascalWriter::PascalWriter |
( |
| ) |
|
◆ ~PascalWriter()
PascalWriter::~PascalWriter |
( |
| ) |
|
|
virtual |
◆ computeAssocTypeAndRole()
void PascalWriter::computeAssocTypeAndRole |
( |
UMLAssociation * |
a, |
|
|
QString & |
typeName, |
|
|
QString & |
roleName |
|
) |
| |
|
private |
◆ defaultDatatypes()
QStringList PascalWriter::defaultDatatypes |
( |
| ) |
const |
|
virtual |
Returns the default datatypes in a list.
- Returns
- the list of default datatypes
Reimplemented from CodeGenerator.
◆ isOOClass()
◆ isReservedKeyword()
bool PascalWriter::isReservedKeyword |
( |
const QString & |
rPossiblyReservedKeyword | ) |
|
|
virtual |
Check whether the given string is a reserved word for the language of this code generator.
- Parameters
-
rPossiblyReservedKeyword | the string to check |
Reimplemented from CodeGenerator.
◆ language()
Returns "Pascal".
- Returns
- the programming language identifier
Implements CodeGenerator.
◆ qualifiedName()
QString PascalWriter::qualifiedName |
( |
UMLPackage * |
p, |
|
|
bool |
withType = false , |
|
|
bool |
byValue = false |
|
) |
| |
|
private |
◆ reservedKeywords()
QStringList PascalWriter::reservedKeywords |
( |
| ) |
const |
|
virtual |
Get list of reserved keywords.
- Returns
- the list of reserved keywords
Reimplemented from CodeGenerator.
◆ writeClass()
◆ writeOperation()
void PascalWriter::writeOperation |
( |
UMLOperation * |
op, |
|
|
QTextStream & |
pas, |
|
|
bool |
is_comment = false |
|
) |
| |
|
private |
Write one operation.
- Parameters
-
op | the class for which we are generating code |
pas | the stream associated with the output file |
is_comment | specifying true generates the operation as commented out |
◆ defaultPackageSuffix
const QString PascalWriter::defaultPackageSuffix = QLatin1String("_Holder") |
|
staticprivate |
The documentation for this class was generated from the following files: