umbrello/umbrello
CppWriter Class Reference
#include <cppwriter.h>
Inheritance diagram for CppWriter:

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 37 of file cppwriter.h.
Public Member Functions | |
| CppWriter () | |
| virtual | ~CppWriter () |
| virtual void | writeClass (UMLClassifier *c) |
| virtual Uml::Programming_Language | getLanguage () |
| QStringList | defaultDatatypes () |
| virtual const QStringList | reservedKeywords () const |
Constructor & Destructor Documentation
| CppWriter::CppWriter | ( | ) |
| CppWriter::~CppWriter | ( | ) | [virtual] |
Member Function Documentation
| 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 80 of file cppwriter.cpp.
| Uml::Programming_Language CppWriter::getLanguage | ( | ) | [virtual] |
Returns "C++".
- Returns:
- the programming language identifier
Implements CodeGenerator.
Definition at line 70 of file cppwriter.cpp.
| QStringList CppWriter::defaultDatatypes | ( | ) | [virtual] |
Add C++ primitives as datatypes.
- Returns:
- the list of default datatypes
Reimplemented from CodeGenerator.
Definition at line 1212 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 1217 of file cppwriter.cpp.
The documentation for this class was generated from the following files:
KDE 4.0 API Reference