Marsyas
0.6.0-alpha
|
00001 #ifndef MARSYAS_CSV_SINK_INCLUDED 00002 #define MARSYAS_CSV_SINK_INCLUDED 00003 00004 #include <marsyas/system/MarSystem.h> 00005 #include <string> 00006 #include <fstream> 00007 00008 namespace Marsyas { 00019 class CsvSink: public MarSystem 00020 { 00021 public: 00022 CsvSink(const std::string & name); 00023 CsvSink(const CsvSink & other); 00024 ~CsvSink(); 00025 MarSystem *clone() const { return new CsvSink(*this); } 00026 00027 private: 00028 void myUpdate( MarControlPtr ); 00029 void myProcess( realvec & in, realvec & out ); 00030 std::string m_separator; 00031 std::string m_filename; 00032 std::ofstream m_file; 00033 }; 00034 00035 } // namespace Marsyas 00036 00037 #endif // MARSYAS_CSV_SINK_INCLUDED