Re: enums and dictionaries

From: Georg Troska <georg.troska_at_uni-dortmund.de>
Date: Tue, 22 Feb 2011 18:29:53 +0100


Hi Philippe

Good hint!

rlibmap creates the enum if it is enclosed in a class. But how can I use it then? I want to do something like this:

enum kind {

        kA, kB
}
class A {

	kind _info;
	A(kind info) : _info(info) {}

};

root[0] A(kA)

Of couse cint doesn't recognize kA as a symbol. Georg
Am 22.02.2011 um 18:18 schrieb Philippe Canal:

> Hi Georg,
>

>> I'm trying to figure out how to add an enum to the root-dictionary
>> #pragma link C++ enum ENUMNAME

>
> This is the correct syntax to add the enum to the root dictionary
>
> > but it doesn't appear in the rootmap-file. Any hint?
>
> How do you produce the rootmap files? Currently rlibmap only
> generate an entry for classes. (I.e the right solution is likely
> to enclosed your enum into a class).
>
> Cheers,
> Philippe.
>
> On 2/21/11 11:45 AM, Georg Troska wrote:
>> Hi,
>> 
>> I'm trying to figure out how to add an enum to the root-dictionary
>> 
>> I tried
>> 
>> #pragma link C++ enum ENUMNAME;
>> 
>> but it doesn't appear in the rootmap-file. Any hint?
>> 
>> Georg
>> 
Received on Tue Feb 22 2011 - 18:30:05 CET

This archive was generated by hypermail 2.2.0 : Wed Feb 23 2011 - 05:50:01 CET