Version: 9.15.0
DSC_interface.cxx File Reference
#include <string>
#include "DSC_interface.hxx"
#include <sys/time.h>
#include <fstream>
#include <sys/stat.h>
#include <sstream>
#include <stdlib.h>
#include "utilities.h"
Include dependency graph for DSC_interface.cxx:

Functions

static void initTrace (const std::string &containerName)
 Initialize the trace file. More...
 

Variables

static int traceType =-1
 
static int traceLevel =-1
 
static std::ofstream traceFile
 
static std::ostream * out
 

Function Documentation

◆ initTrace()

static void initTrace ( const std::string &  containerName)
static

Initialize the trace file.

The trace file depends on an environment variable (DSC_TRACE). If this variable is equal to 1, the trace file is a file with the name : <TMPDIR>/<container name>.tce. In all other cases, the trace file is stderr The environment variable DSC_TRACELEVEL can be used to suppress the trace (value 0)

Parameters
containerNamethe name of the container where the trace is built

References SALOME_ContainerPy::containerName, out, traceFile, traceLevel, and traceType.

Referenced by Engines_DSC_interface::writeEvent().

Variable Documentation

◆ out

◆ traceFile

std::ofstream traceFile
static

◆ traceLevel

int traceLevel =-1
static

◆ traceType

int traceType =-1
static