Panda3D
Loading...
Searching...
No Matches
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.
 
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.

Constructor & Destructor Documentation

◆ LineStreamBuf()

LineStreamBuf::LineStreamBuf ( )

Definition at line 21 of file lineStreamBuf.cxx.

◆ ~LineStreamBuf()

LineStreamBuf::~LineStreamBuf ( )
virtual

Definition at line 36 of file lineStreamBuf.cxx.

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 46 of file lineStreamBuf.cxx.

Referenced by LineStream::get_line().

◆ has_newline()

bool LineStreamBuf::has_newline ( ) const
inline

Definition at line 25 of file lineStreamBuf.I.

◆ is_text_available()

bool LineStreamBuf::is_text_available ( ) const
inline

Definition at line 17 of file lineStreamBuf.I.


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