Use a reference for I/O streams to refer to both standard and file streams
Refactoring all programs in the RSMTK pipeline (i.e. rsmg, rsmb, rsmi and rsmo) to use a reference for iostreams like the following code snippet:
std::ofstream realOutFile;
if(outFileRequested)
realOutFile.open("foo.txt", std::ios::out);
std::ostream & outFile = (outFileRequested ? realOutFile : std::cout);