#include "libs/StreamOutput.h"
-#define PRINTF_DEFAULT_BUFFER_SIZE 32
-
class StreamOutputPool : public StreamOutput {
-private:
- char *printf_default_buffer;
+
public:
StreamOutputPool(){
- printf_default_buffer = new char[PRINTF_DEFAULT_BUFFER_SIZE];
}
int puts(const char* s)
this->streams.erase(stream);
}
+private:
set<StreamOutput*> streams;
};