#include <MatrixCodec.h>
Inheritance diagram for util::MatrixCodec< T >:

Public Methods | |
| virtual | ~MatrixCodec () |
| virtual Matrix< T > | readFromFile (std::string file) throw (MatrixException&, io::IOException&) |
| Read a matrix from a file. | |
| virtual void | writeToFile (std::string file, const Matrix< T > &mat) throw (MatrixException&, io::IOException&) |
| Write a matrix to a file. | |
| virtual void | decodeMatrix (std::istream &in, Matrix< T > &mat)=0 throw (MatrixException&, io::IOException&) |
| Decode an matrix. | |
| virtual void | encodeMatrix (std::ostream &out, const Matrix< T > &mat)=0 throw (MatrixException&, io::IOException&) |
| Encode an matrix. | |
|
||||||||||||||||
|
Decode an matrix. Matrix data is read from in and placed into mat. Matrix dimensions must be read from the stream.
Implemented in PnmCodec< T >, ColorBmpCodec, MagickCodec< T >, RasterCodec, and util::AsciiCodec< T >. |
|
||||||||||||||||
|
Encode an matrix. Matrix data is extracted from mat and written into out in some matrix file format.
Implemented in util::AsciiCodec< T >. |
|
||||||||||
|
Read a matrix from a file. Opens an input stream, reads the data from the file, and returns them as a matrix.
Reimplemented in MagickCodec< T >. |
|
||||||||||||||||
|
Write a matrix to a file.
|