Coverage Report

Created: 2026-10-28 06:34

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/libwps/src/lib/WPSStream.cpp
Line
Count
Source
1
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
2
/* libwps
3
 * Version: MPL 2.0 / LGPLv2.1+
4
 *
5
 * This Source Code Form is subject to the terms of the Mozilla Public
6
 * License, v. 2.0. If a copy of the MPL was not distributed with this
7
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8
 *
9
 * Major Contributor(s):
10
 * Copyright (C) 2006, 2007 Andrew Ziem
11
 * Copyright (C) 2003-2005 William Lachance (william.lachance@sympatico.ca)
12
 * Copyright (C) 2003 Marc Maurer (uwog@uwog.net)
13
 *
14
 * For minor contributions see the git repository.
15
 *
16
 * Alternatively, the contents of this file may be used under the terms
17
 * of the GNU Lesser General Public License Version 2.1 or later
18
 * (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
19
 * applicable instead of those above.
20
 */
21
22
#include "WPSStream.h"
23
24
WPSStream::WPSStream(RVNGInputStreamPtr input, libwps::DebugFile &ascii)
25
468k
  : m_input(input)
26
468k
  , m_ascii(ascii)
27
468k
  , m_eof(-1)
28
468k
  , m_asciiFile()
29
468k
{
30
468k
  if (!input || input->seek(0, librevenge::RVNG_SEEK_END)!=0)
31
0
    return;
32
468k
  m_eof=input->tell();
33
468k
  input->seek(0, librevenge::RVNG_SEEK_SET);
34
468k
}
35
36
WPSStream::WPSStream(RVNGInputStreamPtr input)
37
232
  : m_input(input)
38
232
  , m_ascii(m_asciiFile)
39
232
  , m_eof(-1)
40
232
  , m_asciiFile()
41
232
{
42
232
  if (!input || input->seek(0, librevenge::RVNG_SEEK_END)!=0)
43
0
    return;
44
232
  m_eof=input->tell();
45
232
  input->seek(0, librevenge::RVNG_SEEK_SET);
46
232
}
47
48
WPSStream::~WPSStream()
49
469k
{
50
469k
}
51
/* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */