Boost logo

Boost Users :

From: frederic.bron_at_[hidden]
Date: 2008-01-08 06:40:18


I want to write a filter but this filter needs to do some things when the stream is ending.
Is it enough to do the following? I want the close function to be called at the end of the stream.
Do I need to category_flag to inherit from (closable_tag)?

class my_filter : public io::dual_use_filter {
        public:
                template<typename Source> int get(Source&) ;
                template<typename Sink> bool put(Sink&, int) ;
                template<typename Device> void close(Device&, std::ios_base::openmode) ;
} ;

Fred

Avis :
Ce message et toute pièce jointe sont la propriété d'Alcan et sont destinés seulement aux personnes ou à l'entité à qui le message est adressé. Si vous avez reçu ce message par erreur, veuillez le
détruire et en aviser l'expéditeur par courriel. Si vous n'êtes pas le destinataire du message, vous n'êtes pas autorisé à utiliser, à copier ou à divulguer le contenu du message ou ses pièces jointes
en tout ou en partie.

Notice:
This message and any attachments are the property of Alcan and are intended solely for the named recipients or entity to whom this message is addressed. If you have received this message in error
please inform the sender via e-mail and destroy the message. If you are not the intended recipient you are not allowed to use, copy or disclose the contents or attachments in whole or in part.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net