~ubuntu-branches/ubuntu/intrepid/kdesdk/intrepid-updates

« back to all changes in this revision

Viewing changes to umbrello/umbrello/codegenerators/usewriter.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2008-05-28 10:11:43 UTC
  • mto: This revision was merged to the branch mainline in revision 37.
  • Revision ID: james.westby@ubuntu.com-20080528101143-gzc3styjz1b70zxu
Tags: upstream-4.0.80
ImportĀ upstreamĀ versionĀ 4.0.80

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
                          usewriter.h  -  description
 
3
                             -------------------
 
4
    begin                : Fri Jan 20 2007
 
5
    copyright            : (C) 2007 by Thibault <zenithar> Normand
 
6
    email                : thibault.normand@gmail.com
 
7
 ***************************************************************************/
 
8
 
 
9
/***************************************************************************
 
10
 *                                                                         *
 
11
 *   This program is free software; you can redistribute it and/or modify  *
 
12
 *   it under the terms of the GNU General Public License as published by  *
 
13
 *   the Free Software Foundation; either version 2 of the License, or     *
 
14
 *   (at your option) any later version.                                   *
 
15
 *                                                                         *
 
16
 ***************************************************************************/
 
17
 
 
18
#ifndef _USEWRITER_H_
 
19
#define _USEWRITER_H_
 
20
 
 
21
#include "simplecodegenerator.h"
 
22
#include "../umloperationlist.h"
 
23
 
 
24
/**
 
25
  * class USEWriter is a Use code generator for UMLClassifier objects
 
26
  * Just call writeClass and feed it a UMLClassifier;
 
27
  */
 
28
class USEWriter : public SimpleCodeGenerator {
 
29
    Q_OBJECT
 
30
public:
 
31
 
 
32
    USEWriter();
 
33
    virtual ~USEWriter();
 
34
 
 
35
    /**
 
36
      * call this method to generate Actionscript code for a UMLClassifier
 
37
      * @param c the class you want to generate code for.
 
38
      */
 
39
    virtual void writeClass(UMLClassifier *c);
 
40
 
 
41
    /**
 
42
     * returns "JavaScript"
 
43
     */
 
44
    virtual Uml::Programming_Language getLanguage();
 
45
 
 
46
    /**
 
47
     * get list of reserved keywords
 
48
     */
 
49
    virtual const QStringList reservedKeywords() const;
 
50
};
 
51
 
 
52
#endif // _USEWRITER_H_
 
53