Debian Codegraph @

CodeLite/function.h

raw
1 //////////////////////////////////////////////////////////////////////////////
2 //////////////////////////////////////////////////////////////////////////////
3 //
4 // Copyright : (C) 2015 Eran Ifrah
5 // File name : function.h
6 //
7 // -------------------------------------------------------------------------
8 // A
9 // _____ _ _ _ _
10 // / __ \ | | | | (_) |
11 // | / \/ ___ __| | ___| | _| |_ ___
12 // | | / _ \ / _ |/ _ \ | | | __/ _ )
13 // | \__/\ (_) | (_| | __/ |___| | || __/
14 // \____/\___/ \__,_|\___\_____/_|\__\___|
15 //
16 // F i l e
17 //
18 // This program is free software; you can redistribute it and/or modify
19 // it under the terms of the GNU General Public License as published by
20 // the Free Software Foundation; either version 2 of the License, or
21 // (at your option) any later version.
22 //
23 //////////////////////////////////////////////////////////////////////////////
24 //////////////////////////////////////////////////////////////////////////////
25
26 #ifndef FUNCTION_H
27 #define FUNCTION_H
28
29 #include "string"
30 #include "list"
31 #include "variable.h"
32 #include <stdio.h>
33
34 #ifndef WXDLLIMPEXP_CL
35
36 #ifdef WXMAKINGDLL_CL
37 #define WXDLLIMPEXP_CL __declspec(dllexport)
38 #elif defined(WXUSINGDLL_CL)
39 #define WXDLLIMPEXP_CL __declspec(dllimport)
40 #else // not making nor using DLL
41 #define WXDLLIMPEXP_CL
42 #endif
43
44 #endif
45
46 class WXDLLIMPEXP_CL clFunction
47 {
48 public:
49 std::string m_name;
50 std::string m_scope; // functions' scope
51 std::string m_retrunValusConst; // is the return value a const?
52 std::string m_signature;
53 Variable m_returnValue;
54 int m_lineno;
55 bool m_isVirtual;
56 bool m_isPureVirtual;
57 bool m_isConst;
58 bool m_isFinal;
59 std::string m_throws;
60
61 public:
62 clFunction();
63 virtual ~clFunction();
64
65 // clear the class content
66 void Reset();
67
68 // print the variable to stdout
69 void Print();
70 };
71
72 typedef std::list<clFunction> FunctionList;
73 #endif // FUNCTION_H