From: Carcassi, G. <car...@bn...> - 2014-07-01 21:59:55
|
Hi Tom: Great! The original code would in this repository: https://github.com/diirt/pvmanager Cs-studio has a copied in snapshot of that, in the same way it has for caj, jca, ... The build system there has also unit tests: you can copy what happens for the other functions. For something that small, you can simply push your commit and I'll look it over. If you need/want more details, we can take it off the list. Thanks! Gabriele -----Original Message----- From: tom...@di... [mailto:tom...@di...] Sent: Monday, June 30, 2014 11:07 AM To: Carcassi, Gabriele; cs-...@li...; cs-...@li... Subject: RE: Handling VEnums in formula functions Thanks Gabriele. I have made a new file core/plugins/org.csstudio.utility.pvmanager.extra/src/org/epics/pvmanager/formula/EnumIndexOfFunction.java and implemented it there. Now I just have to work out how to contribute it back, this is the first time I've used git in anger... Thanks, Tom Cobb > -----Original Message----- > From: Carcassi, Gabriele [mailto:car...@bn...] > Sent: 13 June 2014 20:09 > To: Cobb, Tom (DLSLtd,RAL,TEC); cs-...@li...; > cs-...@li... > Subject: RE: Handling VEnums in formula functions > > Hi Tom, > > >I'm finding the formula functions very useful > Great! > > > but it seems messy to have to duplicate every single VNumber formula > You are probably right. > > > Any ideas? Is this possible? > We could have: > VNumber indexOf(VEnum) > and you'd be able to do: > =indexOf('myEnumPV')>1?"Good":"Bad" > This can be already added just by adding a class and registering it. > > Gabriele -- This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail. Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd. Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message. Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom |