#include <ZipOutputStreamBuffer.h>
Definition at line 19 of file ZipOutputStreamBuffer.h.
 
      
        
          | cheprep::ZipOutputStreamBuffer::ZipOutputStreamBuffer  | 
          ( | 
          std::streambuf *  | 
          buffer | ) | 
           | 
        
      
 
Definition at line 17 of file ZipOutputStreamBuffer.cc.
   24         entries = 
new std::vector<ZipEntry*>();
 
DeflateOutputStreamBuffer(std::streambuf *buffer)
 
 
 
 
  
  
      
        
          | cheprep::ZipOutputStreamBuffer::~ZipOutputStreamBuffer  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
virtual   | 
  
 
 
      
        
          | void cheprep::ZipOutputStreamBuffer::close  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 49 of file ZipOutputStreamBuffer.cc.
   53         long dirStart = 
pos();
 
   54         for (std::vector<ZipEntry*>::iterator i=entries->begin(); i != entries->end(); i++) {
 
   58             putUS(VERSIONEXTRACT);                
 
   80         long dirSize = (long)
pos() - dirStart;
 
   84         putUS(entries->size());               
 
   85         putUS(entries->size());               
 
   88         putUS(comment.length());              
 
void putUI(unsigned int ui)
 
void putS(const std::string s)
 
void putUS(unsigned short us)
 
 
 
 
      
        
          | void cheprep::ZipOutputStreamBuffer::closeEntry  | 
          ( | 
           | ) | 
           | 
        
      
 
 
      
        
          | int cheprep::ZipOutputStreamBuffer::overflow  | 
          ( | 
          int  | 
          c | ) | 
           | 
        
      
 
 
      
        
          | void cheprep::ZipOutputStreamBuffer::putNextEntry  | 
          ( | 
          const std::string &  | 
          name,  | 
        
        
           | 
           | 
          bool  | 
          compress  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Definition at line 96 of file ZipOutputStreamBuffer.cc.
  101 #ifdef CHEPREP_NO_ZLIB 
  106         entry = 
new ZipEntry();
 
  107         entries->push_back(entry);
 
  114         struct tm *utc = gmtime( <ime );
 
  115         entry->
date = (utc->tm_year - 80) << 9 | (utc->tm_mon + 1) << 5 | utc->tm_mday;
 
  116         entry->
time = utc->tm_hour << 11 | utc->tm_min << 5 | utc->tm_sec >> 1;
 
  120         putUS(VERSIONEXTRACT);                
 
void putUI(unsigned int ui)
 
void putS(const std::string s)
 
int ZEXPORT compress(Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen)
 
void putUS(unsigned short us)
 
 
 
 
      
        
          | void cheprep::ZipOutputStreamBuffer::setComment  | 
          ( | 
          const std::string &  | 
          comment | ) | 
           | 
        
      
 
 
      
        
          | void cheprep::ZipOutputStreamBuffer::setMethod  | 
          ( | 
          int  | 
          method | ) | 
           | 
        
      
 
 
The documentation for this class was generated from the following files: