mirror of
https://github.com/ksherlock/profuse.git
synced 2024-12-22 20:29:59 +00:00
f07a6ecd8b
git-svn-id: https://profuse.googlecode.com/svn/branches/v2@304 aa027e90-d47c-11dd-86d7-074df07e0730
37 lines
587 B
C++
37 lines
587 B
C++
|
|
#ifndef __PASCAL_TEXTWRITER_H__
|
|
#define __PASCAL_TEXTWRITER_H__
|
|
|
|
#include <vector>
|
|
#include <stdint.h>
|
|
|
|
namespace Pascal {
|
|
|
|
|
|
class TextWriter {
|
|
|
|
public:
|
|
|
|
TextWriter();
|
|
~TextWriter();
|
|
|
|
unsigned blocks() const;
|
|
|
|
void *data(unsigned block) const;
|
|
|
|
void writeLine(const char *);
|
|
void writeLine(const char *, unsigned length);
|
|
|
|
private:
|
|
|
|
std::vector<uint8_t *> _blocks;
|
|
unsigned _offset;
|
|
|
|
uint8_t *_current;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
#endif |