FRIBParallelanalysis  1.0
FrameworkforMPIParalleldataanalysisatFRIB
CLanguageTraceCallbacks.h
1 /*
2  This software is Copyright by the Board of Trustees of Michigan
3  State University (c) Copyright 2005.
4 
5  You may use this software under the terms of the GNU public license
6  (GPL). The terms of this license are described at:
7 
8  http://www.gnu.org/licenses/gpl.txt
9 
10 */
11 
12 #ifndef CLANGUAGETRACECALLBACKS_H
13 #define CLANGUAGETRACECALLBACKS_H
14 
15 
16 #ifndef VARIABLETRACECALLBACKS_H
17 #include "VariableTraceCallback.h"
18 #endif
19 
20 
21 #include <tcl.h>
22 
23 class CTCLInterpreter;
24 
25 // This is what a callback's signature looks like.
26 
27 typedef char* (VariableTraceCallback)(Tcl_Interp*, char*, char*, int, void*);
28 
34 {
35  private:
36  VariableTraceCallback* m_pCallback;
37  void* m_pClientData;
38 
39  public:
40  CLanguageTraceCallback(VariableTraceCallback* pCallback,
41  void* pClientData);
42  virtual ~CLanguageTraceCallback();
43 
44  virtual char* operator()(CTCLInterpreter* pInterp,
45  char* pVariable,
46  char* pElement,
47  int flags);
48 };
49 
50 
51 
52 
53 #endif
Definition: CLanguageTraceCallbacks.h:33
Definition: TCLInterpreter.h:59
virtual char * operator()(CTCLInterpreter *pInterp, char *pVariable, char *pElement, int flags)
Definition: CLanguageTraceCallbacks.cpp:48
CLanguageTraceCallback(VariableTraceCallback *pCallback, void *pClientData)
Definition: CLanguageTraceCallbacks.cpp:20
Definition: VariableTraceCallback.h:23
virtual ~CLanguageTraceCallback()
Definition: CLanguageTraceCallbacks.cpp:29