A TCL object descriptor
![]() | deleteAllObjects (void) delete any object of that kind |
![]() | getName (void) const returns item name |
![]() | getRealName (void) const returns item real name |
![]() | newOption (char *name, int (TclObject::*cmd)(int argc, char **argv), const char *synopsis = 0, const char *description = 0) adds a new option to this command |
![]() | getModule (void) const returns module |
![]() | setModule (TclModule *m) set new module |
![]() | getOptions (void) get options map |
![]() | getNextRef (void) const returns ref of next object to be created |
![]() | (*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 |
![]() | setNewSynopsis (const char *synopsis) set new command synopsis |
![]() | firstObject (void) const returns iterator on first object |
![]() | lastObject (void) const returns iterator on last object |
![]() | getFirstObject (void) const returns objects list first element |
![]() | getLastObject (void) const returns objects list last element |
![]() | warnMe (WarnedObject *me) adds 'me' to list of object to warn when list is empty |
![]() | doNotWarnMe (WarnedObject *me) removes 'me' from list of object to warn when list is empty |
![]() | empty (void) const objects list gets empty callback function |
![]() | getObject (const std::type_info &type, unsigned int n) returns object with reference n (or 0 if it does not exist) |
![]() | getObject (TclString name) returns object (or 0 if it does not exist) |
![]() | getObject (const std::type_info &type, int argc, char **argv, int i = 1) returns object whose name is in argv[i] (or 0 if it does no exist) |
![]() | getObjectName (const std::type_info &type) returns given type object name |
![]() | findByKind (const std::type_info& type) retrieve TclObjectKind object for objects with given type |
![]() | findByName (const char *name) retrieve TclObjectKind object for objects with given name |
![]() | newCmd (TclModule *m, int argc, char **argv) TCL new command |
![]() | whichCmd (TclModule *m, int argc, char **argv) TCL which command |
![]() | addOptions (const std::type_info& src) adds options from TclObject class whose type is given to this class |
![]() | exception class | ||||
![]() | constructor
| ||||
![]() | destructor
|
![]() | name object name |
![]() | realName object real name i.e. name that can be unsderstood by the user |
![]() | options hashtable with (char *) keys and (int (T::*)(int, char **)) values |
![]() | module class module |
![]() | objects objects of that kind list |
![]() | objectsType that object kind id |
![]() | warn objects to warn when list get empty |
![]() | newSynopsis new operator command synopsis |
![]() | (*createFromArgs) (TclModule *, int, char **) pointer on a creation function |
![]() | (*objectsList) (TclModule *, int, char **) pointer on a function returning a list of this kind objects |
![]() | (*globalCommand) (TclObject *, Tcl_Interp*, int, char **) TCL global command (if any) |
![]() | operator+= (TclObject *obj) add a TclObject to objects list |
![]() | operator-= (TclObject *obj) throw(ObjectsList<TclObject>::NotFound) removes a TclObject from objects list |
![]() | created (TclObject *obj) an object of that kind is being created |
![]() | deleted (TclObject *obj) an object of that kind is being deleted |
A TCL object descriptor
const char* realName
int (*createFromArgs)(TclModule *, int, char **)
int (*objectsList)(TclModule *, int, char **)
int (*globalCommand)(TclObject *, Tcl_Interp*, int, char **)
std::map < char *, CommandOption *, CStringCompare > options
TclModule* module
ObjectsList <TclObject> objects
const std::type_info& objectsType
std::list <WarnedObject *> warn
TclString newSynopsis
void operator+=(TclObject *obj)
void operator-=(TclObject *obj) throw(ObjectsList<TclObject>::NotFound)
void created(TclObject *obj)
void deleted(TclObject *obj)
exception class
constructor
TclObjectKind(TclModule *module, const std::type_info& type, const char *name, int (*createFromArgs)(TclModule *, int, char **), int (*objectsList)(TclModule *, int, char **), const char *synopsis = 0) throw(InvalidParameters)
type - typeid describing objects of that kind dynamic type
name - kind name
createFromArgs - pointer on an object creation function
listObjects - pointer on a function returning a list of this kind objects
synopsis - new command synopsis
TclObjectKind(TclModule *module, const std::type_info& type, const char *name, const char *realName, int (*createFromArgs)(TclModule *, int, char **), int (*objectsList)(TclModule *, int, char **), const char *synopsis = 0) throw(InvalidParameters)
type - typeid describing objects of that kind dynamic type
name - kind name
realName - kind real name ie that can be understood by the user
createFromArgs - pointer on an object creation function
listObjects - pointer on a function returning a list of this kind objects
synopsis - new command synopsis
destructor
void deleteAllObjects(void)
const char* getName(void) const
const char* getRealName(void) const
void newOption(char *name, int (TclObject::*cmd)(int argc, char **argv), const char *synopsis = 0, const char *description = 0)
cmd - command option callback method
synopsis - option synopsis
description - option description TclModule* getModule(void) const
void setModule(TclModule *m)
std::map < char *, CommandOption *, CStringCompare > * getOptions(void)
unsigned int getNextRef(void) const
int (*getCommand(void))(TclObject *, Tcl_Interp*, int, char **)
void setCommand(int (*cmd)(TclObject *, Tcl_Interp*, int, char **))
void setNewSynopsis(const char *synopsis)
ObjectsList <TclObject> ::iterator firstObject(void) const
ObjectsList <TclObject> ::iterator lastObject(void) const
TclObject* getFirstObject(void) const
TclObject* getLastObject(void) const
void warnMe(WarnedObject *me)
void doNotWarnMe(WarnedObject *me)
virtual void empty(void) const
static TclObject* getObject(const std::type_info &type, unsigned int n)
n - object reference static TclObject* getObject(TclString name)
static TclObject* getObject(const std::type_info &type, int argc, char **argv, int i = 1)
argc - number of arguments
argv - aruments
i - argument index supposed to name a TCL object static const char* getObjectName(const std::type_info &type)
static TclObjectKind* findByKind(const std::type_info& type)
static TclObjectKind* findByName(const char *name)
static int newCmd(TclModule *m, int argc, char **argv)
static int whichCmd(TclModule *m, int argc, char **argv)
void addOptions(const std::type_info& src)
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