PhoenixDebug  1.0.0
Tool to ease debugging
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 : CeCILL-C
5****************************************/
6
7#include "PDebugAssistant.h"
8#include "phoenix_debug.h"
9
10#ifndef DISABLE_DEBUG_ASSISTANT
12
14
26std::ofstream & pdump(const PPath & fileName){
27 return GLOB_DEBUG_ASSISTANT.getTxtFile(fileName);
28}
29
31
43PStream & pdumpBin(const PPath & fileName){
44 return GLOB_DEBUG_ASSISTANT.getBinFile(fileName);
45}
46
47#endif
48
49
51
65#ifndef DISABLE_DEBUG_ASSISTANT
66 GLOB_DEBUG_ASSISTANT.clearTxt();
67#endif
68}
69
71
85#ifndef DISABLE_DEBUG_ASSISTANT
86 GLOB_DEBUG_ASSISTANT.clearBin();
87#endif
88}
89
90
91
Class able to treat Map of ofstream.
PDebugAssistant GLOB_DEBUG_ASSISTANT
PStream & pdumpBin(const PPath &fileName)
Function to dump whatever you want in a binary file.
void pdumpClear()
Save the currents files and clear the list on files.
std::ofstream & pdump(const PPath &fileName)
Function to dump whatever you want in a text file.
void pdumpBinClear()
Save the currents files and clear the list on files.