LTL  2.0.x
Classes | Functions
MArray ASCII I/O

Classes

class  ltl::AscFile
 Columns based interface to an ASCII data file. More...
 

Functions

template<>
int ltl::AscFile::readColumn (const int col, std::vector< std::string > &cont, const int start, int nrows)
 
template<class T >
int ltl::AscFile::readColumn (const int col, T &cont, const int start=1, int nrows=-1)
 High level interface for standard STL containers. More...
 
template<class T >
int ltl::AscFile::readColumn (const int col, std::vector< T > &cont, const int start=1, int nrows=-1)
 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)
 High level interface for C-style arrays. More...
 
template<class T >
void ltl::AscFile::replaceColumn (const int col, const T &cont, std::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, std::ostream &os)
 Replace consecutive columns and write result to std::ostream. More...
 

Detailed Description

Reading from ASCII files for ltl::MArray.

Function Documentation

template<>
int ltl::AscFile::readColumn ( const int  col,
std::vector< std::string > &  cont,
const int  start,
int  nrows 
)
template<class T >
int ltl::AscFile::readColumn ( const int  col,
T &  cont,
const int  start = 1,
int  nrows = -1 
)
template<class T >
int ltl::AscFile::readColumn ( const int  col,
std::vector< T > &  cont,
const int  start = 1,
int  nrows = -1 
)
template<class T >
int ltl::AscFile::readColumn ( const int  col,
T *&  cont,
const int  start = 1,
int  nrows = -1 
)
template<class T >
void ltl::AscFile::replaceColumn ( const int  col,
const T &  cont,
std::ostream &  os 
)

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,
std::ostream &  os 
)