umbrello: umbrello/codeimport/pascalimport.h Source File

umbrello 2.32.1 Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology

pascalimport.h
Go to the documentation of this file.
1 /***************************************************************************
2 * This program is free software; you can redistribute it and/or modify *
3 * it under the terms of the GNU General Public License as published by *
4 * the Free Software Foundation; either version 2 of the License, or *
5 * (at your option) any later version. *
6 * *
7 * copyright (C) 2006-2020 *
8 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9 ***************************************************************************/
10
11 #ifndef PASCALIMPORT_H
12 #define PASCALIMPORT_H
13
14 #include "nativeimportbase.h"
15
21 class PascalImport : public NativeImportBase
22 {
23 public:
24 explicit PascalImport(CodeImpThread* thread = 0);
25 virtual ~PascalImport();
26
27 protected:
28 void initVars();
29
30 bool parseStmt();
31
32 void fillSource(const QString& word);
33
34 void checkModifiers(bool& isVirtual, bool& isAbstract);
35
36 bool m_inInterface;
37
38 enum Section_Type { sect_NONE, sect_LABEL, sect_CONST, sect_RESOURCESTRING,
39 sect_TYPE, sect_VAR, sect_THREADVAR };
40
41 Section_Type m_section;
42 };
43
44 #endif
45
CodeImpThread
Definition: codeimpthread.h:36
NativeImportBase
Base class for native implementations of language import.
Definition: nativeimportbase.h:45
PascalImport
Definition: pascalimport.h:22
PascalImport::PascalImport
PascalImport(CodeImpThread *thread=0)
Definition: pascalimport.cpp:33
PascalImport::m_inInterface
bool m_inInterface
becomes true when keyword "interface" is seen
Definition: pascalimport.h:36
PascalImport::m_section
Section_Type m_section
contains the current section
Definition: pascalimport.h:41
PascalImport::Section_Type
Section_Type
Definition: pascalimport.h:38
PascalImport::sect_THREADVAR
@ sect_THREADVAR
Definition: pascalimport.h:39
PascalImport::sect_CONST
@ sect_CONST
Definition: pascalimport.h:38
PascalImport::sect_VAR
@ sect_VAR
Definition: pascalimport.h:39
PascalImport::sect_RESOURCESTRING
@ sect_RESOURCESTRING
Definition: pascalimport.h:38
PascalImport::sect_TYPE
@ sect_TYPE
Definition: pascalimport.h:39
PascalImport::sect_NONE
@ sect_NONE
Definition: pascalimport.h:38
PascalImport::sect_LABEL
@ sect_LABEL
Definition: pascalimport.h:38
PascalImport::~PascalImport
virtual ~PascalImport()
Definition: pascalimport.cpp:43
PascalImport::checkModifiers
void checkModifiers(bool &isVirtual, bool &isAbstract)
Definition: pascalimport.cpp:91
PascalImport::fillSource
void fillSource(const QString &word)
Definition: pascalimport.cpp:60
PascalImport::initVars
void initVars()
Definition: pascalimport.cpp:50
PascalImport::parseStmt
bool parseStmt()
Definition: pascalimport.cpp:116
nativeimportbase.h