XMLStream API fixes

This commit is contained in:
Marian Krivos
2015-08-22 17:36:39 +02:00
parent 11211d345d
commit 9bc8d3c851
28 changed files with 365 additions and 308 deletions

View File

@@ -10,8 +10,8 @@
/// All rights reserved.
///
#include "XMLStreamParserException.h"
#include "XMLStreamParser.h"
#include "Poco/XML/XMLStreamParserException.h"
#include "Poco/XML/XMLStreamParser.h"
using namespace std;
@@ -20,22 +20,26 @@ namespace Poco
namespace XML
{
XMLStreamParserException::~XMLStreamParserException() throw ()
{
}
XMLStreamParserException::XMLStreamParserException(const string& n, Poco::UInt64 l, Poco::UInt64 c, const string& d)
: name_(n), line_(l), column_(c), description_(d)
{
init();
}
XMLStreamParserException::XMLStreamParserException(const XMLStreamParser& p, const std::string& d)
: name_(p.input_name()), line_(p.line()), column_(p.column()), description_(d)
{
init();
}
void XMLStreamParserException::init()
{
std::ostringstream os;
@@ -45,10 +49,12 @@ void XMLStreamParserException::init()
what_ = os.str();
}
char const* XMLStreamParserException::what() const throw ()
{
return what_.c_str();
}
} /* namespace XML */
} /* namespace Poco */