13 #include "ioexception.h"
21 extern std::string start_path;
30 string readFile(
const string &fileName)
throw (IOException);
43 const string &outputDir,
const string &ext);
57 FILE * open_file_stream(
const string &input_file_name);
58 istream * open_file_istream(
const string &filename);
59 istream * open_file_istream_or_error(
const string &filename);
60 istream * open_data_file_istream(
const string &path,
const string &filename,
61 const string &start = start_path);
62 FILE * open_data_file_stream(
const string &path,
const string &filename,
63 const string &start = start_path);
64 bool read_line(istream *in,
string &line);
65 string get_file_path(
const string &s);
66 bool contains_path(
const string &);
67 string strip_file_path(
const string &);
68 string get_input_file_name(
const string &file_name);
C++ class: doctemplate.h.
Definition: bufferedoutput.cpp:13
string readFile(const string &fileName)
Reads the contents of the file into a string and returns it.
Definition: fileutil.cc:51
unsigned int get_line_count(istream &input)
Definition: fileutil.cc:143
string createOutputFileName(const string &inputFileName, const string &outputDir, const string &ext)
Creates the output file name as outputDir + input file name + ext.
Definition: fileutil.cc:107
string get_file_extension(const string &s)
Definition: fileutil.cc:158