diff options
author | Berk Geveci <berk.geveci@kitware.com> | 2001-12-04 16:16:04 (GMT) |
---|---|---|
committer | Berk Geveci <berk.geveci@kitware.com> | 2001-12-04 16:16:04 (GMT) |
commit | d42ded5b166b37d29c9837c5f3e0bceaa661c5ba (patch) | |
tree | 4eaec928dec9f555fca4067f3d85ddac8f5ba4ce /Source/CursesDialog/cmCursesForm.cxx | |
parent | cb4f04c94e5815393e9b1d765588c23656149b4e (diff) | |
download | CMake-d42ded5b166b37d29c9837c5f3e0bceaa661c5ba.zip CMake-d42ded5b166b37d29c9837c5f3e0bceaa661c5ba.tar.gz CMake-d42ded5b166b37d29c9837c5f3e0bceaa661c5ba.tar.bz2 |
Added debugging.
Diffstat (limited to 'Source/CursesDialog/cmCursesForm.cxx')
-rw-r--r-- | Source/CursesDialog/cmCursesForm.cxx | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Source/CursesDialog/cmCursesForm.cxx b/Source/CursesDialog/cmCursesForm.cxx index 8d9c444..a91172f 100644 --- a/Source/CursesDialog/cmCursesForm.cxx +++ b/Source/CursesDialog/cmCursesForm.cxx @@ -1,5 +1,8 @@ #include "cmCursesForm.h" +std::ofstream cmCursesForm::DebugFile; +bool cmCursesForm::Debug = false; + cmCursesForm::cmCursesForm() { m_Form = 0; @@ -14,3 +17,30 @@ cmCursesForm::~cmCursesForm() m_Form = 0; } } + +void cmCursesForm::DebugStart() +{ + cmCursesForm::Debug = true; + cmCursesForm::DebugFile.open("ccmakelog.txt"); +} + +void cmCursesForm::DebugEnd() +{ + if (!cmCursesForm::Debug) + { + return; + } + + cmCursesForm::Debug = false; + cmCursesForm::DebugFile.close(); +} + +void cmCursesForm::LogMessage(const char* msg) +{ + if (!cmCursesForm::Debug) + { + return; + } + + cmCursesForm::DebugFile << msg << std::endl; +} |