1 // ANNA - Anna is Not Nothingness Anymore //
3 // (c) Copyright 2005-2015 Eduardo Ramos Testillano & Francisco Ruiz Rayo //
5 // See project site at http://redmine.teslayout.com/projects/anna-suite //
6 // See accompanying file LICENSE or copy at http://www.teslayout.com/projects/public/anna.LICENSE //
11 #include <anna/xml/Decompressor.hpp>
12 #include <anna/xml/DocumentMemory.hpp>
17 xml::Decompressor::Decompressor() {
18 a_document = new xml::DocumentMemory;
22 xml::Decompressor::~Decompressor() {
26 const xml::Document& xml::Decompressor::apply(const DataBlock& zdata)
27 throw(RuntimeException) {
28 const DataBlock& contain = ZBlock::uncompress(zdata);
29 a_document->initialize(contain);