31.01.2014 Views

Version 5.0 The LEDA User Manual

Version 5.0 The LEDA User Manual

Version 5.0 The LEDA User Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

void<br />

void<br />

C.set src stream(streambuf ∗ src stream, bool own stream = false)<br />

sets the source stream (cf. constructor).<br />

C.set src file(const char ∗ file name)<br />

sets a file as source stream.<br />

streambuf ∗ C.get tgt stream( ) returns the current target stream.<br />

void<br />

void<br />

C.set tgt stream(streambuf ∗ tgt stream, bool own Stream = false)<br />

sets the target stream (cf. constructor).<br />

C.set tgt file(const char ∗ file name)<br />

sets a file as target stream.<br />

void C.reset( ) puts C in exactly the same state as the default constructor.<br />

bool C.failed( ) returns true if an error occured.<br />

bool C.finished( ) returns true if decoding is finished.<br />

string C.get description( ) provides a description for C. After decoding this includes<br />

a description of the coder that has been used<br />

for encoding the stream.<br />

Additional Operations<br />

coder base∗ C.get coder( ) after decoding this function returns the coder that<br />

has actually been used to decode the stream. E.g., if<br />

the original source stream has been encoded with an<br />

instance of type A0Coder then the function returns<br />

an instance of A0Coder.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!