Mercurial > hg > aimc
diff src/Modules/Output/FileOutputAIMC.h @ 603:087f3b3c36d3
Add option to dump strobes
author | tomwalters@google.com |
---|---|
date | Tue, 07 May 2013 14:24:33 +0000 |
parents | 988c8b6f7946 |
children |
line wrap: on
line diff
--- a/src/Modules/Output/FileOutputAIMC.h Fri Apr 19 00:26:23 2013 +0000 +++ b/src/Modules/Output/FileOutputAIMC.h Tue May 07 14:24:33 2013 +0000 @@ -40,16 +40,18 @@ */ explicit FileOutputAIMC(Parameters *pParam); ~FileOutputAIMC(); - - /*! \brief Initialize the output to AIMC. + virtual void Process(const SignalBank &input); + private: + /*! \brief Initialize the output to AIMC. * \param *filename Filename of the ouptut file to be created. * If the file exists it will be overwritten * \return Returns true on success of initialization. */ bool OpenFile(string &filename); bool CloseFile(); - virtual void Process(const SignalBank &input); - private: + bool OpenStrobesFile(string &filename); + bool CloseStrobesFile(); + virtual bool InitializeInternal(const SignalBank &input); virtual void ResetInternal(); @@ -62,6 +64,7 @@ /*! \brief Internal pointer to the output file */ FILE *file_handle_; + FILE *strobes_file_handle_; /*! \brief Count of the number of samples in the file, written on close */ @@ -72,6 +75,8 @@ float sample_rate_; float frame_period_ms_; string file_suffix_; + bool dump_strobes_; + string strobes_file_suffix_; }; } // namespace aimc