I wish to write the list of all parameter values used for the current run to a parameterFile.txt
in the output directory.
I have all the parameters declared in one of the header files say constants.hpp
. I was trying the boost::filesystem copy_file
method to merely copy the whole header "as-is" to a text file. The problem however is that if running on a remote machine, the header file is obviously not available for copying. And I do agree that dumping parameter values this way is stupid (when I can just put the header in the output).
Is there a better method to do so?
TIA, Nikhil