Game Develop Core: ExpressionsCorrectnessTesting.h Source File

| Game Develop Core Core library for developing platforms and tools compatible with Game Develop.

- Main Page
- Modules
- Classes

- File List
- File Members

All Classes Files Functions Variables Typedefs Enumerations Macros Groups Pages
ExpressionsCorrectnessTesting.h
Go to the documentation of this file.
1
6 #ifndef GDCORE_EXPRESSIONSCORRECTNESSTESTING_H
7 #define GDCORE_EXPRESSIONSCORRECTNESSTESTING_H
8
9 #include <vector>
10 #include <string>
11 #include "GDCore/Events/ExpressionParser.h"
12 namespace gd { class ExpressionMetadata; }
13 namespace gd { class StrExpressionMetadata; }
14 namespace gd { class Expression; }
15 namespace gd { class Project; }
16 namespace gd { class Layout; }
17
18 namespace gd
19 {
20
39 class GD_CORE_API CallbacksForExpressionCorrectnessTesting : public gd::ParserCallbacks
40 {
41 public:
42
43 CallbacksForExpressionCorrectnessTesting(const gd::Project & project, const gd::Layout & layout);
44 virtual ~CallbacksForExpressionCorrectnessTesting() {};
45
46 void OnOperator(std::string text) {};
47 void OnNumber(std::string text) {};
48 void OnConstantToken(std::string text) {};
49 void OnStaticFunction(std::string functionName, const std::vector<gd::Expression> & parameters, const gd::ExpressionMetadata & expressionInfo) {};
50 void OnStaticFunction(std::string functionName, const std::vector<gd::Expression> & parameters, const gd::StrExpressionMetadata & expressionInfo) {};
51 void OnObjectFunction(std::string functionName, const std::vector<gd::Expression> & parameters, const gd::ExpressionMetadata & expressionInfo) {};
52 void OnObjectFunction(std::string functionName, const std::vector<gd::Expression> & parameters, const gd::StrExpressionMetadata & expressionInfo) {};
53 void OnObjectAutomatismFunction(std::string functionName, const std::vector<gd::Expression> & parameters, const gd::ExpressionMetadata & expressionInfo) {};
54 void OnObjectAutomatismFunction(std::string functionName, const std::vector<gd::Expression> & parameters, const gd::StrExpressionMetadata & expressionInfo) {};
55 bool OnSubMathExpression(const gd::Platform & platform, const gd::Project & project, const gd::Layout & layout, gd::Expression & expression);
56 bool OnSubTextExpression(const gd::Platform & platform, const gd::Project & project, const gd::Layout & layout, gd::Expression & expression);
57
58 private :
59 const gd::Project & project;
60 const gd::Layout & layout;
61 };
62
63 }
64
65 #endif // GDCORE_EXPRESSIONSCORRECTNESSTESTING_H