umbrello API Documentation

TclWriter Class Reference

class TclWriter is a code generator for UMLClassifier objects. More...

#include <tclwriter.h>

Inheritance diagram for TclWriter:

SimpleCodeGenerator CodeGenerator List of all members.

Public Member Functions

 TclWriter ()
 Constructor, initialises a couple of variables.
virtual ~TclWriter ()
 Destructor, empty.
virtual void writeClass (UMLClassifier *c)
 call this method to generate tcl code for a UMLClassifier
virtual Uml::Programming_Language getLanguage ()
 returns "Tcl"
virtual const QStringList reservedKeywords () const
 get list of reserved keywords

Detailed Description

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.

Definition at line 38 of file tclwriter.h.


Constructor & Destructor Documentation

TclWriter::TclWriter  ) 
 

Constructor, initialises a couple of variables.

Definition at line 80 of file tclwriter.cpp.

TclWriter::~TclWriter  )  [virtual]
 

Destructor, empty.

Definition at line 84 of file tclwriter.cpp.


Member Function Documentation

void TclWriter::writeClass UMLClassifier c  )  [virtual]
 

call this method to generate tcl code for a UMLClassifier

Parameters:
c the class to generate code for

Implements SimpleCodeGenerator.

Definition at line 95 of file tclwriter.cpp.

References ClassifierInfo::className, CodeGenerator::cleanName(), CodeGenerator::codeGenerated(), ClassifierInfo::fileName, CodeGenerator::findFileName(), ClassifierInfo::isInterface, and CodeGenerator::openFile().

Uml::Programming_Language TclWriter::getLanguage  )  [virtual]
 

returns "Tcl"

Implements CodeGenerator.

Definition at line 89 of file tclwriter.cpp.

const QStringList TclWriter::reservedKeywords  )  const [virtual]
 

get list of reserved keywords

Reimplemented from CodeGenerator.

Definition at line 940 of file tclwriter.cpp.


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for umbrello Version 3.1.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Jun 26 08:08:06 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003