umbrello/umbrello
#include <rubycodegenerator.h>
Static Public Member Functions | |
static QString | cppToRubyName (const QString &cppName) |
static QString | cppToRubyType (const QString &cppType) |
static QString | getListFieldClassName () |
Static Public Member Functions inherited from CodeGenerator | |
static QString | cleanName (const QString &name) |
static void | findObjectsRelated (UMLClassifier *c, UMLPackageList &cList) |
static QString | formatDoc (const QString &text, const QString &linePrefix=" *", int lineWidth=80) |
static QString | formatSourceCode (const QString &code, const QString &indentation) |
Additional Inherited Members | |
Public Slots inherited from CodeGenerator | |
virtual void | checkAddUMLObject (UMLObject *obj) |
virtual void | checkRemoveUMLObject (UMLObject *obj) |
virtual void | syncCodeToDocument () |
Signals inherited from CodeGenerator | |
void | codeGenerated (UMLClassifier *concept, bool generated) |
void | showGeneratedFile (const QString &filename) |
Protected Member Functions inherited from CodeGenerator | |
bool | openFile (QFile &file, const QString &name) |
QString | overwritableName (const QString &name, const QString &extension) |
void | writeListedCodeDocsToFile (CodeDocumentList *docs) |
Protected Attributes inherited from CodeGenerator | |
bool | m_applyToAllRemaining |
QHash< QString, CodeDocument * > | m_codeDocumentDictionary |
UMLDoc * | m_document |
Detailed Description
Definition at line 27 of file rubycodegenerator.h.
Constructor & Destructor Documentation
RubyCodeGenerator::RubyCodeGenerator | ( | ) |
Constructor.
Definition at line 32 of file rubycodegenerator.cpp.
|
virtual |
Destructor.
Definition at line 44 of file rubycodegenerator.cpp.
Member Function Documentation
|
static |
Convert C++ names such as 'm_foobar' or pFoobar to just 'foobar' for ruby.
- Parameters
-
cppName the C++ name to be converted
- Returns
- the ruby name as string
Definition at line 134 of file rubycodegenerator.cpp.
|
static |
Convert a C++ type such as 'int' or 'QWidget' to ruby types Integer and Qt::Widget.
- Parameters
-
cppType the C++ type to be converted
- Returns
- the ruby type as string
Definition at line 110 of file rubycodegenerator.cpp.
bool RubyCodeGenerator::getAutoGenerateAssocAccessors | ( | ) |
A utility method to get the rubyCodeGenerationPolicy()->getAutoGenerateAssocAccessors() value.
- Returns
- flag
Definition at line 90 of file rubycodegenerator.cpp.
bool RubyCodeGenerator::getAutoGenerateAttribAccessors | ( | ) |
A utility method to get the rubyCodeGenerationPolicy()->getAutoGenerateAttribAccessors() value.
- Returns
- flag
Definition at line 81 of file rubycodegenerator.cpp.
|
virtual |
Get the editing dialog for this code document.
- Returns
- code viewer dialog object
Reimplemented from CodeGenerator.
Definition at line 61 of file rubycodegenerator.cpp.
|
static |
Get the list variable class name to use.
For Ruby, we have set this to "Array".
- Returns
- name of list field class
Definition at line 99 of file rubycodegenerator.cpp.
RubyCodeGenerationPolicy * RubyCodeGenerator::getRubyPolicy | ( | ) |
Utility function for getting the ruby code generation policy.
- Returns
- Ruby code generation policy object
Definition at line 72 of file rubycodegenerator.cpp.
|
virtual |
Return our language.
- Returns
- language identifier
Implements CodeGenerator.
Definition at line 52 of file rubycodegenerator.cpp.
|
virtual |
Create a new classifier code document.
- Parameters
-
classifier the UML classifier
- Returns
- a new classifier code document
Implements CodeGenerator.
Definition at line 148 of file rubycodegenerator.cpp.
|
virtual |
Get list of reserved keywords.
- Returns
- the list of reserved keywords
Reimplemented from CodeGenerator.
Definition at line 159 of file rubycodegenerator.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:06:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.