MArray ASCII I/O
[MArray I/O]

Classes

Functions


Detailed Description

Reading from ASCII files for ltl::MArray.


Function Documentation

template<>
int ltl::AscFile::readColumn ( const int  col,
vector< string > &  cont,
const int  start,
int  nrows 
) throw (IOException) [inline, inherited]
template<class T >
template< class T > int ltl::AscFile::readColumn ( const int  col,
T &  cont,
const int  start = 1,
int  nrows = -1 
) throw (IOException) [inline, inherited]

High level interface for standard STL containers.

User-interface class used to read the column col into the STL container cont.

Warning:
Currently only container that provide push_back() are supported.

References ltl::count(), ltl::AscFile::currline_, ltl::AscFile::readColumnFromLine__(), ltl::AscFile::readNextLine__(), ltl::AscFile::rewind__(), and ltl::AscFile::rows().

template<class T >
int ltl::AscFile::readColumn ( const int  col,
vector< T > &  cont,
const int  start = 1,
int  nrows = -1 
) throw (IOException) [inline, inherited]
template<class T >
template< class T > int ltl::AscFile::readColumn ( const int  col,
T *&  cont,
const int  start = 1,
int  nrows = -1 
) throw (IOException) [inline, inherited]

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_, ltl::AscFile::readColumnFromLine__(), ltl::AscFile::readNextLine__(), ltl::AscFile::rewind__(), and ltl::AscFile::rows().

template<class T >
void ltl::AscFile::replaceColumn ( const int  col,
const T &  cont,
ostream &  os 
) [inline, inherited]

Replace one column and write result to ostream.

References ltl::AscFile::replaceColumns().

template<class T >
void ltl::AscFile::replaceColumns ( const int  col1,
const int  col2,
const T &  cont,
ostream &  os 
) [inline, inherited]

Generated on 19 Feb 2015 for LTL by  doxygen 1.6.1