Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

psTrace.h File Reference


Detailed Description

basic run-time trace facilities

This file will hold the prototypes for defining procedures to insert trace messages into the code.

Author:
Robert Lupton, Princeton University

GLG, MHPCC

Version:
Revision
1.43
Name
rel12
Date:
Date
2006/06/15 00:22:54
Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii

Definition in file psTrace.h.

#include <stdarg.h>

Include dependency graph for psTrace.h:

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

Go to the source code of this file.

Data Structures

struct  p_psComponent
 Basic structure for the component tree. More...

Defines

#define PS_TRACE_H   1
#define PS_UNKNOWN_TRACE_LEVEL   -9999
#define PS_DEFAULT_TRACE_LEVEL   -1
#define PS_THE_OTHER_DEFAULT_TRACE_LEVEL   0
#define PS_TRACE_ON   1
 Functions.

Typedefs

typedef p_psComponent p_psComponent
 Basic structure for the component tree.

Enumerations

enum  { PS_TRACE_TO_NONE = 0, PS_TRACE_TO_STDOUT = 1, PS_TRACE_TO_STDERR = 2 }

Functions

bool psTraceSetFormat (const char *format)
 This procedure sets the trace format for future trace messages.
void psTrace (const char *facil, int level, const char *format,...)
 Sends a trace message.
int psTraceSetLevel (const char *facil, int level)
 Set trace level.
int psTraceGetLevel (const char *facil)
 Get the trace level.
void psTraceReset ()
 Set all trace levels to zero (do not free nodes in the component tree).
void psTracePrintLevels (void)
 print trace levels
bool psTraceSetDestination (int fd)
 Set the destination of future trace messages.
int psTraceGetDestination (void)
 Get the current destination for trace messages.


Define Documentation

#define PS_DEFAULT_TRACE_LEVEL   -1
 

Definition at line 21 of file psTrace.h.

#define PS_THE_OTHER_DEFAULT_TRACE_LEVEL   0
 

Definition at line 22 of file psTrace.h.

#define PS_TRACE_H   1
 

Definition at line 17 of file psTrace.h.

#define PS_UNKNOWN_TRACE_LEVEL   -9999
 

Definition at line 20 of file psTrace.h.


Generated on Mon Jul 3 14:14:57 2006 for Pan-STARRS Foundation Library by  doxygen 1.4.4