16 #ifndef LIB_LINE_BUFFER_H_ 
   17 #define LIB_LINE_BUFFER_H_ 
   29                 void append(
const char* line, 
size_t size);
 
   43 #endif  // LIB_LINE_BUFFER_H_ 
std::string get_next_line()
Return and remove first line in buffer, possibly "". 
 
const char * c_str()
Peek the complete buffer contents. 
 
After appending, data can be retrieved as lines. 
 
void append(const char *line, size_t size)
Insert data in buffer. 
 
bool has_lines()
Check if get_next_line() returns a non-empty string.