# LineStream

from pandac.PandaModules import LineStream

Class : LineStream
Description : This is a special ostream that writes to a memory buffer, like ostrstream. However, its contents can be continuously extracted as a sequence of lines of text.
Unlike ostrstream, which can only be extracted from once (and then the buffer freezes and it can no longer be written to), the LineStream is not otherwise affected when a line of text is extracted. More text can still be written to it and continuously extracted.

## Inheritance:

LineStream: ostream
ostream: ios
ios: ios_base
ios_base:

## Methods of LineStream:

LineStream (Constructor)
getLine
hasNewline
isTextAvailable

## Methods of ostream:

flush
put
seekp
tellp

## Methods of ios:

bad
clear
eof
fail
good

## Constants in ios_base:

beg | (seekdir)
cur | (seekdir)
end | (seekdir)

LineStream LineStream::LineStream(void); Description:

getLine string LineStream::get_line(void); Description: Extracts and returns the next line (or partial line) of text available in the LineStream object. Once the line has been extracted, you may call has_newline() to determine whether or not there was an explicit newline character written following this line.

hasNewline bool LineStream::has_newline(void) const; Description: Returns true if the line of text most recently returned by get_line() was written out with a terminating newline, or false if a newline character has not yet been written to the LineStream.

isTextAvailable bool LineStream::is_text_available(void) const; Description: Returns true if there is at least one line of text (or even a partial line) available in the LineStream object. If this returns true, the line may then be retrieved via get_line().

flush void ostream::flush(void); Undocumented function.

put void ostream::put(char c); Undocumented function.

seekp void ostream::seekp(unsigned long int pos); Undocumented function.

tellp unsigned long int ostream::tellp(void); Undocumented function.

bad bool ios::bad(void) const; Undocumented function.

clear void ios::clear(void); Undocumented function.

eof bool ios::eof(void) const; Undocumented function.

fail bool ios::fail(void) const; Undocumented function.

good bool ios::good(void) const; Undocumented function.