00001 // -*- Mode: C++ -*- 00002 // GZIPOutputStream.h 00003 // Copyright © 2003 Laboratoire de Biologie Informatique et Théorique 00004 // Université de Montréal. 00005 // Author : Martin Larose 00006 // Created On : Fri Nov 7 13:11:39 2003 00007 // $Revision: 1.1 $ 00008 // 00009 // This file is part of xmlcpg. 00010 // 00011 // xmlcpg is free software; you can redistribute it and/or modify it under 00012 // the terms of the GNU Lesser General Public License as published by the Free 00013 // Software Foundation; either version 2 of the License, or (at your option) 00014 // any later version. 00015 // 00016 // xmlcpg is distributed in the hope that it will be useful, but WITHOUT ANY 00017 // WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 00018 // FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for 00019 // more details. 00020 // 00021 // You should have received a copy of the GNU Lesser General Public License 00022 // along with xmlcpg; if not, write to the Free Software Foundation, Inc., 00023 // 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00024 00025 00026 #ifndef _rnaml_GZIPOutputStream_h_ 00027 #define _rnaml_GZIPOutputStream_h_ 00028 00029 #include "OutputStream.h" 00030 00031 00032 00033 namespace rnaml 00034 { 00035 class FileOutputStream; 00036 00037 00038 00043 class GZIPOutputStream : public OutputStream 00044 { 00045 00046 public: 00047 00048 // LIFECYCLE ------------------------------------------------------------ 00049 00055 GZIPOutputStream (FileOutputStream *os); 00056 00061 GZIPOutputStream (int fd); 00062 00063 // OPERATORS ------------------------------------------------------------ 00064 00065 // ACCESS --------------------------------------------------------------- 00066 00067 // METHODS -------------------------------------------------------------- 00068 00069 // I/O ----------------------------------------------------------------- 00070 00071 }; 00072 } 00073 00074 #endif