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
[email protected]
https://lists.sourceforge.net/lists/listinfo/crystal-main
Unsubscribe: mailto:[EMAIL PROTECTED]

Reply via email to