Re: Namespaces and ClassDef ClassImp

From: Axel Naumann <Axel.Naumann_at_cern.ch>
Date: Thu, 10 Jan 2008 12:26:13 +0100


Hi Marc de,

namespace UselessLib {

   class Bla {
     ClassDef(Bla,1); // short class doc    };
}

ClassImp() is only needed if you (or your users) want to have documentation (and in the future: online help support) for your class. If you want to use it you put

   ClassImp(UselessLib::Bla)
into your source file.

Cheers, Axel.

On 2008-01-10 12:14, Marc de Kamps wrote:
>
>
> Dear Rooters,
>
>
>
> What is the correct syntax for using serializing classes which are in a
> namespace? E.g. the class Bla needs to be serialized:
>
>
>
> namespace UselessLib {
>
> class Bla {
>
> };
>
> }
>
>
>
> Do I include :
>
> ClassDef(UselessLib::Bla,1) before the namespace, in the namespace or do
> I use
>
> ClassDef(Bla,1) in the namespace. How about ClasImp?
>
>
>
> Thanks,
>
> Marc
>
> -
>
> Dr. Marc de Kamps
>
> Biosystems Group
>
> School of Computing
>
> University of Leeds
>
> LS29JT, Leeds, UK
>
>
>
> dekamps_at_comp.leeds.ac.uk <mailto:dekamps_at_comp.leeds.ac.uk>
>
> http:/www.comp.leeds.ac.uk/dekamps
>
>
>
Received on Thu Jan 10 2008 - 12:26:19 CET

This archive was generated by hypermail 2.2.0 : Thu Jan 10 2008 - 17:50:01 CET