Look at FileSink and see what it derives from. Actually you might want to make a copy of FileSink and modify it to write to a CFile instead of starting from scratch.
-------------------------------------------------- From: "Giuliano Bertoletti" <[EMAIL PROTECTED]> Sent: Monday, September 24, 2007 6:50 AM To: <[EMAIL PROTECTED]> Subject: Finding the proper class to derive from > > > Hello, > > I have an MFC application which serializes data to disk through a > proprietary object (i.e. CFile for those accustomed with MFC). > Now I wish to implement encryption / compression on the fly over the > stream, so my idea was to chain Crypto++ filters. > > To accomplish this I need to create an object which can be chained to the > compression and encryption filters and which can manipilate my CFile > object. So my idea is to override the Put, MessageEnd, etc... members and > let my code properly call the CFile methods. > In other words something similar to a FileSink with its standard interface > but custom implementation. > > My question is: from which class should I derive my object from ? > > Regards, > > > Giuliano Bertoletti. > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the "Crypto++ Users" Google Group. To unsubscribe, send an email to [EMAIL PROTECTED] More information about Crypto++ and this group is available at http://www.cryptopp.com. -~----------~----~----~----~------~----~------~--~---
