14#ifndef LINESTREAMBUF_H
15#define LINESTREAMBUF_H
26class EXPCL_DTOOL_DTOOLUTIL LineStreamBuf :
public std::streambuf {
29 virtual ~LineStreamBuf();
31 INLINE
bool is_text_available()
const;
33 INLINE
bool has_newline()
const;
36 virtual int overflow(
int c);
40 INLINE
void write_chars(
const char *start,
size_t length);
std::string get_line()
Extracts the next line of text from the LineStreamBuf, and sets the has_newline() flag according to w...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.