~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/linebuffer.h

  • Committer: Robert Klahn
  • Date: 2009-07-20 00:15:20 UTC
  • mto: (1093.1.23 captain)
  • mto: This revision was merged to the branch mainline in revision 1099.
  • Revision ID: rklahn@quad-20090720001520-n4ry8q2hffvl3ifh
changes from code review feedback

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
#ifndef CLIENT_LINEBUFFER_H
17
17
#define CLIENT_LINEBUFFER_H
18
18
 
 
19
#include <vector>
 
20
 
19
21
class LineBuffer
20
22
{
21
23
public:
22
24
  LineBuffer(uint32_t max_size,FILE *file);
23
 
  ~LineBuffer();
24
25
 
25
 
  void add_string(const char *argument);
 
26
  void addString(const std::string &argument);
26
27
  char *readline();
27
28
private:
28
29
  FILE *file;
29
30
  std::stringstream buffer;
30
 
  char *line;
 
31
  std::vector<char> line;
31
32
  uint32_t max_size;
32
 
  uint32_t eof;
 
33
  bool eof;
33
34
};
34
35
 
35
36
#endif /* CLIENT_LINEBUFFER_H */