SoDebug

Langue: en

Autres versions - même langue

Version: 319753 (ubuntu - 07/07/09)

Section: 3 (Bibliothèques de fonctions)

NAME

SoDebug -

SYNOPSIS


#include <SoDebug.h>

Detailed Description

The SoDebug class is a small collection of debugging-related functions.

Static Public Member Functions


static const char * GetEnv (const char *var)

static void RTPrintf (const char *formatstr,...)

static void NamePtr (const char *name, void *ptr)

static const char * PtrName (void *ptr)

static void write (SoNode *node)

static void writeToFile (SoNode *node, const char *filename)

static void writeField (SoField *field)

static void printName (SoBase *base)

Member Function Documentation

const char * SoDebug::GetEnv (const char * var) [static]

This is a portable getenv-wrapper.

See also:

coin_getenv()

void SoDebug::RTPrintf (const char * formatstr, ...) [static]

Real-time printf designed for use when use of standard printf() would cause timing problems.

NOT IMPLEMENTED. Currently it just forwards to printf().

void SoDebug::NamePtr (const char * name, void * ptr) [static]

Associate a name with an arbitrary pointer. You can fetch the name of the pointer later with PtrName().

See also:

PtrName()

const char * SoDebug::PtrName (void * ptr) [static]

Returns the name set on a pointer with NamePtr(). If no name has been set, '<unnamed>' is returned.

See also:

NamePtr()

void SoDebug::write (SoNode * node) [static]

Writes the node to stdout.

References SoAction::apply(), SoNode::getNodeType(), SoBase::ref(), SoOutput::setHeaderString(), SoBase::unrefNoDelete(), and SoNode::VRML2.

void SoDebug::writeToFile (SoNode * node, const char * filename) [static]

Writes the node to the given filename, or /tmp/debug.iv if filename is NULL.

References SoAction::apply(), SoOutput::closeFile(), SoNode::getNodeType(), SoOutput::openFile(), SoBase::ref(), SoOutput::setHeaderString(), SoBase::unrefNoDelete(), and SoNode::VRML2.

void SoDebug::writeField (SoField * field) [static]

Not implemented.

References SoField::getContainer(), SoFieldContainer::getFieldName(), and SoField::write().

void SoDebug::printName (SoBase * base) [static]

Not implemented.

References SoBase::getName(), and SbName::getString().

Author

Generated automatically by Doxygen for Coin from the source code.