Cambridge SMT System
szfstream.hpp File Reference

Stream wrapper for pipe/text/compressed files. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ucam::util::iszfstream
 Wrapper stream class that reads pipes, text files or gzipped files. More...
 
class  ucam::util::oszfstream
 Wrapper stream class that writes to pipes, text files or gzipped files. More...
 
class  ucam::util::FastForwardRead< StreamT >
 Convenience class that reads "quickly" until a queried line. More...
 

Namespaces

 ucam
 
 ucam::util
 

Functions

iszfstream & ucam::util::getline (iszfstream &izs, std::string &line)
 
template<typename T >
iszfstream & ucam::util::operator>> (iszfstream &iszf, T &stff)
 Templated operator >> for streaming out of iszfstream. More...
 
template<typename FM >
void ucam::util::readtextfile (const std::string &filename, FM &fm)
 Function that reads from a file. Templated on any external class with a parse method. More...
 
template<typename FM >
void ucam::util::writetextfile (const std::string &filename, FM &fm)
 Function that writes to file. Templated on any external class with a toLine method. More...
 

Detailed Description

Stream wrapper for pipe/text/compressed files.

Date
8-8-2012
Author
Gonzalo Iglesias

Definition in file szfstream.hpp.