trace.h File Reference

#include <stdio.h>
#include <stdarg.h>
#include <iostream>

Include dependency graph for trace.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Wt

Classes

class  Wt::Trace
class  Wt::Trace::Stream

Defines

#define SEPARATOR   "----------------------------------------------------------------\n"
#define SEPARATOR2   "================================================================\n"
#define SEPARATOR3   "****************************************************************\n"
#define WARNPREFIX   "Warning:[%s:%u]:"
#define ERRORPREFIX   "ERROR:[%s:%u]:"
#define __STDERR_PRINT(PREFIX)
#define Warn   __STDERR_PRINT(WARNPREFIX)
#define Error   __STDERR_PRINT(ERRORPREFIX)
#define enableTrace(RELAY)
#define disableTrace(RELAY)
#define isTrace(RELAY)   0
#define trace   getTrace(__FILE__, __LINE__)

Functions

static int Wt::stderr_print (const char *msg,...)
static void Wt::do_nothing (const char *relay, const char *msg,...)
static Trace & Wt::getTrace (const char *filename, int line)


Define Documentation

#define __STDERR_PRINT ( PREFIX   ) 

Value:

( ! fprintf(stderr, PREFIX, __FILE__, __LINE__) ) ? (0) : \
    Wt::stderr_print

Definition at line 57 of file trace.h.

#define disableTrace ( RELAY   ) 

Definition at line 148 of file trace.h.

#define enableTrace ( RELAY   ) 

Definition at line 147 of file trace.h.

Referenced by Wt::Application::parseArgs().

#define Error   __STDERR_PRINT(ERRORPREFIX)

Definition at line 62 of file trace.h.

Referenced by Wt::Application::Application(), and Wt::SDLSurface::SDLSurface().

#define ERRORPREFIX   "ERROR:[%s:%u]:"

Definition at line 43 of file trace.h.

#define isTrace ( RELAY   )     0

Definition at line 149 of file trace.h.

Referenced by Wt::Layout::setGeometry().

#define SEPARATOR   "----------------------------------------------------------------\n"

Definition at line 35 of file trace.h.

#define SEPARATOR2   "================================================================\n"

Definition at line 37 of file trace.h.

#define SEPARATOR3   "****************************************************************\n"

Definition at line 39 of file trace.h.

#define trace   getTrace(__FILE__, __LINE__)

Definition at line 194 of file trace.h.

Referenced by Wt::GridLayout::addItem(), Wt::Application::Application(), Wt::RootWindow::blit_region(), Wt::RootWindow::blit_region_ex(), Wt::ToggleButton::buttonCancelEvent(), Wt::PushButton::buttonCancelEvent(), Wt::Button::buttonCancelEvent(), Wt::ToggleButton::buttonClickEvent(), Wt::PushButton::buttonClickEvent(), Wt::Button::buttonClickEvent(), Wt::ToggleButton::buttonPressEvent(), Wt::PushButton::buttonPressEvent(), Wt::Button::buttonPressEvent(), Wt::ToggleButton::buttonReleaseEvent(), Wt::PushButton::buttonReleaseEvent(), Wt::Button::buttonReleaseEvent(), Wt::GridLayout::calcEdge(), Wt::SDLMixer::Chunk::Chunk(), Wt::SDLMixer::Chunk::clone(), Wt::clone_chunk(), Wt::Time::currentTime(), Wt::SDLMixer::Chunk::detach(), Wt::Widget::draw(), Wt::Painter::drawTiledPixmap(), Wt::Widget::enterEvent(), Wt::Event::Event(), Wt::Layout::eventFilter(), Wt::Dialog::exec(), Wt::Application::exit(), Wt::NullAudio::Channel::fadeIn(), Wt::NullAudio::Chunk::fadeIn(), Wt::Widget::focusInEvent(), Wt::Button::focusInEvent(), Wt::Widget::focusNextPrevChild(), Wt::Widget::focusOutEvent(), Wt::Button::focusOutEvent(), Wt::Font::Font(), Wt::SDLInput::handleActiveEvent(), Wt::Audio::handleAudioEvent(), Wt::SDLInput::handleMouseEvent(), Wt::GridLayout::insert(), Wt::LayoutItem::invalidateRecursively(), Wt::Widget::keyPressEvent(), Wt::Widget::keyReleaseEvent(), Wt::Widget::leaveEvent(), Wt::SDLMixer::load(), Wt::NullAudio::load(), Wt::Audio::load(), Wt::Widget::mouseDoubleClickEvent(), Wt::Widget::mouseMoveEvent(), Wt::Widget::mousePressEvent(), Wt::Widget::mouseReleaseEvent(), Wt::Widget::move(), Wt::SDLMixer::Music::Music(), Wt::Object::Object(), Wt::PushButton::onButtonStatusChange(), Wt::Audio::onChannelFinish(), Wt::GridLayout::onGridSizeChange(), Wt::Audio::onMusicFinish(), Wt::SDLMixer::Chunk::Deleter::operator()(), Wt::Widget::paintEvent(), Wt::RootWindow::paintEvent(), Wt::Application::parseArgs(), Wt::SDLMixer::Channel::play(), Wt::NullAudio::Channel::play(), Wt::NullAudio::Chunk::play(), Wt::Audio::Channel::play(), Wt::SDLMixer::playMusic(), Wt::NullAudio::playMusic(), Wt::Audio::playMusic(), Wt::Application::postEvent(), Wt::Object::reparent(), Wt::Widget::resize(), Wt::SDLDisplay::resize(), Wt::RootWindow::resize(), Wt::RootWindow::RootWindow(), Wt::SDLSurface::SDLSurface(), Wt::Application::sendPostedEvents(), Wt::PushButton::setButtonSize(), Wt::Widget::setGeometry(), Wt::BoxLayout::setGeometry(), Wt::Layout::setGeometry(), Wt::GridLayout::setGeometry(), Wt::CascadeLayout::setGeometry(), Wt::Box::setStretchFactor(), Wt::timer_callback(), Wt::Widget::update(), Wt::BoxLayout::validate(), Wt::GridLayout::validate(), Wt::CascadeLayout::validate(), Wt::Widget::wheelEvent(), Wt::Application::~Application(), Wt::Audio::~Audio(), Wt::SDLMixer::Chunk::~Chunk(), Wt::Event::~Event(), Wt::Object::~Object(), and Wt::SDLMixer::~SDLMixer().

#define Warn   __STDERR_PRINT(WARNPREFIX)

Definition at line 61 of file trace.h.

Referenced by Wt::Color::createColorFromRGBString(), Wt::Font::Font(), Wt::SDLEvent::handle(), Wt::SDLInput::handleUnusualEvent(), Wt::Painter::rop(), Wt::PushButton::setButtonSize(), and Wt::Widget::updateBackground().

#define WARNPREFIX   "Warning:[%s:%u]:"

Definition at line 42 of file trace.h.


Generated Fri Jul 28 19:24:32 2006.
Copyright © 1998-2003 by the respective authors.

This document is licensed under the terms of the GNU Free Documentation License and may be freely distributed under the conditions given by this license.