/*
* Inkscape::Debug::Logger - debug logging facility
*
* Authors:
* MenTaLguY <mental@rydia.net>
*
* Copyright (C) 2005 MenTaLguY
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include <fstream>
#include <vector>
#include <glib.h>
#include "inkscape-version.h"
#include "debug/simple-event.h"
#include "inkgc/gc-alloc.h"
namespace Inkscape {
namespace Debug {
namespace {
switch (*current) {
case '&':
os << "&";
break;
case '"':
os << """;
break;
case '\'':
os << "'";
break;
case '<':
os << "<";
break;
case '>':
os << ">";
break;
default:
}
}
}
for ( unsigned i = 0 ; i < depth ; i++ ) {
}
}
static bool empty_tag=false;
typedef std::vector<Util::ptr_shared<char>, GC::Alloc<Util::ptr_shared<char>, GC::MANUAL> > TagStack;
return stack;
}
static void do_shutdown() {
}
{
}
if (!filter) {
for ( unsigned i = 0 ; i < Event::N_CATEGORIES ; i++ ) {
mask[i] = true;
}
return;
} else {
for ( unsigned i = 0 ; i < Event::N_CATEGORIES ; i++ ) {
mask[i] = false;
}
}
char const *start;
char const *end;
while (*end) {
struct CategoryName {
char const *name;
};
};
break;
}
}
}
}
if (*end) {
}
}
}
public:
}
};
}
if (!_enabled) {
if (log_filename) {
if (log_stream.is_open()) {
log_stream << "<?xml version=\"1.0\"?>\n";
log_stream.flush();
_enabled = true;
start<SessionEvent>();
}
}
}
}
if (empty_tag) {
log_stream << ">\n";
}
for ( unsigned i = 0 ; i < property_count ; i++ ) {
log_stream << "\"";
}
log_stream.flush();
empty_tag = true;
}
}
if (empty_tag) {
log_stream << "/>\n";
} else {
}
log_stream.flush();
empty_tag = false;
}
}
if (_enabled) {
finish();
}
}
}
}
}
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :