Panda3D
Public Member Functions | List of all members
LineStreamBuf Class Reference

Used by LineStream to implement an ostream that writes to a memory buffer, whose contents can be continuously extracted as a sequence of lines of text. More...

#include "lineStreamBuf.h"

Inheritance diagram for LineStreamBuf:

Public Member Functions

std::string get_line ()
 Extracts the next line of text from the LineStreamBuf, and sets the has_newline() flag according to whether this line had a trailing newline or not. More...
 
bool has_newline () const
 
bool is_text_available () const
 

Detailed Description

Used by LineStream to implement an ostream that writes to a memory buffer, whose contents can be continuously extracted as a sequence of lines of text.

Definition at line 26 of file lineStreamBuf.h.

Member Function Documentation

◆ get_line()

string LineStreamBuf::get_line ( )

Extracts the next line of text from the LineStreamBuf, and sets the has_newline() flag according to whether this line had a trailing newline or not.

Definition at line 47 of file lineStreamBuf.cxx.

Referenced by LineStream::get_line().


The documentation for this class was generated from the following files: