umbrello 2.39.1
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
|
#include <tclwriter.h>
Private Attributes | |
QTextStream * | mStream |
current output stream | |
QString | mNamespace |
namespace information | |
QString | mClassGlobal |
information about current classifier | |
QStringList | ObjectFieldVariables |
QStringList | VectorFieldVariables |
Class TclWriter is a code generator for UMLClassifier objects. Create an instance of this class, and feed it a UMLClassifier when calling writeClass and it will generate both a header (.h) and source (.tcl) file for that classifier.
TclWriter::TclWriter | ( | ) |
Constructor, initialises a couple of variables.
|
virtual |
Destructor, empty.
Replaces `string' with STRING_TYPENAME.
Returns the name of the given object (if it exists). Methods like this _shouldn't_ be needed IF we properly did things thruought the code.
|
virtual |
|
virtual |
Get list of reserved keywords.
Reimplemented from CodeGenerator.
|
private |
Searches a list of associations for appropriate ones to write out as attributes.
|
private |
|
private |
Writes out an association as an attribute using Vector.
|
private |
|
private |
|
private |
Writes the Attribute declarations
c | classifier |
writeStatic | whether to write static or non-static attributes out |
visibility | the visibility of the attribs to print out |
|
private |
|
virtual |
Call this method to generate tcl code for a UMLClassifier.
c | the class to generate code for |
Implements SimpleCodeGenerator.
Write the source code text.
Write comment text.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Write documentation text.
|
private |
Write the header file for this classifier.
|
private |
If needed, write out the declaration for the method to initialize attributes of our class.
|
private |
If needed, write out the declaration for the method to initialize attributes of our class.
|
private |
|
private |
|
private |
Write the source code body file for this classifier.
|
private |
|
private |
information about current classifier
|
private |
namespace information
|
private |
current output stream
|
private |
|
private |