Fennel: /home/pub/open/dev/fennel/farrago/JavaErrorTarget.h Source File (original) (raw)
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef Fennel_JavaErrorTarget_Included
00025 #define Fennel_JavaErrorTarget_Included
00026
00027 #include "fennel/exec/ErrorTarget.h"
00028 #include "fennel/farrago/JniUtil.h"
00029
00030 FENNEL_BEGIN_NAMESPACE
00031
00036 class FENNEL_FARRAGO_EXPORT JavaErrorTarget
00037 : public ErrorTarget
00038 {
00043 jobject javaError;
00044
00048 jmethodID methNotifyError;
00049
00050 public:
00051 ~JavaErrorTarget();
00052
00059 explicit JavaErrorTarget(jobject javaErrorInit);
00060
00061
00062 virtual void notifyError(
00063 const std::string &source,
00064 ErrorLevel level,
00065 const std::string &message,
00066 void *address,
00067 long capacity,
00068 int index);
00069 };
00070
00071 FENNEL_END_NAMESPACE
00072
00073 #endif
00074
00075