[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: questions of static class?



In-Reply-To: Message from "yanglihai" <[email protected]> 
   of "Thu, 06 Jan 2000 14:08:16 +0800." <000a01bf580c$6c8b8d00$350279c8@jimyang> 
--------
>hi all,
>    who can tell me what action does the static class?
>how it act as ?
>e.g.
>
>static class DropTailClass : public TclClass {
> public:
> DropTailClass() : TclClass("Queue/DropTail") {}
> TclObject* create(int, const char*const*) {
>  return (new DropTail);
> }
>} class_drop_tail;
>
>any help is appreciated.

The construction of the class_drop_tail object
(the one instance of this class)
creates an agent of type Queue/DropTail in Tcl.

See the code in TclCL for details, or the Tcl binding chapter of the manual.

   -John Heidemann