#include <mitkEndoDebug.h>
class responsible for handling debug matters in endotracking
Definition at line 32 of file mitkEndoDebug.h.
◆ EndoDebug()
mitk::EndoDebug::EndoDebug |
( |
| ) |
|
◆ ~EndoDebug()
virtual mitk::EndoDebug::~EndoDebug |
( |
| ) |
|
|
virtual |
◆ AddFileToDebug()
bool mitk::EndoDebug::AddFileToDebug |
( |
const std::string & |
fileToDebug | ) |
|
add a file to debug ( if one or more files are set ) only those files will be debugged when using the macros below. e.g. call AddFileToDebug("MyClass.cpp"), then statements like endodebug(...) will be evaluated in MyClass.cpp and nowhere else
◆ AddSymbolToDebug()
bool mitk::EndoDebug::AddSymbolToDebug |
( |
const std::string & |
symbolToDebug | ) |
|
same as files to debug, but the user can provide any symbol string. if one or more symbols are set only for these symbols Debug() will return true
◆ Debug()
bool mitk::EndoDebug::Debug |
( |
const std::string & |
fileToDebug, |
|
|
const std::string & |
symbol = "" |
|
) |
| |
- Returns
- the all in all status if debug output should be generated
◆ DebugFile()
bool mitk::EndoDebug::DebugFile |
( |
const std::string & |
fileToDebug | ) |
|
- Returns
- true if file should be debugged
◆ DebugSymbol()
bool mitk::EndoDebug::DebugSymbol |
( |
const std::string & |
symbolToDebug | ) |
|
- Returns
- true if symbol should be debugged
◆ GetDebugEnabled()
bool mitk::EndoDebug::GetDebugEnabled |
( |
| ) |
|
- Returns
- true if debug should be enabled
◆ GetDebugImagesOutputDirectory()
std::string mitk::EndoDebug::GetDebugImagesOutputDirectory |
( |
| ) |
const |
- Returns
- true if debug should be enabled
◆ GetFilenameWithoutExtension()
std::string mitk::EndoDebug::GetFilenameWithoutExtension |
( |
const std::string & |
s | ) |
|
- Returns
- the basename of a file without path
◆ GetFilesToDebug()
std::set<std::string> mitk::EndoDebug::GetFilesToDebug |
( |
| ) |
|
- Returns
- the files to be debugged
◆ GetInstance()
static EndoDebug& mitk::EndoDebug::GetInstance |
( |
| ) |
|
|
static |
◆ GetShowImagesInDebug()
bool mitk::EndoDebug::GetShowImagesInDebug |
( |
| ) |
|
- Returns
- true if debug should be enabled
◆ GetShowImagesTimeOut()
size_t mitk::EndoDebug::GetShowImagesTimeOut |
( |
| ) |
|
- Returns
- true if debug should be enabled
◆ GetSymbolsToDebug()
std::set<std::string> mitk::EndoDebug::GetSymbolsToDebug |
( |
| ) |
|
- Returns
- the symbols to be debugged
◆ GetUniqueFileName()
static std::string mitk::EndoDebug::GetUniqueFileName |
( |
const std::string & |
dir, |
|
|
const std::string & |
ext = "jpg" , |
|
|
const std::string & |
prefix = "" |
|
) |
| |
|
static |
helper function getting unique file name
◆ SetDebugEnabled()
void mitk::EndoDebug::SetDebugEnabled |
( |
bool |
_DebugEnabled | ) |
|
set if debug is enabled at all
◆ SetDebugImagesOutputDirectory()
void mitk::EndoDebug::SetDebugImagesOutputDirectory |
( |
const std::string & |
_DebugImagesOutputDirectory | ) |
|
sets an output directory. if set all images that are shown are also written to that output dir
◆ SetFilesToDebug()
void mitk::EndoDebug::SetFilesToDebug |
( |
const std::set< std::string > & |
filesToDebug | ) |
|
◆ SetLogFile()
void mitk::EndoDebug::SetLogFile |
( |
const std::string & |
file | ) |
|
set a log file. if a log file is set and debug is activated all messages will be appended to that file
◆ SetShowImagesInDebug()
void mitk::EndoDebug::SetShowImagesInDebug |
( |
bool |
_ShowImagesInDebug | ) |
|
set if debug is enabled at all
◆ SetShowImagesTimeOut()
void mitk::EndoDebug::SetShowImagesTimeOut |
( |
size_t |
_ShowImagesTimeOut | ) |
|
set if debug is enabled at all
◆ SetSymbolsToDebug()
void mitk::EndoDebug::SetSymbolsToDebug |
( |
const std::set< std::string > & |
symbolsToDebug | ) |
|
◆ ShowMessage()
void mitk::EndoDebug::ShowMessage |
( |
const std::string & |
message | ) |
|
shows a message or writes it to a log file if a file is set (and is valid for writing)
The documentation for this struct was generated from the following file: