[Quickfix-developers] enh rqst: config file to expand environment variables
Brought to you by:
orenmnero
From: Andrew M. <mar...@gm...> - 2022-02-21 16:26:56
|
Hello everyone, IMO it would be nice if there was a syntax for referring to environment variables in the quickfix config file. Avoid ${varname} since that means the file won't work with quickfixJ, since that syntax is used to refer to java properties. What we need is a syntax that works with both languages so that the quickfix config file is portable between C++ and java environments. One convention would be to say: ${env:varname}. There are some java components, like log4j2, which do this. Sorry to mention java so much on the C++ mailing list but I think compatibility between the C++ and java implementations is useful. quickfixj already has the standard java mechanism for referring to properties and it is possible to set properties to environment variable values on the JVM command line. But there is nothing for the C++ quickfix. I've come across the need because I want to use an environment variable to refer to the pathname of the FIX DD. Having a config file like this is an aid to automated deployment. -- Regards, Andrew Marlow http://www.andrewpetermarlow.co.uk |