Title: Message
I found the answer to my own problem in the Crypto++ user guide, Redirectors.
The following code does what I want in a better fashion:
 
 
// ---- Concatenate document pages ---- //
StringSink oDocSink(strDocument);
for(pIter = cDocument.begin(); pIter != cDocument.end(); pIter++)
{
    // ---- Direct file output to strDocument ---- //
    FileSource(pIter->c_str(), true, new Redirector(oDocSink, false));
}
oDocSink.MessageEnd();
 
 
Where cDocument is a list of of string objects.
 
 
Thanks,
 
Chris
 

Reply via email to