#ifndef __SQLPARSERRESULT__ #define __SQLPARSERRESULT__ #include "sql/SQLStatement.h" namespace hsql { /** * Represents the result of the SQLParser. * If parsing was successful it contains a list of SQLStatement. */ class SQLParserResult { public: SQLParserResult(); SQLParserResult(SQLStatement* stmt); virtual ~SQLParserResult(); void addStatement(SQLStatement* stmt); SQLStatement* getStatement(int id); size_t size(); // public properties std::vector statements; bool isValid; const char* errorMsg; int errorLine; int errorColumn; }; } // namespace hsql #endif // __SQLPARSERRESULT__