--- linuxsampler/trunk/src/scriptvm/common.h 2014/05/30 12:48:05 2581 +++ linuxsampler/trunk/src/scriptvm/common.h 2014/06/01 14:44:38 2588 @@ -15,6 +15,7 @@ #define LS_INSTR_SCRIPT_PARSER_COMMON_H #include "../common/global.h" +#include namespace LinuxSampler { @@ -88,11 +89,6 @@ public: virtual VMFunction* functionByName(const String& name) = 0; }; - - class VMParserContext { - public: - virtual ~VMParserContext() {} - }; class VMExecContext { public: @@ -136,6 +132,16 @@ return "invalid"; } + class VMParserContext { + public: + virtual ~VMParserContext() {} + virtual std::vector issues() const = 0; + virtual std::vector errors() const = 0; + virtual std::vector warnings() const = 0; + virtual VMEventHandler* eventHandler(uint index) = 0; + virtual VMEventHandler* eventHandlerByName(const String& name) = 0; + }; + } // namespace LinuxSampler #endif // LS_INSTR_SCRIPT_PARSER_COMMON_H