Some tests for 'gmx help -export rst'
[alexxy/gromacs.git] / src / gromacs / utility / file.cpp
index dbd809c38b2bf5a4f1c56737c9a8e88ab8c14871..76147344aa7dbbcccde11c132b842aa92e651140 100644 (file)
@@ -140,6 +140,12 @@ File::File(const std::string &filename, const char *mode)
     open(filename, mode);
 }
 
+File::File(const FileInitializer &initializer)
+    : impl_(new Impl(NULL, true))
+{
+    open(initializer.filename_, initializer.mode_);
+}
+
 File::File(FILE *fp, bool bClose)
     : impl_(new Impl(fp, bClose))
 {