indii/fmri/data/TextFileWriter.hpp

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

Generated on Tue Oct 9 22:02:07 2007 for fmrii fMRI Modelling Library by  doxygen 1.5.2