Added reload of levels on F7 (Update levelpack) to ease the test of changes.
[enigmagame.git] / src / LocalToXML.cc
blob42c8a782ceb32cf5c9b3128bd58f2cb4f7d620df
1 /*
2 * Copyright (C) 2005 Ronald Lamprecht
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License along
15 * with this program; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 #include "LocalToXML.hh"
22 XERCES_CPP_NAMESPACE_USE
24 namespace enigma
26 LocalToXML::LocalToXML(const char * const toTranscode) {
27 // Use XML for transcoding -- the returned string is owned by us
28 // but managed by XMLString!
29 xmlString = XMLString::transcode(toTranscode);
32 LocalToXML::LocalToXML(const std::string * const toTranscode) {
33 // Use XML for transcoding -- the returned string is owned by us
34 // but managed by XMLString!
35 xmlString = XMLString::transcode(toTranscode->c_str());
38 LocalToXML::~LocalToXML() {
39 XMLString::release(&xmlString);
42 const XMLCh * LocalToXML::x_str() const {
43 return xmlString;
46 } //namespace enigma