Refactor for testing interactive selection input
[alexxy/gromacs.git] / src / gromacs / utility / textwriter.cpp
index 6e52e0a949c35c23d78f3331941b5ff71f84c011..043261d529c58a3f92d1ba8781fc1a03167f1400 100644 (file)
@@ -77,6 +77,11 @@ TextWriter::TextWriter(const std::string &filename)
 {
 }
 
+TextWriter::TextWriter(FILE *fp)
+    : impl_(new Impl(TextOutputStreamPointer(new TextOutputFile(fp))))
+{
+}
+
 TextWriter::TextWriter(TextOutputStream *stream)
     : impl_(new Impl(TextOutputStreamPointer(stream, no_delete<TextOutputStream>())))
 {