[Quickfix-developers] RFE: Configuration file should allow environment variable references
Brought to you by:
orenmnero
From: Joerg T. <Joe...@ma...> - 2003-04-03 10:09:34
|
Hi, it would be nice to have the following in the configuration file: DataDictionary=${FIX_SPEC_DIR}/FIX42.xml while ${name} syntax refers to an environment variable FIX_SPEC_DIR. This make the Configuration files more flexible. In the operator>>() method of Settings: 79 case ConfigLexer::LC_STATE_VALUE: 80 std::string value = lexer.YYText(); 81 std::string::size_type pos = value.find_last_not_of( ' ' ); 82 if ( pos == std::string::npos ) continue; 83 value.resize( pos + 1 ); 84 ( *currentSection ).setString( currentName, value ); 85 break; after line 80 there could be a function expandEnvironmentVariable to interpolate the references. Cheers, Jörg -- Joerg Thoennes http://macd.com Tel.: +49 (0)241 44597-24 Macdonald Associates GmbH Fax : +49 (0)241 44597-10 Lothringer Str. 52, D-52070 Aachen |