IMP logo

IMP::TextOutput Class Reference


Detailed Description

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.

    IMP::atom::write_pdb(particles, "path/to/file.pdb");
    IMP::atom::write_pdb(particles, my_fstream);
See also:
TextInput

Public Member Functions

std::string get_name () const
 TextOutput (std::ostream &out, std::string name="C++ stream")
 TextOutput (std::string file_name)

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

Generated on Mon Mar 8 23:08:46 2010 for IMP by doxygen 1.5.8