|
Re: [acceleo] Utilisation d 'enum [message #545554 is a reply to message #545544] |
Thu, 08 July 2010 08:55 |
|
Hi,
In order to resolve this problem you need to provide a bit more information in order to use your enumeration.
Something like this won't work : "if (operation.visibility = public)"
You would have to use this: "if (operation.visibility = VisibilityKind::public)"
So in your case something like this should work: if (v.side=EnumSide::BankSide)
From: http://eclipsemde.blogspot.com/2010/04/ocl-tips-and-tricks.h tml
-----------------------------------------------------------
Salut,
Pour résoudre ton problème tu vas devoir fournir un peu plus d'information pour utiliser l'énumération.
Quelque chose comme ça ne marchera pas : "if (operation.visibility = public)"
Il faut utiliser ça : "if (operation.visibility = VisibilityKind::public)"
Donc dans ton cas, ceci devrait marcher : if (v.side=EnumSide::BankSide)
De : http://eclipsemde.blogspot.com/2010/04/ocl-tips-and-tricks.h tml
|
|
|
|
Powered by
FUDForum. Page generated in 0.02797 seconds