summaryrefslogtreecommitdiffstats
path: root/umbrello/umbrello/codeimport/idlimport.h
blob: 82f6582ee98f1824527fdd5b8e6a236fb3e2c345 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *  copyright (C) 2005                                                     *
 *  Umbrello UML Modeller Authors <uml-devel@uml.sf.net>                   *
 ***************************************************************************/

#ifndef IDLIMPORT_H
#define IDLIMPORT_H

#include "nativeimportbase.h"

/**
 * CORBA IDL code import
 * @author Oliver Kellogg
 * Bugs and comments to uml-devel@lists.sf.net or http://bugs.trinitydesktop.org
 */
class IDLImport : public NativeImportBase {
public:
    IDLImport();
    virtual ~IDLImport();

    /**
     * Implement abstract operation from NativeImportBase.
     */
    bool parseStmt();

    /**
     * Reimplement operation from NativeImportBase.
     * Need to do this because we use the external C preprocessor.
     */
    void parseFile(const TQString& file);

    /**
     * Override operation from NativeImportBase.
     */
    bool preprocess(TQString& line);

    /**
     * Implement abstract operation from NativeImportBase.
     */
    void fillSource(const TQString& word);

protected:
    TQString joinTypename();
    bool m_isOneway, m_isReadonly, m_isAttribute;
};

#endif