Gromacs
5.1.3
|
Implementation of FileOutputRedirectorInterface for tests.
This class redirects all output files to temporary files managed by a TestFileManager, and supports checking the contents of these files using the reference data framework.
Public Member Functions | |
TestFileOutputRedirector (TestFileManager *fileManager) | |
Initializes the redirector with the given file manager. | |
virtual File & | standardOutput () |
Returns a File object to use for stdout output. | |
virtual FileInitializer | openFileForWriting (const char *filename) |
Returns a File object to use for output to a given file. More... | |
void | checkRedirectedFiles (TestReferenceChecker *checker) |
Checks the contents of all redirected files. | |
Public Member Functions inherited from gmx::FileOutputRedirectorInterface | |
FileInitializer | openFileForWriting (const std::string &filename) |
Convenience method to open a file using an std::string path. | |
|
inlinevirtual |
Returns a File object to use for output to a given file.
[in] | filename | Requested file name. |
Implements gmx::FileOutputRedirectorInterface.