FreeCAD

Форк
0
/
filterinputstreambuf.cpp 
47 строк · 1.3 Кб
1

2
#include "zipios-config.h"
3

4
#include "filterinputstreambuf.h"
5

6
namespace zipios {
7

8
FilterInputStreambuf::FilterInputStreambuf( streambuf *inbuf, bool del_inbuf ) 
9
  : _inbuf( inbuf),
10
    _del_inbuf( del_inbuf )
11
{
12
  _s_pos = 0;
13
  if (!_inbuf) {
14
    // throw an exception
15
  }
16
}
17

18

19
FilterInputStreambuf::~FilterInputStreambuf() {
20
  if (_del_inbuf)
21
    delete _inbuf ;
22
}
23

24

25
} // namespace
26

27
/** \file
28
    Implementation of FilterInputStreambuf.
29
*/
30

31
/*
32
  Zipios++ - a small C++ library that provides easy access to .zip files.
33
  Copyright (C) 2000  Thomas Søndergaard
34
  
35
  This library is free software; you can redistribute it and/or
36
  modify it under the terms of the GNU Lesser General Public
37
  License as published by the Free Software Foundation; either
38
  version 2 of the License, or (at your option) any later version.
39
  
40
  This library is distributed in the hope that it will be useful,
41
  but WITHOUT ANY WARRANTY; without even the implied warranty of
42
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
43
  Lesser General Public License for more details.
44
  
45
  You should have received a copy of the GNU Lesser General Public
46
  License along with this library; if not, write to the Free Software
47
  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
48
*/
49

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.