diff options
author | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2012-11-14 17:35:43 +0100 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2012-11-14 17:35:43 +0100 |
commit | 3058c1187aa3cef29587367292ce7a907dd90231 (patch) | |
tree | 51afc6523ba335e57242e3bb60d4f29c55d04499 /src/lib/VSD5Parser.cpp | |
parent | bd9fc06ce40c3cd0424489dc38b8ab1b5cb271ea (diff) |
Some more chunk work, but slow
Diffstat (limited to 'src/lib/VSD5Parser.cpp')
-rw-r--r-- | src/lib/VSD5Parser.cpp | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/src/lib/VSD5Parser.cpp b/src/lib/VSD5Parser.cpp index 3c610ff..4b60754 100644 --- a/src/lib/VSD5Parser.cpp +++ b/src/lib/VSD5Parser.cpp @@ -32,6 +32,7 @@ #include <locale.h> #include <sstream> #include <string> +#include <stack> #include "libvisio_utils.h" #include "VSD5Parser.h" #include "VSDInternalStream.h" @@ -113,22 +114,4 @@ bool libvisio::VSD5Parser::getChunkHeader(WPXInputStream *input) return true; } -void libvisio::VSD5Parser::handleChunks(WPXInputStream *input, unsigned level) -{ - long endPos = 0; - - while (!input->atEOS()) - { - getChunkHeader(input); - m_header.level += level; - endPos = m_header.dataLength+m_header.trailer+input->tell(); - - _handleLevelChange(m_header.level); - VSD_DEBUG_MSG(("VSD5Parser::handleChunks - parsing chunk type 0x%x\n", m_header.chunkType)); - handleChunk(input); - input->seek(endPos, WPX_SEEK_SET); - } -} - - /* vim:set shiftwidth=2 softtabstop=2 expandtab: */ |