umbrello 2.39.0
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
|
#include <csharpwriter.h>
Private Member Functions | |
void | writeRealizationsRecursive (UMLClassifier *currentClass, UMLAssociationList *realizations, QTextStream &cs) |
void | writeOperations (UMLClassifier *c, QTextStream &cs) |
void | writeOperations (UMLOperationList opList, QTextStream &cs, bool interface=false, bool isOverride=false, bool generateErrorStub=false) |
void | writeOverridesRecursive (UMLClassifierList *superclasses, QTextStream &cs) |
void | writeAttributes (UMLClassifier *c, QTextStream &cs) |
void | writeAttributes (UMLAttributeList &atList, QTextStream &cs) |
void | writeAssociatedAttributes (UMLAssociationList &associated, UMLClassifier *c, QTextStream &cs) |
void | writeAttribute (const QString &doc, Uml::Visibility::Enum visibility, bool isStatic, const QString &typeName, const QString &name, const QString &initialValue, bool asProperty, QTextStream &cs) |
QString | makeLocalTypeName (UMLClassifierListItem *cl) |
Private Attributes | |
QString | m_container_indent |
UMLPackageList | m_seenIncludes |
int | m_unnamedRoles |
Class CSharpWriter is a C# code generator for UMLClassifier objects Just call writeClass and feed it a UMLClassifier;
CSharpWriter::CSharpWriter | ( | ) |
|
virtual |
|
virtual |
Get list of predefined data types.
Reimplemented from CodeGenerator.
|
virtual |
Returns "C#".
Implements CodeGenerator.
|
private |
Find the type in used namespaces, if namespace found return short name, complete otherwise.
cl | Operation or Attribute to check type |
|
virtual |
Get list of reserved keywords.
Reimplemented from CodeGenerator.
|
private |
Write attributes from associated objects (compositions, aggregations).
associated | list of associated objects |
c | currently written class, to see association direction |
cs | output stream |
|
private |
Write a single attribute to the output stream.
doc | attribute documentation |
visibility | attribute visibility |
isStatic | static attribute |
typeName | class/type of the attribute |
name | name of the attribute |
initialValue | initial value given to the attribute at declaration |
asProperty | true writes as property (get/set), false writes single line variable |
cs | output stream |
|
private |
Write a list of class attributes.
atList | the list of attributes |
cs | output stream |
|
private |
Write all the attributes of a class.
c | the class we are generating code for |
cs | output stream |
|
virtual |
Call this method to generate Php code for a UMLClassifier
c | the class you want to generate code for. |
Implements SimpleCodeGenerator.
|
private |
Write all operations for a given class.
c | the classifier we are generating code for |
cs | output stream |
|
private |
Write a list of class operations.
opList | the list of operations |
cs | output stream |
isInterface | indicates if the operation is an interface member |
isOverride | implementation of an inherited abstract function |
generateErrorStub | flag whether an exception should be thrown |
|
private |
Write superclasses' abstract methods.
superclasses | List of superclasses to start recursing on |
cs | output stream |
|
private |
Write realizations of a class and recurse to parent classes.
currentClass | class to start with |
realizations | realizations of this class |
cs | output stream |
|
private |
Adds extra indenting if the class is in a container (namespace).
|
private |
Collection of included namespaces, to skip them from variable types.
|
private |
Counts associations without a role name for giving a default name.