biod.pnpi.spb.ru
/
alexxy
/
gromacs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Some tests for 'gmx help -export rst'
[alexxy/gromacs.git]
/
src
/
gromacs
/
utility
/
file.cpp
diff --git
a/src/gromacs/utility/file.cpp
b/src/gromacs/utility/file.cpp
index dbd809c38b2bf5a4f1c56737c9a8e88ab8c14871..76147344aa7dbbcccde11c132b842aa92e651140 100644
(file)
--- a/
src/gromacs/utility/file.cpp
+++ b/
src/gromacs/utility/file.cpp
@@
-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))
{