Mercurial > hg > beaglert
comparison include/WriteFile.h @ 159:1e7db6610600
Increased buffer size, improves performances (but increases memory usage) for binary mode
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Sun, 18 Oct 2015 01:13:40 +0100 |
parents | f36313cbb55d |
children | e4392164b458 |
comparison
equal
deleted
inserted
replaced
158:45fc760622c9 | 159:1e7db6610600 |
---|---|
57 static bool threadIsExiting; | 57 static bool threadIsExiting; |
58 static bool threadRunning; | 58 static bool threadRunning; |
59 static bool staticConstructed; | 59 static bool staticConstructed; |
60 static void staticConstructor(); | 60 static void staticConstructor(); |
61 static std::vector<WriteFile *> objAddrs; | 61 static std::vector<WriteFile *> objAddrs; |
62 void writeOutput(bool writeAll); | 62 void writeOutput(bool flush); |
63 public: | 63 public: |
64 WriteFile(); | 64 WriteFile(); |
65 /** | 65 /** |
66 * Set the type of file to write, can be either kText or kBinary. | 66 * Set the type of file to write, can be either kText or kBinary. |
67 * Binary files can be imported e.g. in Matlab: | 67 * Binary files can be imported e.g. in Matlab: |
109 float getBufferStatus(); | 109 float getBufferStatus(); |
110 ~WriteFile(); | 110 ~WriteFile(); |
111 static int getNumInstances(); | 111 static int getNumInstances(); |
112 static void writeAllHeaders(); | 112 static void writeAllHeaders(); |
113 static void writeAllFooters(); | 113 static void writeAllFooters(); |
114 static void writeAllOutputs(); | 114 static void writeAllOutputs(bool flush); |
115 static void startThread(); | 115 static void startThread(); |
116 static void stopThread(); | 116 static void stopThread(); |
117 static void run(); | 117 static void run(); |
118 }; | 118 }; |
119 | 119 |