class xf::fintech::Trace

#include "xf_fintech_trace.hpp"

Overview

Used to control debug trace output.


Methods

setEnabled

static void setEnabled (bool bEnabled)

Allows the user to toggle the output of debug trace.

Parameters:

bEnabled true to enable trace output, false to disable trace output.

getEnabled

static bool getEnabled (void)

getEnabled true to enable trace output, false to disable trace output.

Returns t

printInfo

static int printInfo (
    const char* fmt,
    ...
    )

Prints a specified INFORMATIONAL string. The output of this will be suppressed if tracing is disabled

printError

static int printError (
    const char* fmt,
    ...
    )

Prints a specified ERROR string. The output from this function will ALWAYS be output even is tracing is disabled.

printCLError

static void printCLError (cl_int cl_error_code)

Prints out a textual string representation of the specified OpenCL error code

optionTypeToString

static char* optionTypeToString (OptionType optionType)

Prints out a textual string representation of the specified OptionType

setConsoleOutputStream

static void setConsoleOutputStream (std::ostream& outputStream)

Sets the primary (i.e. console) output stream to be used. By default this is std::cout

setFileOutputStream

static void setFileOutputStream (std::ofstream& outputStream)

Sets the secondary (i.e. file) output stream stream to be used. By default this is not used