Debian Codegraph @

CodeLite/cl_typedef.h

raw
1 //////////////////////////////////////////////////////////////////////////////
2 //////////////////////////////////////////////////////////////////////////////
3 //
4 // Copyright : (C) 2015 Eran Ifrah
5 // File name : cl_typedef.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 TYPEDEF_H
27 #define TYPEDEF_H
28
29 #include <string>
30 #include "variable.h"
31
32 #ifndef WXDLLIMPEXP_CL
33
34 #ifdef WXMAKINGDLL_CL
35 # define WXDLLIMPEXP_CL __declspec(dllexport)
36 #elif defined(WXUSINGDLL_CL)
37 # define WXDLLIMPEXP_CL __declspec(dllimport)
38 #else // not making nor using DLL
39 # define WXDLLIMPEXP_CL
40 #endif
41
42 #endif
43
44
45 class WXDLLIMPEXP_CL clTypedef
46 {
47 public:
48 std::string m_name;
49 Variable m_realType;
50
51 public:
52 clTypedef() {}
53 ~clTypedef() {}
54
55 void print() {
56 printf("Name: %s\n", m_name.c_str());
57 m_realType.Print();
58 }
59
60 void clear() {
61 m_realType.Reset();
62 m_name.clear();
63 }
64 };
65
66 typedef std::list<clTypedef> clTypedefList;
67 #endif // TYPEDEF_H