[ROOT] Re: Quick Question

From: Valeri Fine (fine@bnl.gov)
Date: Tue Oct 23 2001 - 17:36:27 MEST


----- Original Message ----- 
From: Brandon Kohn 
To: Roottalk List 
Sent: Tuesday, October 23, 2001 12:02 PM



> Quick question, is there anyway that you could serialize a platform 
> neutral class without losing that platform neutrality?  I'm working
> with an application that makes use of MFC for parts of its operation, 
> and as soon as it catches wind of T-anything it blows up.  I would like
> to use TObject wrappers for these classes, but rootcint seems to 
> complain about including these objects.  Has any work been done
>  on this type of problem?  I suppose what I'm asking is if root can 
> serialize non TObject derived classes who don't know what a TBuffer is.


> Brandon Kohn

Can you give us a short example of your class. 
otherwise it is difficult  to speculate.

In fact there two major possibilities:
   
class  MyClass : public <Some MFC class> {
  protected:
     T<Some Root Class> dataMember.
};


or

class  MyClass : public <Some ROOT class> {
  protected:
     T<Some MFC Class> dataMember.
};


  What is you case ?
  If your case is second one what do you want to do with "dataMember" 
  from I/O perspective ?

  Cheers
                                         Valeri



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:04 MET