![]() |
|
PhoenixDebug
1.0.0
Tool to ease debugging
|
Include dependency graph for phoenix_debug.cpp:Go to the source code of this file.
Functions | |
| std::ofstream & | pdump (const PPath &fileName) |
| Function to dump whatever you want in a text file. | |
| PStream & | pdumpBin (const PPath &fileName) |
| Function to dump whatever you want in a binary file. | |
| void | pdumpBinClear () |
| Save the currents files and clear the list on files. | |
| void | pdumpClear () |
| Save the currents files and clear the list on files. | |
Variables | |
| PDebugAssistant | GLOB_DEBUG_ASSISTANT |
| std::ofstream & pdump | ( | const PPath & | fileName | ) |
Function to dump whatever you want in a text file.
| fileName | : name of the texte file we want to write |
Usage : float * tab = new float[2000lu]; ... for(long unsigned int i(0lu); i < 2000lu; ++i){ pdump("dump.txt") << "i = " << i << ", val = " << tab[i] << endl; } ... delete [] tab;
Definition at line 26 of file phoenix_debug.cpp.
References GLOB_DEBUG_ASSISTANT.
| PStream & pdumpBin | ( | const PPath & | fileName | ) |
Function to dump whatever you want in a binary file.
| fileName | : name of the texte file we want to write |
Usage : float * tab = new float[2000lu]; ... for(long unsigned int i(0lu); i < 2000lu; ++i){ pdumpBin("dump.bin") << tab[i]; } ... delete [] tab;
Definition at line 43 of file phoenix_debug.cpp.
References GLOB_DEBUG_ASSISTANT.
| void pdumpBinClear | ( | ) |
Save the currents files and clear the list on files.
Usage : float * tab = new float[2000lu]; ... for(long unsigned int i(0lu); i < 2000lu; ++i){ pdumpBin("dump.bin") << tab[i]; } pdumpBinClear(); //To accelerate the search for the next file to dump for(long unsigned int i(0lu); i < 2000lu; ++i){ pdumpBin("dump2.bin") << tab[i] << endl; } ... delete [] tab;
Definition at line 84 of file phoenix_debug.cpp.
References GLOB_DEBUG_ASSISTANT.
| void pdumpClear | ( | ) |
Save the currents files and clear the list on files.
Usage : float * tab = new float[2000lu]; ... for(long unsigned int i(0lu); i < 2000lu; ++i){ pdump("dump.txt") << "i = " << i << ", val = " << tab[i] << endl; } pdumpClear(); //To accelerate the search for the next file to dump for(long unsigned int i(0lu); i < 2000lu; ++i){ pdump("dump2.txt") << "i = " << i << ", val = " << tab[i] << endl; } ... delete [] tab;
Definition at line 64 of file phoenix_debug.cpp.
References GLOB_DEBUG_ASSISTANT.
| PDebugAssistant GLOB_DEBUG_ASSISTANT |
Definition at line 11 of file phoenix_debug.cpp.
Referenced by pdump(), pdumpBin(), pdumpBinClear(), and pdumpClear().