|
LTL
2.0.x
|
Classes | |
| class | ltl::AscFile |
| Columns based interface to an ASCII data file. More... | |
Functions | |
| template<> | |
| int | ltl::AscFile::readColumn (const int col, vector< string > &cont, const int start, int nrows) throw (IOException) |
| template<class T > | |
| int | ltl::AscFile::readColumn (const int col, T &cont, const int start=1, int nrows=-1) throw (IOException) |
| High level interface for standard STL containers. More... | |
| template<class T > | |
| int | ltl::AscFile::readColumn (const int col, vector< T > &cont, const int start=1, int nrows=-1) throw (IOException) |
| High level interface for STL vectors. More... | |
| template<class T > | |
| int | ltl::AscFile::readColumn (const int col, T *&cont, const int start=1, int nrows=-1) throw (IOException) |
| High level interface for C-style arrays. More... | |
| template<class T > | |
| void | ltl::AscFile::replaceColumn (const int col, const T &cont, ostream &os) |
| Replace one column and write result to ostream. More... | |
| template<class T > | |
| void | ltl::AscFile::replaceColumns (const int col1, const int col2, const T &cont, ostream &os) |
| Replace consecutive columns and write result to ostream. More... | |
Reading from ASCII files for ltl::MArray.
| int ltl::AscFile::readColumn | ( | const int | col, |
| vector< string > & | cont, | ||
| const int | start, | ||
| int | nrows | ||
| ) | |||
| throw | ( | IOException | |
| ) | |||
| template< class T > int ltl::AscFile::readColumn | ( | const int | col, |
| T & | cont, | ||
| const int | start = 1, |
||
| int | nrows = -1 |
||
| ) | |||
| throw | ( | IOException | |
| ) | |||
High level interface for standard STL containers.
User-interface class used to read the column col into the STL container cont.
References ltl::count(), ltl::AscFile::currline_, ISTREAM, ltl::AscFile::readColumnFromLine__(), ltl::AscFile::readNextLine__(), ltl::AscFile::rewind__(), and ltl::AscFile::rows().
| int ltl::AscFile::readColumn | ( | const int | col, |
| vector< T > & | cont, | ||
| const int | start = 1, |
||
| int | nrows = -1 |
||
| ) | |||
| throw | ( | IOException | |
| ) | |||
High level interface for STL vectors.
References ltl::count(), ltl::AscFile::currline_, ISTREAM, ltl::AscFile::readColumnFromLine__(), ltl::AscFile::readNextLine__(), ltl::AscFile::rewind__(), and ltl::AscFile::rows().
| template< class T > int ltl::AscFile::readColumn | ( | const int | col, |
| T *& | cont, | ||
| const int | start = 1, |
||
| int | nrows = -1 |
||
| ) | |||
| throw | ( | IOException | |
| ) | |||
High level interface for C-style arrays.
User-interface class used to read the column col into a C-style array.
References ltl::count(), ltl::AscFile::currline_, ISTREAM, ltl::AscFile::readColumnFromLine__(), ltl::AscFile::readNextLine__(), ltl::AscFile::rewind__(), and ltl::AscFile::rows().
| void ltl::AscFile::replaceColumn | ( | const int | col, |
| const T & | cont, | ||
| ostream & | os | ||
| ) |
Replace one column and write result to ostream.
References ltl::AscFile::replaceColumns().
| void ltl::AscFile::replaceColumns | ( | const int | col1, |
| const int | col2, | ||
| const T & | cont, | ||
| ostream & | os | ||
| ) |
Replace consecutive columns and write result to ostream.
References ltl::AscFile::comment_, ltl::AscFile::delim_, ltl::AscFile::eof__(), ltl::AscFile::in_, ltl::AscFile::replaceColumnsInLine__(), and ltl::AscFile::rewind__().
Referenced by ltl::AscFile::replaceColumn().
1.8.5