• Skip to content
  • Skip to link menu
KDE 4.4 API Reference
  • KDE API Reference
  • kdesdk
  • Sitemap
  • Contact Us
 

umbrello/umbrello

CppWriter Class Reference

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

#include <cppwriter.h>

Inheritance diagram for CppWriter:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 CppWriter ()
virtual ~CppWriter ()
QStringList defaultDatatypes ()
virtual Uml::Programming_Language getLanguage ()
virtual const QStringList reservedKeywords () const
virtual void writeClass (UMLClassifier *c)

Detailed Description

Class CppWriter 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 (.cpp) file for that classifier.

Definition at line 38 of file cppwriter.h.


Constructor & Destructor Documentation

CppWriter::CppWriter (  ) 

Constructor, initialises a couple of variables.

Definition at line 45 of file cppwriter.cpp.

CppWriter::~CppWriter (  )  [virtual]

Destructor, empty.

Definition at line 68 of file cppwriter.cpp.


Member Function Documentation

QStringList CppWriter::defaultDatatypes (  )  [virtual]

Add C++ primitives as datatypes.

Returns:
the list of default datatypes

Reimplemented from CodeGenerator.

Definition at line 1214 of file cppwriter.cpp.

Uml::Programming_Language CppWriter::getLanguage (  )  [virtual]

Returns "C++".

Returns:
the programming language identifier

Implements CodeGenerator.

Definition at line 72 of file cppwriter.cpp.

const QStringList CppWriter::reservedKeywords (  )  const [virtual]

Get list of reserved keywords.

Returns:
the list of reserved keywords

Reimplemented from CodeGenerator.

Definition at line 1219 of file cppwriter.cpp.

void CppWriter::writeClass ( UMLClassifier *  c  )  [virtual]

Call this method to generate cpp code for a UMLClassifier.

Parameters:
c the class to generate code for

Implements SimpleCodeGenerator.

Definition at line 82 of file cppwriter.cpp.


The documentation for this class was generated from the following files:
  • cppwriter.h
  • cppwriter.cpp

umbrello/umbrello

Skip menu "umbrello/umbrello"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdesdk

Skip menu "kdesdk"
  • kapptemplate
  • kate
  •     kate
  • kbugbuster
  • kcachegrind
  • kompare
  • lokalize
  • umbrello
  •   umbrello
Generated for kdesdk by doxygen 1.5.9-20090814
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal