namespace yav class TclObject : public ListElement<TclObject> base class for any object that is linked with a TCL command
| | (TclObject::*OPTION) (int, char **) command option pointer |
| | kindCmd (int argc, char **argv) -kind command option valid for all TclObject |
| | getRef (void) const returns objects unique id in objects kind list |
| | name (TclString& objid) const returns unique object identifier string |
| | name (void) const returns unique object identifier string |
| | (*getCommand(void)) (TclObject *, Tcl_Interp*, int, char **) get command function associated to this object |
| | setCommand (int (*cmd)(TclObject *, Tcl_Interp*, int, char **)) set a new command function for this object |
| | getOptions (void) get options map |
| | error (void) returns an error message with all command options |
| | exec (Tcl_Interp *interp, int argc, char **argv) executes command |
| | resetResult (void) reset object module's result |
| | setResult (const TclString& str) const set object module's result |
| | setResult (const char *str) const set object module's result |
| | setResult (char *s...) const set object module's result |
| | tickle (const TclString& str) const evaluates string in object module's TCL interpretor |
| | tickle (char *s...) const formata string and evaluates it in object module's TCL interpretor |
| | getObjectName (void) const returns object base name Tcl command name is 'getObjectName()getRef()' |
| | getModule (void) const returns class module |
| | list (TclModule *m, int argc, char **argv) builds a TclObject |
| | create (TclModule *m, int argc, char **argv) Default creation function for building a new T object from a TCL command line |
| | genericCmd (ClientData cd, Tcl_Interp *interp, int argc, char **argv) TCL callback command |
| | getHead (void) const returns first object of that kind |
| | getTail (void) const returns last object of that kind |
| | getHead (const std::type_info& type) returns object of given kind |
| | getTail (const std::type_info& type) returns last object of given kind |
| | getCount (void) const returns number of object of that kind |
| | getObjectKind (void) const get this object class descriptor |
| | Constructors
| ||||
| | Destructor |
| | objectKind TCL object class descriptor |
| | ref objects unique reference for that kind |
| | buildTCLCommand (void) const builds a TCL command named 'objectName%u' |
| | deleteTCLCommand (void) const deletes TCL command 'objectName%u' |
| | done (const std::type_info& id) method that should be called at the end of any TclObject constructor to call all WarnedObjects callback |
| | deleted (const std::type_info& id) method that should be called at the end of any TclObject destructor to call all WarnedObjects callback |
| | init (void) constructors common code |
| | setObjectKind (const std::type_info& info, TclModule *m = 0) set a new base object type for derivating objects |
base class for any object that is linked with a TCL command
unsigned int ref
void buildTCLCommand(void) const
void deleteTCLCommand(void) const
void done(const std::type_info& id)
void deleted(const std::type_info& id)
typedef int (TclObject::*OPTION)(int, char **)
Constructors
TclObject(const std::type_info& info, TclModule *m = 0)
m - module this object is created in
TclObject(const TclObject& object)
Destructor
int kindCmd(int argc, char **argv)
unsigned int getRef(void) const
virtual void name(TclString& objid) const
virtual TclString name(void) const
int (*getCommand(void))(TclObject *, Tcl_Interp*, int, char **)
void setCommand(int (*cmd)(TclObject *, Tcl_Interp*, int, char **))
std::map < char *, CommandOption *, CStringCompare > * getOptions(void)
int error(void)
int exec(Tcl_Interp *interp, int argc, char **argv)
argc - command options number
argv - command options
void resetResult(void)
void setResult(const TclString& str) const
void setResult(const char *str) const
void setResult(char *s...) const
...format - arguments
int tickle(const TclString& str) const
int tickle(char *s...) const
...format - arguments
const char* getObjectName(void) const
TclModule* getModule(void) const
static int list(TclModule *m, int argc, char **argv)
argc - command line number of arguments
argv - command line arguments
static int create(TclModule *m, int argc, char **argv)
arc - number of command line arguments
argv - command line arguments
static int genericCmd(ClientData cd, Tcl_Interp *interp, int argc, char **argv)
TclObject* getHead(void) const
TclObject* getTail(void) const
static TclObject* getHead(const std::type_info& type)
static TclObject* getTail(const std::type_info& type)
unsigned int getCount(void) const
TclObjectKind* getObjectKind(void) const
void init(void)
void setObjectKind(const std::type_info& info, TclModule *m = 0)
m - module for new object kind
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