00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00015
00017
00018 #if !defined(AFXQ_XQDEBUGCALLBACK_H__446AD191_E9D0_4658_BD8C_032D29DA125F__INCLUDED_)
00019 #define AFXQ_XQDEBUGCALLBACK_H__446AD191_E9D0_4658_BD8C_032D29DA125F__INCLUDED_
00020
00021 #include <xqilla/framework/XQillaExport.hpp>
00022 #include <xercesc/util/XercesDefs.hpp>
00023
00024 class Sequence;
00025 class DynamicContext;
00026
00027 XERCES_CPP_NAMESPACE_BEGIN
00028 class DOMNode;
00029 XERCES_CPP_NAMESPACE_END
00030
00031 class XQILLA_API XQDebugCallback
00032 {
00033 public:
00034 virtual ~XQDebugCallback() {}
00035
00036 virtual void IsBreakPointHit(DynamicContext* context, const XMLCh* file, unsigned int nLine) = 0;
00037 virtual void EnterFunction(DynamicContext* context, const XMLCh* file, const XMLCh* fnName, unsigned int nLine, unsigned int nColumn) = 0;
00038 virtual void ExitFunction(DynamicContext* context, const XMLCh* fnName) = 0;
00039 virtual void ReportClonedNode(DynamicContext* context, const XERCES_CPP_NAMESPACE_QUALIFIER DOMNode* original, const XERCES_CPP_NAMESPACE_QUALIFIER DOMNode* clone) = 0;
00040 virtual void ReportResult(DynamicContext* context, const XMLCh* file, unsigned int nLine, unsigned int nColumn, Sequence& result) = 0;
00041 virtual void ReportFirstError(DynamicContext* context, const XMLCh* error, const XMLCh* file, unsigned int nLine) = 0;
00042
00043 virtual void NotifyQueryBegin(DynamicContext* context, const XMLCh* query) = 0;
00044 virtual void NotifyQueryEnd(DynamicContext* context, Sequence& result) = 0;
00045 };
00046
00047 #endif // !defined(AFXQ_XQDEBUGCALLBACK_H__446AD191_E9D0_4658_BD8C_032D29DA125F__INCLUDED_)