| 48 | { |
| 49 | public: |
| 50 | struct TreeNode { |
| 51 | std::string t; |
| 52 | std::vector<TreeNode> children; |
| 53 | std::string expOperator; |
| 54 | |
| 55 | explicit TreeNode(std::string t, std::vector<TreeNode> children, std::string expOperator = "") |
| 56 | : t(t), children(children), expOperator(expOperator) |
| 57 | { |
| 58 | } |
| 59 | |
| 60 | int buildSqlString(std::string &sqlString, int bindPosition = 0) const; |
| 61 | int bindValues(QSqlQuery &selectQuery, int bindPosition = 0) const; |
| 62 | }; |
| 63 | |
| 64 | explicit QueryParser(); |
| 65 | TreeNode parse(const std::string &expr); |
no outgoing calls
no test coverage detected