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

umbrello/umbrello

RubyCodeGenerator Class Reference

#include <rubycodegenerator.h>

Inheritance diagram for RubyCodeGenerator:

Inheritance graph
[legend]

List of all members.


Detailed Description

Definition at line 35 of file rubycodegenerator.h.


Public Member Functions

 RubyCodeGenerator ()
 RubyCodeGenerator (QDomElement &element)
virtual ~RubyCodeGenerator ()
bool getAutoGenerateAttribAccessors ()
bool getAutoGenerateAssocAccessors ()
virtual CodeViewerDialog * getCodeViewerDialog (QWidget *parent, CodeDocument *doc, Settings::CodeViewerState state)
RubyCodeGenerationPolicy * getRubyPolicy ()
CodeDocument * newClassifierCodeDocument (UMLClassifier *classifier)
Uml::Programming_Language getLanguage ()
virtual const QStringList reservedKeywords () const

Static Public Member Functions

static QString getListFieldClassName ()
static QString cppToRubyType (const QString &cppType)
static QString cppToRubyName (const QString &cppName)

Protected Member Functions

CodeBlockWithComments * createClassDecl (UMLClassifier *c, RubyClassifierCodeDocument *doc)

Constructor & Destructor Documentation

RubyCodeGenerator::RubyCodeGenerator (  ) 

Empty Constructor.

Definition at line 43 of file rubycodegenerator.cpp.

RubyCodeGenerator::RubyCodeGenerator ( QDomElement &  element  ) 

Definition at line 38 of file rubycodegenerator.cpp.

RubyCodeGenerator::~RubyCodeGenerator (  )  [virtual]

Empty Destructor.

Definition at line 47 of file rubycodegenerator.cpp.


Member Function Documentation

bool RubyCodeGenerator::getAutoGenerateAttribAccessors (  ) 

A utility method to get the rubyCodeGenerationPolicy()->getAutoGenerateAttribAccessors() value.

Definition at line 74 of file rubycodegenerator.cpp.

bool RubyCodeGenerator::getAutoGenerateAssocAccessors (  ) 

A utility method to get the rubyCodeGenerationPolicy()->getAutoGenerateAssocAccessors() value.

Definition at line 79 of file rubycodegenerator.cpp.

QString RubyCodeGenerator::getListFieldClassName (  )  [static]

Get the list variable class name to use.

For Ruby, we have set this to "Array".

Definition at line 84 of file rubycodegenerator.cpp.

CodeViewerDialog * RubyCodeGenerator::getCodeViewerDialog ( QWidget *  parent,
CodeDocument *  doc,
Settings::CodeViewerState  state 
) [virtual]

Get the editing dialog for this code document.

Reimplemented from CodeGenerator.

Definition at line 62 of file rubycodegenerator.cpp.

RubyCodeGenerationPolicy * RubyCodeGenerator::getRubyPolicy (  ) 

Utility function for getting the ruby code generation policy.

Definition at line 70 of file rubycodegenerator.cpp.

CodeDocument * RubyCodeGenerator::newClassifierCodeDocument ( UMLClassifier *  c  )  [virtual]

Returns:
ClassifierCodeDocument

Returns:
ClassifierCodeDocument
Parameters:
classifier 
classifier 

Implements CodeGenerator.

Definition at line 120 of file rubycodegenerator.cpp.

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

Return the unique language enum that identifies this type of code generator.

Implements CodeGenerator.

Definition at line 57 of file rubycodegenerator.cpp.

QString RubyCodeGenerator::cppToRubyType ( const QString &  cppType  )  [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

Definition at line 91 of file rubycodegenerator.cpp.

QString RubyCodeGenerator::cppToRubyName ( const QString &  cppName  )  [static]

Convert C++ names such as 'm_foobar' or pFoobar to just 'foobar' for ruby.

Parameters:
cppName the C++ name to be converted

Definition at line 108 of file rubycodegenerator.cpp.

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

get list of reserved keywords

Reimplemented from CodeGenerator.

Definition at line 135 of file rubycodegenerator.cpp.

CodeBlockWithComments* RubyCodeGenerator::createClassDecl ( UMLClassifier *  c,
RubyClassifierCodeDocument *  doc 
) [protected]

create the codeblock that will represent the class declaration for this classifier


The documentation for this class was generated from the following files:
  • rubycodegenerator.h
  • rubycodegenerator.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"
  • kate
  •     kate
  • umbrello
  •   umbrello
Generated for kdesdk by doxygen 1.5.4
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