Voss Connection Detection
1
Detect a connector click using realtime code on Bela hardware
|
A class for opening a logfile, and writing data to a log. More...
#include <conndetect.h>
Public Member Functions | |
LogFile (const char *filename, const char *header, bool createUnique=true) | |
Initialize a log file. More... | |
~LogFile () | |
void | log (const std::array< float, num_cols > &data) |
Log the data to the file. More... | |
A class for opening a logfile, and writing data to a log.
num_cols | The number of data columns in the logfile |
Definition at line 14 of file conndetect.h.
LogFile< num_cols >::LogFile | ( | const char * | filename, |
const char * | header, | ||
bool | createUnique = true |
||
) |
Initialize a log file.
filename | The file name to write to. |
header | The first row in the file. Should specify the data that is |
createUnique | If set to true, it will add a number at the end of the file name, to create a unique file name. If set to false, it will overwrite the file given as argument filename. |
Create an unique file name.
One way or another, directly giving parameters to constructor results in a crash.
void LogFile< num_cols >::log | ( | const std::array< float, num_cols > & | data | ) |