indii/ml/data/TextFileWriter.hpp

00001 #ifndef INDII_ML_DATA_TEXTFILEWRITER_HPP
00002 #define INDII_ML_DATA_TEXTFILEWRITER_HPP
00003 
00004 #include "Writer.hpp"
00005 
00006 namespace indii {
00007   namespace ml {
00008     namespace data {
00009     
00010 /**
00011  * Writer for white-space delimited text files.
00012  *
00013  * @author Lawrence Murray <lawrence@indii.org>
00014  * @version $Rev: 516 $
00015  * @date $Date: 2008-08-12 18:08:30 +0100 (Tue, 12 Aug 2008) $
00016  */
00017 class TextFileWriter : public Writer {
00018 public:
00019   /**
00020    * Construct from output stream.
00021    *
00022    * @param out Stream to which to write.
00023    */
00024   TextFileWriter(std::ostream* out);
00025 
00026   /**
00027    * Construct from file
00028    *
00029    * @param file Name of file to which to write.
00030    */
00031   TextFileWriter(const std::string file);
00032 
00033   /**
00034    * Destructor.
00035    */
00036   virtual ~TextFileWriter();
00037 
00038   virtual void write(const double value);
00039 
00040   virtual void write(const indii::ml::aux::vector& values);
00041 
00042   virtual void write(const indii::ml::aux::matrix& values);
00043 
00044   virtual void write(const indii::ml::aux::symmetric_matrix& values);
00045 
00046   virtual void writeLine();
00047   
00048   using Writer::writeLine;
00049 
00050 };
00051 
00052     }
00053   }
00054 }
00055 
00056 #endif
00057 

Generated on Wed Dec 17 15:11:57 2008 for dysii Dynamical Systems Library by  doxygen 1.5.3