CppWriter Class Reference
class CppWriter is a code generator for UMLClassifier objects. More...
#include <cppwriter.h>
Inheritance diagram for CppWriter:

Public Member Functions | |
| CppWriter () | |
| Constructor, initialises a couple of variables. | |
| virtual | ~CppWriter () |
| Destructor, empty. | |
| virtual void | writeClass (UMLClassifier *c) |
| call this method to generate cpp code for a UMLClassifier | |
| virtual Uml::Programming_Language | getLanguage () |
| returns "C++" | |
| QStringList | defaultDatatypes () |
| Add C++ primitives as datatypes. | |
| virtual const QStringList | reservedKeywords () const |
| get list of reserved keywords | |
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
|
|
Constructor, initialises a couple of variables.
Definition at line 43 of file cppwriter.cpp. |
|
|
Destructor, empty.
Definition at line 67 of file cppwriter.cpp. |
Member Function Documentation
|
|
call this method to generate cpp code for a UMLClassifier
Implements SimpleCodeGenerator. Definition at line 77 of file cppwriter.cpp. References ClassifierInfo::className, CodeGenerator::cleanName(), CodeGenerator::codeGenerated(), ClassifierInfo::fileName, CodeGenerator::findFileName(), and CodeGenerator::openFile(). |
|
|
returns "C++"
Implements CodeGenerator. Definition at line 69 of file cppwriter.cpp. |
|
|
Add C++ primitives as datatypes.
Reimplemented from CodeGenerator. Definition at line 1284 of file cppwriter.cpp. |
|
|
get list of reserved keywords
Reimplemented from CodeGenerator. Definition at line 1288 of file cppwriter.cpp. |
The documentation for this class was generated from the following files:
