| 1 |
////////////////////////////////////////////////////////////////////////////// |
| 2 |
////////////////////////////////////////////////////////////////////////////// |
| 3 |
// |
| 4 |
// Copyright : (C) 2015 Eran Ifrah |
| 5 |
// File name : expression_result.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 EXPRESSION_RESULT_H |
| 27 |
#define EXPRESSION_RESULT_H |
| 28 |
|
| 29 |
#include "string" |
| 30 |
#include <stdio.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 ExpressionResult |
| 46 |
{ |
| 47 |
public: |
| 48 |
|
| 49 |
bool m_isFunc; |
| 50 |
std::string m_name; |
| 51 |
bool m_isThis; |
| 52 |
bool m_isaType; |
| 53 |
bool m_isPtr; |
| 54 |
std::string m_scope; |
| 55 |
bool m_isTemplate; |
| 56 |
std::string m_templateInitList; |
| 57 |
bool m_isGlobalScope; |
| 58 |
|
| 59 |
public: |
| 60 |
ExpressionResult(); |
| 61 |
virtual ~ExpressionResult(); |
| 62 |
void Reset(); |
| 63 |
void Print(); |
| 64 |
std::string ToString() const; |
| 65 |
}; |
| 66 |
#endif //EXPRESSION_RESULT_H |