Classes | Namespaces | Macros
DebugTrace.hpp File Reference
#include <atomic>
#include <sstream>
#include <iomanip>
#include "gnsstk_export.h"
Include dependency graph for DebugTrace.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  gnsstk::DebugTrace
 

Namespaces

 gnsstk
 For Sinex::InputHistory.
 

Macros

#define DEBUGTRACE(EXPR)
 
#define DEBUGTRACE_DISABLE()
 
#define DEBUGTRACE_ENABLE()
 
#define DEBUGTRACE_FUNCTION()   gnsstk::DebugTrace gnsstkTraceObject(__PRETTY_FUNCTION__)
 

Macro Definition Documentation

◆ DEBUGTRACE

#define DEBUGTRACE (   EXPR)
Value:
{ \
std::ostringstream os; \
os << "* " << std::fixed << std::setprecision(15) \
<< EXPR << std::endl; \
}

Definition at line 119 of file DebugTrace.hpp.

◆ DEBUGTRACE_DISABLE

#define DEBUGTRACE_DISABLE ( )
Value:

Definition at line 113 of file DebugTrace.hpp.

◆ DEBUGTRACE_ENABLE

#define DEBUGTRACE_ENABLE ( )
Value:
{ \
std::cerr << "WARNING: Tracing is enabled, expect slow performance" \
<< std::endl; \
}

Definition at line 107 of file DebugTrace.hpp.

◆ DEBUGTRACE_FUNCTION

#define DEBUGTRACE_FUNCTION ( )    gnsstk::DebugTrace gnsstkTraceObject(__PRETTY_FUNCTION__)

Definition at line 117 of file DebugTrace.hpp.

gnsstk::DebugTrace::trace
static void trace(const std::string &s)
If enabled is true, print s to stderr.
Definition: DebugTrace.cpp:68
gnsstk::DebugTrace::enabled
static GNSSTK_EXPORT std::atomic< bool > enabled
If true, debugging/trace output will be printed to stderr.
Definition: DebugTrace.hpp:86


gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:42