projects
/
anna.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove dynamic exceptions
[anna.git]
/
source
/
xml
/
Parser.cpp
diff --git
a/source/xml/Parser.cpp
b/source/xml/Parser.cpp
index
6eed989
..
b2d1e51
100644
(file)
--- a/
source/xml/Parser.cpp
+++ b/
source/xml/Parser.cpp
@@
-47,7
+47,7
@@
Parser::~Parser() {
}
const Node* Parser::apply(const Document& document)
}
const Node* Parser::apply(const Document& document)
-
throw(RuntimeException
) {
+
noexcept(false
) {
LOGMETHOD(TraceMethod tf("anna::xml::Parser", "apply(Document)", ANNA_FILE_LOCATION));
Guard guard(*this);
reset();
LOGMETHOD(TraceMethod tf("anna::xml::Parser", "apply(Document)", ANNA_FILE_LOCATION));
Guard guard(*this);
reset();
@@
-56,7
+56,7
@@
throw(RuntimeException) {
}
const Node* Parser::apply(const Document& document, const DTD& dtd)
}
const Node* Parser::apply(const Document& document, const DTD& dtd)
-
throw(RuntimeException
) {
+
noexcept(false
) {
LOGMETHOD(TraceMethod tf("anna::xml::Parser", "apply(Document,DTD)", ANNA_FILE_LOCATION));
Guard guard(*this);
reset();
LOGMETHOD(TraceMethod tf("anna::xml::Parser", "apply(Document,DTD)", ANNA_FILE_LOCATION));
Guard guard(*this);
reset();
@@
-66,7
+66,7
@@
throw(RuntimeException) {
}
void Parser::apply(_xmlDoc* document)
}
void Parser::apply(_xmlDoc* document)
-
throw(RuntimeException
) {
+
noexcept(false
) {
LOGMETHOD(TraceMethod tf("anna::xml::Parser", "apply (_xmlDoc)", ANNA_FILE_LOCATION));
xmlNode* root;
LOGMETHOD(TraceMethod tf("anna::xml::Parser", "apply (_xmlDoc)", ANNA_FILE_LOCATION));
xmlNode* root;
@@
-91,7
+91,7
@@
throw(RuntimeException) {
}
void Parser::children(Node* node, xmlNode* xmlNode)
}
void Parser::children(Node* node, xmlNode* xmlNode)
-
throw(RuntimeException
) {
+
noexcept(false
) {
Node* child;
bool isSeparator;
const char* w;
Node* child;
bool isSeparator;
const char* w;
@@
-133,7
+133,7
@@
throw(RuntimeException) {
}
void Parser::attributes(Node* node, xmlAttr* attribute)
}
void Parser::attributes(Node* node, xmlAttr* attribute)
-
throw(RuntimeException
) {
+
noexcept(false
) {
const char* value;
const Namespace* ns = NULL;
const char* value;
const Namespace* ns = NULL;
@@
-147,7
+147,7
@@
throw(RuntimeException) {
/* static */
void Parser::errorHandler(void *ctx, const char *msg, ...)
/* static */
void Parser::errorHandler(void *ctx, const char *msg, ...)
-
throw()
{
+{
va_list ap;
va_start(ap, msg);
vsprintf(st_text, msg, ap);
va_list ap;
va_start(ap, msg);
vsprintf(st_text, msg, ap);
@@
-162,7
+162,7
@@
throw() {
/* static */
void Parser::warningHandler(void *ctx, const char *msg, ...)
/* static */
void Parser::warningHandler(void *ctx, const char *msg, ...)
-
throw()
{
+{
va_list ap;
if(Logger::isActive(Logger::Warning)) {
va_list ap;
if(Logger::isActive(Logger::Warning)) {
@@
-180,13
+180,13
@@
throw() {
// La metodo que invoque a este debe hacerlo con una secci�n cr�tica activa.
void Parser::reset()
// La metodo que invoque a este debe hacerlo con una secci�n cr�tica activa.
void Parser::reset()
-
throw()
{
+{
if(a_root != NULL)
a_root->clear();
}
void Parser::setupEncoding(_xmlDoc* document)
if(a_root != NULL)
a_root->clear();
}
void Parser::setupEncoding(_xmlDoc* document)
-
throw()
{
+{
if(document->encoding != NULL) {
a_encoding = true;
if(document->encoding != NULL) {
a_encoding = true;
@@
-205,7
+205,7
@@
throw() {
}
const char* Parser::decode(const unsigned char* source)
}
const char* Parser::decode(const unsigned char* source)
-
throw()
{
+{
if(a_encoding == false)
return (const char*) source;
if(a_encoding == false)
return (const char*) source;