merged everythin into one project
This commit is contained in:
35
dram/src/common/DebugManager.h
Normal file
35
dram/src/common/DebugManager.h
Normal file
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
* DebugManager.h
|
||||
*
|
||||
* Created on: Mar 20, 2014
|
||||
* Author: jonny
|
||||
*/
|
||||
|
||||
#ifndef DEBUGMANAGER_H_
|
||||
#define DEBUGMANAGER_H_
|
||||
|
||||
#include <systemc.h>
|
||||
|
||||
enum class Importance {Warning, Error, Info};
|
||||
|
||||
class DebugManager
|
||||
{
|
||||
public:
|
||||
static DebugManager& getInstance();
|
||||
|
||||
enum Sender {Core, Scheduler};
|
||||
|
||||
bool printTime;
|
||||
bool printLocation;
|
||||
|
||||
void printDebug(Importance i, Sender s, sc_time time, std::string message);
|
||||
|
||||
private:
|
||||
DebugManager() : printTime(true), printLocation(true) {};
|
||||
DebugManager(const DebugManager&);
|
||||
std::string senderToString(Sender sender);
|
||||
std::string importancyToString(Importance importancy);
|
||||
|
||||
};
|
||||
|
||||
#endif /* DEBUGMANAGER_H_ */
|
||||
Reference in New Issue
Block a user