~ubuntu-branches/ubuntu/maverick/freecad/maverick

« back to all changes in this revision

Viewing changes to src/Base/zipios/filteroutputstreambuf.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Adam C. Powell, IV
  • Date: 2010-01-11 08:48:33 UTC
  • mfrom: (3.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20100111084833-4g9vgdqbkw8u34zb
Tags: 0.9.2646.5-1
* New upstream version (closes: #561696).
* Added swig to Build-Depends (closes: #563523, #563772).
* Removed python-opencv from Build-Depends and Recommends (closes: #560768).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
#include "zipios-config.h"
3
 
 
4
 
#include "filteroutputstreambuf.h"
5
 
 
6
 
namespace zipios {
7
 
 
8
 
FilterOutputStreambuf::FilterOutputStreambuf( streambuf *outbuf, bool del_outbuf ) 
9
 
  : _outbuf( outbuf),
10
 
    _del_outbuf( del_outbuf )
11
 
{
12
 
  if ( _outbuf == NULL ) {
13
 
    // throw an exception
14
 
  }
15
 
}
16
 
 
17
 
 
18
 
FilterOutputStreambuf::~FilterOutputStreambuf() {
19
 
  if ( _del_outbuf )
20
 
    delete _outbuf ;
21
 
}
22
 
 
23
 
 
24
 
} // namespace
25
 
 
26
 
/** \file
27
 
    Implementation of FilterOutputStreambuf.
28
 
*/
29
 
 
30
 
/*
31
 
  Zipios++ - a small C++ library that provides easy access to .zip files.
32
 
  Copyright (C) 2000  Thomas S�ndergaard
33
 
  
34
 
  This library is free software; you can redistribute it and/or
35
 
  modify it under the terms of the GNU Lesser General Public
36
 
  License as published by the Free Software Foundation; either
37
 
  version 2 of the License, or (at your option) any later version.
38
 
  
39
 
  This library is distributed in the hope that it will be useful,
40
 
  but WITHOUT ANY WARRANTY; without even the implied warranty of
41
 
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
42
 
  Lesser General Public License for more details.
43
 
  
44
 
  You should have received a copy of the GNU Lesser General Public
45
 
  License along with this library; if not, write to the Free Software
46
 
  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
47
 
*/