Added function to Debug Manager that also outputs if debug is set to 0

This commit is contained in:
Matthias Jung
2015-08-05 09:13:58 +02:00
parent d1a7ceb82f
commit 8be4d8077c
2 changed files with 6 additions and 0 deletions

View File

@@ -50,6 +50,11 @@ void DebugManager::printDebugMessage(string sender, string message)
}
}
void DebugManager::printMessage(string sender, string message)
{
cout << " at " << sc_time_stamp() << "\t in " << sender << "\t: " << message << endl;
}
void DebugManager::openDebugFile(string filename)
{
if(debugFile)

View File

@@ -55,6 +55,7 @@ public:
bool writeToFile;
void printDebugMessage(std::string sender, std::string message);
void printMessage(std::string sender, std::string message);
void openDebugFile(std::string filename);
private: