KJB
|
RAII wrappers on FILE* objects from stdio.h and other stdio helpers. More...
#include <l/l_sys_lib.h>
#include <l/l_sys_io.h>
#include <l/l_error.h>
#include <l/l_global.h>
#include <l_cpp/l_exception.h>
#include <string>
#include <boost/scoped_ptr.hpp>
Go to the source code of this file.
Classes | |
class | kjb::File_Ptr |
RAII wrapper on stdio.h FILE pointers (use a derived class though). More... | |
struct | kjb::File_Ptr_Read |
RAII wrapper on FILE* used to read a file. More... | |
struct | kjb::File_Ptr_Write |
RAII wrapper on a FILE* used to write to a file. More... | |
struct | kjb::File_Ptr_Append |
RAII wrapper on FILE* used to append a file (write only at the end). More... | |
struct | kjb::File_Ptr_Read_Plus |
RAII wrapper on FILE* opened with mode "r+" to read and write. More... | |
class | kjb::Temporary_File |
This class safely opens a temporary file in TEMP_DIR (usually /tmp). More... | |
class | kjb::Temporary_Directory |
this class creates a temporary directory under TEMP_DIR (usu. /tmp) More... | |
struct | kjb::Temporary_Recursively_Removing_Directory |
create a temp directory that destroys itself with "rm -rf" command. More... | |
class | kjb::File_Ptr_Smart_Read |
This class transparently opens gzipped or bzip2-ed files. More... | |
Namespaces | |
kjb | |
Classes and functions for dealing with trajectory files. | |
Functions | |
int | kjb::getline (FILE *fp, std::string *line, char EOL= '\n') |
Like C's fgets but with std::string, or C++'s getline but with FILE*. More... | |
RAII wrappers on FILE* objects from stdio.h and other stdio helpers.