Bankwise Refresh Manager and some minor refactoring fun
This commit is contained in:
@@ -16,19 +16,16 @@ DebugManager& DebugManager::getInstance()
|
||||
return manager;
|
||||
}
|
||||
|
||||
void DebugManager::printDebug(Importance importancy, Sender sender, sc_time time, std::string message)
|
||||
void DebugManager::printDebug(string message, Sender sender, Importance importance)
|
||||
{
|
||||
cout << "[" << importancyToString(importancy) << "]";
|
||||
if(printTime) std::cout << " at " << time;
|
||||
cout << "[" << importanceToString(importance) << "]";
|
||||
if(printTime) std::cout << " at " << sc_time_stamp();
|
||||
if(printLocation) std::cout << " in " << senderToString(sender);
|
||||
cout << ": " << message << endl;
|
||||
}
|
||||
|
||||
string DebugManager::importancyToString(Importance importancy)
|
||||
string DebugManager::importanceToString(Importance importancy)
|
||||
{
|
||||
//if((unsigned int)importancy == Importancy::Warning)
|
||||
// return "Warning";
|
||||
|
||||
switch(importancy)
|
||||
{
|
||||
case Importance::Info: return "[Info]";
|
||||
@@ -40,11 +37,11 @@ string DebugManager::importancyToString(Importance importancy)
|
||||
|
||||
string DebugManager::senderToString(Sender sender)
|
||||
{
|
||||
|
||||
/*switch(sender)
|
||||
switch(sender)
|
||||
{
|
||||
case Sender::Core: return "Core";
|
||||
case Sender::Scheduler: return "Scheduler";
|
||||
}*/
|
||||
return "Core";
|
||||
case Sender::TracePlayer: return "TracePlayer";
|
||||
}
|
||||
return "unknown sender";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user