PhoenixDebug
2.0.0
Print/save tools to help debugging C++ programs
Toggle main menu visibility
Loading...
Searching...
No Matches
phoenix_debug.cpp
Go to the documentation of this file.
1
/***************************************
2
Auteur : Pierre Aubert
3
Mail : pierre.aubert@lapp.in2p3.fr
4
Licence : LGPL-3.0-only
5
****************************************/
6
7
#include "
PDebugAssistant.h
"
8
#include "
phoenix_debug.h
"
9
10
#ifndef DISABLE_DEBUG_ASSISTANT
11
PDebugAssistant
GLOB_DEBUG_ASSISTANT
;
12
14
26
std::ofstream &
pdump
(
const
PPath & fileName){
27
return
GLOB_DEBUG_ASSISTANT
.getTxtFile(fileName);
28
}
29
31
43
PStream &
pdumpBin
(
const
PPath & fileName){
44
return
GLOB_DEBUG_ASSISTANT
.getBinFile(fileName);
45
}
46
47
#endif
48
49
51
64
void
pdumpClear
(){
65
#ifndef DISABLE_DEBUG_ASSISTANT
66
GLOB_DEBUG_ASSISTANT
.clearTxt();
67
#endif
68
}
69
71
84
void
pdumpBinClear
(){
85
#ifndef DISABLE_DEBUG_ASSISTANT
86
GLOB_DEBUG_ASSISTANT
.clearBin();
87
#endif
88
}
89
90
91
PDebugAssistant.h
PDebugAssistant
Class able to treat Map of ofstream.
Definition
PDebugAssistant.h:24
GLOB_DEBUG_ASSISTANT
PDebugAssistant GLOB_DEBUG_ASSISTANT
Definition
phoenix_debug.cpp:11
pdumpBin
PStream & pdumpBin(const PPath &fileName)
Function to dump whatever you want in a binary file.
Definition
phoenix_debug.cpp:43
pdumpClear
void pdumpClear()
Save the currents files and clear the list on files.
Definition
phoenix_debug.cpp:64
pdump
std::ofstream & pdump(const PPath &fileName)
Function to dump whatever you want in a text file.
Definition
phoenix_debug.cpp:26
pdumpBinClear
void pdumpBinClear()
Save the currents files and clear the list on files.
Definition
phoenix_debug.cpp:84
phoenix_debug.h
src
phoenix_debug.cpp
Generated by
1.17.0