Module description class
![]() | getName (void) const returns module name |
![]() | getInterp (void) const returns module commands interpretor |
![]() | getHandle (void) const returns module dynamic library handle (0 if module was statically linked) |
![]() | displayFunctionList (void) display all module TCL commands name |
![]() | getCommands (void) returns module commands hashtable |
![]() | getMainModule (void) const returns main application module |
![]() | newCommand (const char *name, int (*fct)(TclModule *, int, char **), const char *synopsis = 0, const char *description = 0) builds a new Tcl command with a single callback function |
![]() | newCommand (const char *name, std::map < char *, CommandOption *, CStringCompare > *options, const char *description = 0) registers a new Tcl command (not created here) in commands list |
![]() | display (const TclString& str) const display a message calling display function |
![]() | display (const char *str) const display a message calling display function |
![]() | eval (const TclString& str) const display a TCL command calling eval function |
![]() | eval (const char *str) const display a TCL command calling eval function |
![]() | setDisplayFunction (DISPLAY_FUNCTION fct) set a new display function |
![]() | setEvalFunction (EVAL_FUNCTION fct) set a new TCL commands evaluation function |
![]() | setTCLDisplayFunction (const TclString& name) set a new display function |
![]() | setTCLEvalFunction (const TclString& name) set a new TCL commands evaluation function |
![]() | getDisplayFunction (void) returns current display function |
![]() | getEvalFunction (void) returns current evaluation function |
![]() | getTCLDisplayFunction (void) returns current TCL display function name |
![]() | getTCLEvalFunction (void) returns current TCL evaluation function name |
![]() | setMainLoop (LOOP_FUNCTION fct) set main loop to handle TK events |
![]() | getMainLoop (void) returns main loop function |
![]() | resetResult (void) reset result in module interpretor |
![]() | setResult (const TclString& str) const set command result in module interpretor |
![]() | setResult (const char *str) const set command result in module interpretor |
![]() | tickle (const TclString &s) const Evaluates given string in module interpretor |
![]() | loadSource (const TclString& sname) throw(ShellNotFound) Loads script file and evaluates it in module interpretor |
![]() | windowExists (char *wname) const test a TCL window existence |
![]() | windowExists (const TclString& wname) const test a TCL window existence |
![]() | newDescriptor (TclObjectKind *ok) adds a new object descriptor created for this module |
![]() | loadNewModule (Tcl_Interp *interp, const TclString& name) throw(DlopenFailed, ModuleNotFound, ModuleAlreadyExists, NoInitFunction) creates a new module 'name' by dynamically loading file libname |
![]() | shellSearchPath (TclString& path) Returns TCL shells search paths |
![]() | moduleSearchPath (TclString& path) Returns modules search paths |
![]() | findLibrary (const TclString& name) Looks for a dynamic library for module given by name |
![]() | findModuleByName (const TclString& name) returns TclModule pointer on module given by its name or 0 if module could not be found |
![]() | init (MODULEMAINPROC mainProc, bool verbose, int argc, char **argv...) initializes TCL, TK, core module, user modules and call application main procedure |
![]() | init (Tcl_Interp *interp, const TclString& name) initializes core module for other modules management |
![]() | run (void) infinite loop on TK events |
![]() | run (unsigned int n) n-loop on TK events |
![]() | exit (int ret = 0) call any module cleanup procedure and exit |
![]() | Prompt (Tcl_Interp *interp, int partial) print a prompt in text interface |
![]() | readrc (char *rfile, TclString& init, unsigned int& nbModules, TclString *& modules) Read ressource file |
![]() | Exception classes | ||||||||||||||||||||||||||||||||||||||||||||||||
![]() | Constructor
| ||||||||||||||||||||||||||||||||||||||||||||||||
![]() | Destructor
| ||||||||||||||||||||||||||||||||||||||||||||||||
![]() | ... arguments (char *s...) const Format given string in a printf-like manner and set result in interp | ||||||||||||||||||||||||||||||||||||||||||||||||
![]() | ... arguments (const char *s... ) const Format given string in a printf-like manner and evaluates command in module interpretor | ||||||||||||||||||||||||||||||||||||||||||||||||
![]() | boolean management | ||||||||||||||||||||||||||||||||||||||||||||||||
![]() | TCL static commands
|
![]() | interp module TCL interpretor |
![]() | name module name |
![]() | handle module dynamic library handle |
![]() | commands module TCL commands hashtable |
![]() | descriptor object descriptors constructed by this module |
![]() | displayFct display function callback to display messages |
![]() | TCLdisplayCommandName TCL display function callback |
![]() | evalFct evaluation function callback to evaluate TCL commands |
![]() | TCLevalCommandName TCL evaluation function callback |
![]() | loopFct main application loop function |
![]() | booleans [2] the "true" and "false" string constants |
![]() | initargc main application number of command line arguments |
![]() | initargv main application command line arguments |
![]() | nmodules number of modules |
![]() | modulenames module names |
![]() | coremodule application core module |
![]() | (*resolveSymbol(const TclString& initFct)) (TclModule*) Tries to perform symbolic resolution given a function name |
![]() | (*mainProc) (TclModule *, int, char **) application main procedure |
![]() | main (Tcl_Interp *) Tk_Main hook procedure |
Module description class
class ModuleNotFound: public Exception
class ModuleAlreadyExists: public Exception
class NoInitFunction: public Exception
class ShellNotFound: public Exception
Tcl_Interp* interp
const TclString name
HANDLE_TYPE handle
std::map < char *, CommandInformation *, CStringCompare > commands
std::list <TclObjectKind *> descriptor
static DISPLAY_FUNCTION displayFct
static TclString TCLdisplayCommandName
static EVAL_FUNCTION evalFct
static TclString TCLevalCommandName
static LOOP_FUNCTION loopFct
Constructor
Destructor
const TclString& getName(void) const
Tcl_Interp* getInterp(void) const
HANDLE_TYPE getHandle(void) const
void displayFunctionList(void)
std::map < char *, CommandInformation *, CStringCompare > & getCommands(void)
TclModule* getMainModule(void) const
void newCommand(const char *name, int (*fct)(TclModule *, int, char **), const char *synopsis = 0, const char *description = 0)
fct - command callback function
synopsis - command synopsis
description - command effect description void newCommand(const char *name, std::map < char *, CommandOption *, CStringCompare > *options, const char *description = 0)
options - command options hashtable
description - command effect description void display(const TclString& str) const
void display(const char *str) const
int eval(const TclString& str) const
int eval(const char *str) const
static void setDisplayFunction(DISPLAY_FUNCTION fct)
static void setEvalFunction(EVAL_FUNCTION fct)
static void setTCLDisplayFunction(const TclString& name)
static void setTCLEvalFunction(const TclString& name)
static DISPLAY_FUNCTION getDisplayFunction(void)
static EVAL_FUNCTION getEvalFunction(void)
static const TclString& getTCLDisplayFunction(void)
static const TclString& getTCLEvalFunction(void)
static void setMainLoop(LOOP_FUNCTION fct)
static LOOP_FUNCTION getMainLoop(void)
void resetResult(void)
void setResult(const TclString& str) const
void setResult(const char *str) const
void ... arguments (char *s...) const
int ... arguments(const char *s... ) const
int tickle(const TclString &s) const
void loadSource(const TclString& sname) throw(ShellNotFound)
bool windowExists(char *wname) const
bool windowExists(const TclString& wname) const
void newDescriptor(TclObjectKind *ok)
void (*resolveSymbol(const TclString& initFct))(TclModule*)
static TclModule* loadNewModule(Tcl_Interp *interp, const TclString& name) throw(DlopenFailed, ModuleNotFound, ModuleAlreadyExists, NoInitFunction)
ModuleNotFound libname.so dynamic library could not be found
ModuleAlreadyExists module was already loaded
name - module name
static void shellSearchPath(TclString& path)
static void moduleSearchPath(TclString& path)
static TclString* findLibrary(const TclString& name)
static TclModule* findModuleByName(const TclString& name)
static int init(MODULEMAINPROC mainProc, bool verbose, int argc, char **argv...)
verobse - whether to print lots of informations...
argc - number of command line arguments
argv - command line arguments list
... - null terminated list of strings indicating module names static TclModule* init(Tcl_Interp *interp, const TclString& name)
name - module name
static void run(void)
static void run(unsigned int n)
static void exit(int ret = 0)
static void Prompt(Tcl_Interp *interp, int partial)
boolean management
static const char* boolString(bool b)
static bool boolValue(char *str, bool& value)
value - str boolean value (if str is "true" or "false")
TCL static commands
static void DefaultDisplay(const TclModule &m, const char *str)
str - message to display static int DefaultEval(const TclModule &m, const char *str)
str - command to evaluate
static void DefaultMainLoop(unsigned int n)
static int Evaluate(TclModule *m, int argc, char **argv)
static int Display(TclModule *m, int argc, char **argv)
static int Exit(TclModule *m, int argc, char **argv)
static int Module(TclModule *m, int argc, char **argv)
static int Functions(TclModule *m, int argc, char **argv)
static int Options(TclModule *m, int argc, char **argv)
static int IsModuleAvailable(TclModule *m, int argc, char **argv)
static int IsModuleLoaded(TclModule *m, int argc, char **argv)
static int Help(TclModule *m, int argc, char **argv)
static int LoadSource(TclModule *m, int argc, char **argv)
static int SetDisplayMessageFunction(TclModule *m, int argc, char **argv)
static int LimitedVersion(TclModule *m, int argc, char **argv)
static int SetEvalFunction(TclModule *m, int argc, char **argv)
static void activateWhenIdle(ClientData)
static int StartScript(TclModule *m, int argc, char **argv)
static int EndScript(TclModule *m, int argc, char **argv)
static int FlushEvents(TclModule *m, int argc, char **argv)
static int ActivateActivables(TclModule *m, int argc, char **argv)
static int MainLoop(TclModule *m, int argc, char **argv)
static int Shell(TclModule *m, int argc, char **argv)
static int xgrabCmd(TclModule *m, int argc, char **argv)
static const char* booleans[2]
static int initargc
static char** initargv
static unsigned int nmodules
static char** modulenames
static TclModule* coremodule
static int (*mainProc)(TclModule *, int, char **)
static int main(Tcl_Interp *)
static char* DefaultModulesPath
static char* DefaultShellsPath
static char* DefaultRessourceFileLocation
static char* RessourceModulesPath
static char* RessourceShellsPath
static bool verbose
static bool loadDynamically
static bool readrc(char *rfile, TclString& init, unsigned int& nbModules, TclString *& modules)
init - returned initialization String
nbModules - returned number of modules
modules - returned module names array
alphabetic index hierarchy of classes
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de