IMP
2.1.1
The Integrative Modeling Platform
|
#include <IMP/base/file.h>
Public Member Functions | |
TextOutput (std::string file_name, bool append=false) | |
TextOutput (std::ostream &out, std::string name="C++ stream") | |
std::string | get_name () const |
IMP_SHOWABLE_INLINE (TextOutput, out<< get_name()) | |
A TextOutput can be implicitly constructed from a C++ stream, a Python filelike object or a path to a file. As a result, those can be passed directly to functions which take a TextOutput as an argument.
Files are created lazily, so TextOutput can be passed as arguments to functions that might not produce output.
Definition at line 47 of file base/file.h.