• Skip to content
  • Skip to link menu
KDE 4.4 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.

Public Member Functions

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

Static Public Member Functions

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

Detailed Description

Definition at line 27 of file rubycodegenerator.h.


Constructor & Destructor Documentation

RubyCodeGenerator::RubyCodeGenerator (  ) 

Constructor.

Definition at line 42 of file rubycodegenerator.cpp.

RubyCodeGenerator::RubyCodeGenerator ( QDomElement &  elem  ) 

Constructor.

Parameters:
elem DOM element

Definition at line 34 of file rubycodegenerator.cpp.

RubyCodeGenerator::~RubyCodeGenerator (  )  [virtual]

Destructor.

Definition at line 49 of file rubycodegenerator.cpp.


Member Function Documentation

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
Returns:
the ruby name as string

Definition at line 139 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
Returns:
the ruby type as string

Definition at line 115 of file rubycodegenerator.cpp.

bool RubyCodeGenerator::getAutoGenerateAssocAccessors (  ) 

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

Returns:
flag

Definition at line 95 of file rubycodegenerator.cpp.

bool RubyCodeGenerator::getAutoGenerateAttribAccessors (  ) 

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

Returns:
flag

Definition at line 86 of file rubycodegenerator.cpp.

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

Get the editing dialog for this code document.

Returns:
code viewer dialog object

Reimplemented from CodeGenerator.

Definition at line 66 of file rubycodegenerator.cpp.

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

Return our language.

Returns:
language identifier

Implements CodeGenerator.

Definition at line 57 of file rubycodegenerator.cpp.

QString RubyCodeGenerator::getListFieldClassName (  )  [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 104 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 77 of file rubycodegenerator.cpp.

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

Create a new classifier code document.

Parameters:
classifier the UML classifier
Returns:
a new classifier code document

Implements CodeGenerator.

Definition at line 153 of file rubycodegenerator.cpp.

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

Get list of reserved keywords.

Returns:
the list of reserved keywords

Reimplemented from CodeGenerator.

Definition at line 173 of file rubycodegenerator.cpp.


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"
  • 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