OKlibrary
0.2.1.6
|
Namespaces | |
namespace | Error_file2string |
namespace | Error_FileLines |
namespace | Error_LockFile |
namespace | Error_remove_lines |
namespace | Error_TempFile |
Classes | |
struct | Error |
class | RedirectingStd |
class | FileLines |
class | FileLinesInputIterator |
class | path_template |
class | basename_template |
class | self_named |
class | TemporaryFile |
class | TemporaryFile_path_template |
class | TemporaryFile_basename_template |
class | TemporaryFile_self_named |
class | TempFile |
class | fdoutbuf |
struct | fdostream |
struct | LockedFileOstream |
class | Wrapper |
Functions | |
std::istream & | line_advance (std::istream &s, unsigned long int a) throw (std::ios_base::failure) |
template<class C , typename T > | |
TemporaryFile< C > & | operator<< (TemporaryFile< C > &tf, const T &x) |
void | remove_lines (std::string name, long int n) throw (Error_TempFile::open_file, Error_FileLines::open_file, Error_FileLines::read_file, Error_remove_lines::temporary_file, Error_TempFile::remove_file, std::ios_base::failure, std::bad_alloc) |
std::string | file2string (const char *const name) throw (Error_file2string::open_file, std::ios_base::failure) |
std::string | file2string (const std::string &name) throw (Error_file2string::open_file, std::ios_base::failure) |
bool | copy (const std::string &from, const std::string &to) |
template<typename T , int width> | |
std::ostream_iterator< Wrapper < T, width > > | output_iterator (std::ostream &o, const char *sep) |
Variables | |
const char *const | template_part = "XXXXXX" |
const int | length_template_part = 6 |
bool StreamHandling::copy | ( | const std::string & | from, |
const std::string & | to | ||
) |
Definition at line 598 of file StreamHandling.hpp.
Referenced by OKlib::InputOutput::CLSAdaptorFilter< Int, String, CLSAdaptor >::CLSAdaptorFilter(), OKlib::Satisfiability::Assignments::PartialAssignments::ApplyPassAdaptor< Int, RPass, CLSAdaptor >::n(), OKlib::SetAlgorithms::Union< vector_iterator, OutputIt >::operator()(), OKlib::SetAlgorithms::Intersection< vector_iterator, OutputIt >::operator()(), Analyse::operator<<(), OKlib::TestSystem::operator<<(), StreamHandling::path_template::path_template(), remove_lines(), emailHandling::SendWaitingEmails::send(), emailHandling::sendmail::send_direct(), and XMLHandling::Element< Presentation, is_not_empty >::str().
std::string StreamHandling::file2string | ( | const char *const | name | ) | throw (Error_file2string::open_file, std::ios_base::failure) [inline] |
Definition at line 499 of file StreamHandling.hpp.
References s.
Referenced by file2string(), AutomatedCompilation::both_outputs::get_err_output(), AutomatedCompilation::both_outputs::get_std_output(), and SystemHandling::System_bash::operator()().
std::string StreamHandling::file2string | ( | const std::string & | name | ) | throw (Error_file2string::open_file, std::ios_base::failure) [inline] |
Definition at line 507 of file StreamHandling.hpp.
References file2string().
std::istream& StreamHandling::line_advance | ( | std::istream & | s, |
unsigned long int | a | ||
) | throw (std::ios_base::failure) [inline] |
Definition at line 91 of file StreamHandling.hpp.
References s.
Referenced by test_TransformationBiclique().
TemporaryFile<C>& StreamHandling::operator<< | ( | TemporaryFile< C > & | tf, |
const T & | x | ||
) |
Definition at line 392 of file StreamHandling.hpp.
std::ostream_iterator<Wrapper<T, width> > StreamHandling::output_iterator | ( | std::ostream & | o, |
const char * | sep | ||
) |
Definition at line 624 of file StreamHandling.hpp.
void StreamHandling::remove_lines | ( | std::string | name, |
long int | n | ||
) | throw (Error_TempFile::open_file, Error_FileLines::open_file, Error_FileLines::read_file, Error_remove_lines::temporary_file, Error_TempFile::remove_file, std::ios_base::failure, std::bad_alloc) |
Definition at line 458 of file StreamHandling.hpp.
References StreamHandling::FileLines::begin(), copy(), StreamHandling::FileLines::end(), StreamHandling::TempFile::f(), L, StreamHandling::TempFile::name(), and StreamHandling::FileLines::size().
const int StreamHandling::length_template_part = 6 |
Definition at line 262 of file StreamHandling.hpp.
const char* const StreamHandling::template_part = "XXXXXX" |
Definition at line 261 of file StreamHandling.hpp.