IMP logo
IMP Reference Guide  2.7.0
The Integrative Modeling Platform
IMP::TextInput Class Reference

#include <IMP/file.h>

+ Inheritance diagram for IMP::TextInput:

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 89 of file file.h.

Public Member Functions

 TextInput (std::string file_name)
 
 TextInput (std::istream &out, std::string name="C++ stream")
 
std::string get_name () const
 
 operator bool_type () const
 
void show (std::ostream &out=std::cout) const
 

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