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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

void<br />

void<br />

streambuf ∗<br />

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 />

C.get tgt stream( ) returns the current target stream.<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<br />

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( )<br />

Additional Operations<br />

provides a description for C. After decoding this<br />

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

used for encoding the stream.<br />

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

has actually been used to decode the stream.<br />

bool C.has key( ) returns whether the key list is not empty.<br />

list C.get keys( ) returns the current list of keys.<br />

void<br />

void<br />

void<br />

void<br />

void<br />

C.set key(const CryptKey& key)<br />

C.add key(const CryptKey& key)<br />

sets the key that should be used for decoding.<br />

adds a key to the key list.<br />

C.set keys in stream(streambuf ∗ key stream)<br />

makes the key list equal to the key(s) in key stream.<br />

C.add keys in stream(streambuf ∗ key stream)<br />

adds the key(s) in key stream to the key list.<br />

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

makes the key list equal to the key(s) in the given<br />

file.

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

Saved successfully!

Ooh no, something went wrong!