Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Compress.hpp

Go to the documentation of this file.
00001 /*==========================================================================
00002  * Copyright (c) 2001 Carnegie Mellon University.  All Rights Reserved.
00003  *
00004  * Use of the Lemur Toolkit for Language Modeling and Information Retrieval
00005  * is subject to the terms of the software license set forth in the LICENSE
00006  * file included with this software, and also available at
00007  * http://www.cs.cmu.edu/~lemur/license.html
00008  *
00009  *==========================================================================
00010 */
00011 
00012 
00013 #ifndef _COMPRESSH_
00014 #define _COMPRESSH_
00015 
00017 
00034 //----------------------------------------------------------
00035 //  J. Lafferty, 10/29/00
00036 //
00037 //---------------------------------------------------------------
00038 
00039 #include "common_headers.hpp"
00040 
00041 class Compress {
00042 public:
00043   virtual void compress (ostream &os, int n, int * arr)=0;
00044   virtual int decompress (istream &is, int * arr)=0;
00045   
00046   // Read into bit array, do not decompress
00047   virtual int read(istream &is)=0;
00048   virtual const char * type ()=0;
00049 };
00050 
00051 #endif
00052 
00053 
00054   
00055 

Generated at Fri Jul 26 18:22:26 2002 for LEMUR by doxygen1.2.4 written by Dimitri van Heesch, © 1997-2000