25 #ifndef TCLINTERPRETEROBJECT_H 26 #include <TCLInterpreterObject.h> 71 Tcl_Channel m_Channel;
72 bool m_fCloseOnDestroy;
93 Tcl_TcpAcceptProc* proc,
112 Tcl_Channel getChannel()
const {
115 bool ClosesOnDestroy()
const {
116 return m_fCloseOnDestroy;
121 void setChannel(Tcl_Channel Channel) {
124 void CloseOnDestroy(
bool state) {
125 m_fCloseOnDestroy = state;
131 int Read(
void** pData,
int nChars);
132 int Write(
const void* pData,
int nBytes);
CTCLChannel(CTCLInterpreter *pInterp, std::string Filename, const char *pMode, int permissions)
Construct file channel.
Definition: TCLInterpreterObject.h:46
Definition: TCLInterpreter.h:59
void Register()
Expose channel name to scripts (dangerous!!)
Definition: TCLChannel.cpp:381
std::string GetEncoding()
Definition: TCLChannel.cpp:401
Definition: TCLChannel.h:66
bool atEof()
True if EOF on channel.
Definition: TCLChannel.cpp:343
void SetEncoding(std::string Name)
Definition: TCLChannel.cpp:391
void Close()
Close channel (dangerous!!!).
Definition: TCLChannel.cpp:362
virtual ~CTCLChannel()
Definition: TCLChannel.cpp:254
int Read(void **pData, int nChars)
Read data from the channel.
Definition: TCLChannel.cpp:291
void Flush()
Flush channel data buffers.
Definition: TCLChannel.cpp:352
int Write(const void *pData, int nBytes)
Write data to the channel.
Definition: TCLChannel.cpp:334