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

Re: can you help me? (fwd)



Sorry it should be chapter 3.

---------- Forwarded message ----------
Date: Tue, 23 Nov 1999 13:09:23 -0800 (PST)
From: Haobo Yu <[email protected]>
To: yanglihai <[email protected]>
Subject: Re: can you help me? (fwd)

You don't need to explicitly invoke anything. all you need to do is to
declare those static variables and the related methods are automatically
invoked when the shadow object is created. Pls read the first chapter of
ns documentation for further detail.

> ---------- Forwarded message ----------
> Date: Tue, 23 Nov 1999 16:35:25 +0800
> From: yanglihai <[email protected]>
> To: ns-users <[email protected]>
> Subject: can you help me?
> 
> hi,sir,
>     I research NS since September .
> but,I have had a problem for a long time.
> i.e.
> how to invoke static class object.
> e.g. 
> static class PacketHeaderManagerClass : public TclClass {
> public:
>  PacketHeaderManagerClass() : TclClass("PacketHeaderManager") {}
>  TclObject* create(int, const char*const*) {
>   return (new PacketHeaderManager);
>  }
> } class_packethdr_mgr;
> 
> to every object,program will create a Tclclass through split proc new{},but,
> I don't know how invoke static class xxx  in c++ code.
> 
> thanks in advance.
> 
> Best regards
> 
>                 Jim Yang
> 
>