33 #ifndef TCLVARIABLE_H //Required for current class 36 #ifndef TCLVERSIONHACKS_H 37 #include "TCLVersionHacks.h" 40 #ifndef TCLINTERPRETEROBJECT_H 41 #include "TCLInterpreterObject.h" 44 #ifndef TCLPLUSTYPES_H 45 #include <libtclplusdatatypes.h> 52 std::string m_sVariable;
53 TCLPLUS::Bool_t m_fTracing;
54 TCLPLUS::Int_t m_nTraceFlags;
55 std::string m_sTraceIndex;
68 CTCLVariable (std::string am_sVariable, TCLPLUS::Bool_t am_fTracing ) :
70 m_sVariable (am_sVariable),
71 m_fTracing (am_fTracing)
74 std::string am_sVariable, TCLPLUS::Bool_t am_fTracing ) :
76 m_sVariable (am_sVariable),
77 m_fTracing (am_fTracing)
85 m_fTracing(TCLPLUS::kfFALSE)
87 DoAssign(aCTCLVariable);
94 if (
this == &aCTCLVariable)
return *
this;
95 CTCLInterpreterObject::operator=(aCTCLVariable);
96 DoAssign(aCTCLVariable);
103 int operator== (
const CTCLVariable& aCTCLVariable)
const 106 (CTCLInterpreterObject::operator== (aCTCLVariable)) &&
107 (m_sVariable == aCTCLVariable.m_sVariable) &&
108 (m_fTracing == aCTCLVariable.m_fTracing)
115 std::string getVariableName()
const 119 TCLPLUS::Bool_t IsTracing()
const 127 void setVariableName (
const std::string am_sVariable)
129 if(IsTracing()) UnTrace();
130 m_sVariable = am_sVariable;
133 void setTracing (TCLPLUS::Bool_t am_fTracing)
135 m_fTracing = am_fTracing;
140 virtual char* operator() (
char* pName,
144 static char* TraceRelay (ClientData pObject, Tcl_Interp* pInterpreter,
145 tclConstCharPtr pName,
146 tclConstCharPtr pIndex,
149 const char* Set (
const char* pValue,
int flags=TCL_LEAVE_ERR_MSG |
151 const char* Set (
const char* pSubscript,
const char* pValue,
152 int flags=TCL_LEAVE_ERR_MSG | TCL_GLOBAL_ONLY) ;
153 const char* Get (
int flags=TCL_LEAVE_ERR_MSG | TCL_GLOBAL_ONLY,
155 int Link (
void* pVariable,
int Type) ;
157 int Trace (
int flags=TCL_TRACE_READS | TCL_TRACE_WRITES | TCL_TRACE_UNSETS,
158 char* pIndex = (
char*)TCLPLUS::kpNULL) ;
Definition: TCLInterpreterObject.h:46
Definition: TCLInterpreter.h:59
Definition: TCLVariable.h:50