31 int stringBufferLength;
32 std::vector<float> buffer;
34 int binaryReadPointer;
39 WriteFileType fileType;
40 static int sleepTimeMs;
46 void allocateAndCopyString(
const char* source,
char** destination);
47 void print(
const char*
string);
48 void printBinary(
const char*
string);
49 void setLineLength(
int newLineLength);
50 int getOffsetFromPointer(
int aPointer);
51 std::vector<char *> formatTokens;
52 static void sanitizeString(
char*
string);
53 static void sanitizeString(
char*
string,
int numberOfArguments);
54 static bool isThreadRunning();
55 static bool auxiliaryTaskRunning;
56 static bool threadShouldExit();
57 static bool threadIsExiting;
58 static bool threadRunning;
59 static bool threadScheduled;
60 static bool staticConstructed;
61 static void staticConstructor();
62 static std::vector<WriteFile *> objAddrs;
63 void writeOutput(
bool flush);
66 WriteFile(
const char* filename,
bool overwrite,
bool append);
120 void log(
float value);
124 void log(
const float* array,
int length);
132 void setup(
const char* filename,
bool overwrite =
false,
bool append =
false);
149 static int getNumInstances();
150 static void writeAllHeaders();
151 static void writeAllFooters();
152 static void writeAllOutputs(
bool flush);
153 static void startThread();
154 static void stopThread();
155 static void run(
void*);
void setup(const char *filename, bool overwrite=false, bool append=false)
Definition: WriteFile.cpp:111
void setEchoInterval(int newPeriod)
Definition: WriteFile.cpp:151
void setEcho(bool newEcho)
Definition: WriteFile.cpp:148
float getBufferStatus()
Definition: WriteFile.cpp:275
int getOffset()
Definition: WriteFile.cpp:285
void setFooter(const char *newFooter)
Definition: WriteFile.cpp:362
static char * generateUniqueFilename(const char *original)
Definition: WriteFile.cpp:59
void log(float value)
Definition: WriteFile.cpp:199
void setFileType(WriteFileType newFileType)
Definition: WriteFile.cpp:143
void setBufferSize(unsigned int newSize)
Definition: WriteFile.cpp:159
Definition: WriteFile.h:22
void * AuxiliaryTask
Definition: Bela.h:561
void setFormat(const char *newFormat)
Definition: WriteFile.cpp:222
void setHeader(const char *newHeader)
Definition: WriteFile.cpp:357