Thanks, Jorrit!
2007/1/30, Jorrit Tyberghein <[EMAIL PROTECTED]>:
The easiest way is to subclass the csRefCount class in CS.
Greetings,
On 1/30/07, Nagy József <[EMAIL PROTECTED]> wrote:
> I want to handle my class with the csRef template. The documation says,
the
> only requirement is implementing DecRef() and IncRef(). My class does'nt
> implement any SCF interface. What is easiest way to do this? Manual
> implementation? Or CS has some built-in method to make the things
easier? (I
> hope, it has.)
>
>
> The class header (when important):
>
> class cimConsole
> {
> private:
>
> iObjectRegistry* object_reg;
>
> struct ExecCallback : public
> scfImplementation1<ExecCallback,iConsoleExecCallback>
> {
> ExecCallback () : scfImplementationType (this) { }
> virtual ~ExecCallback () { }
> virtual void Execute (const char* cmd);
> csRef<iScript> python;
> bool InitPython(iObjectRegistry *obj_reg);
> };
>
> bool visible;
>
> public:
> csRef<iConsoleInput> conin;
> csRef<iConsoleOutput> conout;
> cimConsole();
>
> ~cimConsole();
>
> bool Initialize(iObjectRegistry* obj_reg);
>
> void Show();
>
> void Hide();
>
> void Toggle();
>
> bool HandleEvent (iEvent& ev);
>
> bool IsVisible();
>
> --
> Jocó
>
-------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
your
> opinions on IT & business topics through brief surveys - and earn cash
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> _______________________________________________
> Crystal-main mailing list
> Crystal-main@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/crystal-main
> Unsubscribe:
> mailto:[EMAIL PROTECTED]
>
>
>
--
Project Manager of Crystal Space (http://www.crystalspace3d.org)
and CEL (http://cel.crystalspace3d.org)
Support Crystal Space. Donate at
https://sourceforge.net/donate/index.php?group_id=649
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Crystal-main mailing list
Crystal-main@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/crystal-main
Unsubscribe: mailto:[EMAIL PROTECTED]
?subject=unsubscribe
--
Jocó
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Crystal-main mailing list
Crystal-main@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/crystal-main
Unsubscribe: mailto:[EMAIL PROTECTED]