IMP  2.1.0
The Integrative Modeling Platform
IMP::base::TextInput Class Reference

#include <IMP/base/file.h>

+ Inheritance diagram for IMP::base::TextInput:

Public Member Functions

 TextInput (std::string file_name)
 
 TextInput (std::istream &out, std::string name="C++ stream")
 
std::string get_name () const
 
 IMP_SAFE_BOOL (TextInput, in_ &&in_->get_stream())
 
 IMP_SHOWABLE_INLINE (TextInput, out<< get_name())
 

Detailed Description

A TextInput 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 TextInput as an argument.

IMP::atom::read_pdb("path/to/file.pdb", m);
IMP::atom::read_pdb(my_fstream, m);
See Also
TextOutput

Definition at line 86 of file base/file.h.


The documentation for this class was generated from the following file: