Experimental Physics and
| |||||||||||||||||
|
Personally, I would even go as far as setting dbLoadTemplate on the IOC to "deprecated" status. I don't see an advantage over host side expansion. To which Mark Rivers replied: I strongly disagree with this. Doing host-side expansion requires an EPICS build system. ... which just goes to show how being flexible makes the EPICS community bigger and better. We're not going to deprecate dbLoadTemplate() since it is essential to a significant part of our user-base, but obviously not to all sites. Emmanuel Mayssat asked: I like the dbLoadTemplate Not at the moment, although it should be possible to do something like that if there is sufficient demand or someone wants to just implement it, i.e. allow additional macros to be provided on the dbLoadTemplate command line that would be included in the list of macros expanded in the template. The relevant code is in base/src/dbtools/dbLoadTemplate.y There is an additional trick both dbLoadRecords() and dbLoadTemplate() already do that may not be well documented, although I'm not sure that it will help you: File pathnames given in a .substitutions file or in include statements in a .db file will also have environment variable macros expanded. This only applies to the file path/name though, not to the contents of the files themselves, and the values are taken from the environment variables at the time the file is loaded. - Andrew -- The right to be heard does not automatically include the right to be taken seriously. -- Hubert H. Humphrey
| ||||||||||||||||
ANJ, 10 Nov 2011 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |