Re: [ROOT] TCollection::SetName()

From: cstrato (cstrato@EUnet.at)
Date: Mon May 27 2002 - 19:59:16 MEST


Dear Fons

Thank you, now I realize the mistake that I made.
Sorry for bothering you with such a trivial question.
(Sometimes I forget the rules of C++)

Best regards
Christian

Fons Rademakers wrote:

>Hi Christian,
>
>  if you don't want to change the behaviour of SetName() then there is
>no need to override it. Just call it from your derived class.
>
>-- Fons
>
>
>On Sun, 2002-05-26 at 23:23, cstrato wrote:
>
>>Dear Valeri
>>
>>Thank you for your suggestion.
>>I do not have problems to add a method SetName() to my own class,
>>I am just curious why TCollection::SetName() is not virtual.
>>
>>Best regards
>>Christian
>>
>>Valeri Fine wrote:
>>
>>>Dear Christian
>>>
>>>"named" TList class is called TDataSet
>>>
>>>You may use it either directly or just borrow the idea from the code.
>>>
>>>Best regards, Valeri
>>>
>>>----- Original Message ----- 
>>>From: "cstrato" <cstrato@EUnet.at>
>>>To: "roottalk" <roottalk@pcroot.cern.ch>
>>>Sent: Sunday, May 26, 2002 4:46 PM
>>>Subject: [ROOT] TCollection::SetName()
>>>
>>>
>>>>Dear Rene
>>>>
>>>>I have derived my own class from TList and wanted to name it.
>>>>However, I realized that TCollection::SetName() is not virtual,
>>>>while TCollection::GetName() is virtual.
>>>>Is there a certain reason for this?
>>>>
>>>>Best regards
>>>>Christian
>>>>-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
>>>>C.h.r.i.s.t.i.a.n. .S.t.r.a.t.o.w.a
>>>>V.i.e.n.n.a.         .A.u.s.t.r.i.a
>>>>-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
>>>>
>>>



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:54 MET