umbrello API Documentation

IDLWriter Class Reference

Class IDLWriter is a code generator for UMLClassifier objects. More...

#include <idlwriter.h>

Inheritance diagram for IDLWriter:

SimpleCodeGenerator CodeGenerator List of all members.

Public Member Functions

virtual void writeClass (UMLClassifier *c)
 call this method to generate IDL code for a UMLClassifier
virtual Uml::Programming_Language getLanguage ()
 returns "IDL"
QStringList defaultDatatypes ()
 Return the default datatypes for your language (bool, int etc) Default implementation returns empty list.
virtual const QStringList reservedKeywords () const
 get list of reserved keywords

Detailed Description

Class IDLWriter 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 an IDL interface for that concept.

Definition at line 32 of file idlwriter.h.


Member Function Documentation

void IDLWriter::writeClass UMLClassifier c  )  [virtual]
 

call this method to generate IDL code for a UMLClassifier

Parameters:
c the class to generate code for

Implements SimpleCodeGenerator.

Definition at line 103 of file idlwriter.cpp.

References CodeGenerator::cleanName(), CodeGenerator::codeGenerated(), CodeGenerator::findFileName(), CodeGenerator::findObjectsRelated(), CodeGenerator::formatDoc(), UMLCanvasObject::getAssociations(), UMLAssociation::getAssocType(), UMLClassifier::getAttributeList(), UMLObject::getFullyQualifiedName(), CodeGenerator::getHeadingFile(), SimpleCodeGenerator::getIndent(), UMLAssociation::getMulti(), UMLObject::getName(), UMLAssociation::getObject(), UMLObject::getPackages(), UMLObject::getStereotype(), UMLCanvasObject::getSuperClasses(), UMLClassifierListItem::getTypeName(), UMLObject::getVisibility(), CodeGenerator::openFile(), and UMLAssociation::typeAsString().

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

returns "IDL"

Implements CodeGenerator.

Definition at line 57 of file idlwriter.cpp.

QStringList IDLWriter::defaultDatatypes  )  [virtual]
 

Return the default datatypes for your language (bool, int etc) Default implementation returns empty list.

Reimplemented from CodeGenerator.

Definition at line 423 of file idlwriter.cpp.

const QStringList IDLWriter::reservedKeywords  )  const [virtual]
 

get list of reserved keywords

Reimplemented from CodeGenerator.

Definition at line 439 of file idlwriter.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:05 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003