minor refactoring

This commit is contained in:
robert
2014-07-03 13:57:39 +02:00
parent c554b4aba1
commit 8467945a3a
2 changed files with 7 additions and 4 deletions

View File

@@ -17,8 +17,8 @@
#include "third_party/tinyxml2.h"
#include <iomanip>
//TODO : move to timing specific header
sc_time getDistance(sc_time a, sc_time b);
struct TimeInterval
{
sc_time start,end;
@@ -69,11 +69,15 @@ static inline void loadbar(unsigned int x, unsigned int n, unsigned int w = 50,
std::cout << "]\r" << std::flush;
}
//TODO : Move to debug manager
void reportFatal(std::string sender, std::string message);
std::string phaseNameToString(tlm::tlm_phase phase);
//TODO : Move to other source specific to xml
std::string getFileName(std::string uri);
bool parameterExists(tinyxml2::XMLElement* node, std::string name);
std::string loadTextFileContents(std::string filename);
void loadXML(std::string uri, tinyxml2::XMLDocument& doc);
unsigned int queryUIntParameter(tinyxml2::XMLElement* node, std::string name);
std::string queryStringParameter(tinyxml2::XMLElement* node, std::string name);
@@ -82,6 +86,5 @@ double queryDoubleParameter(tinyxml2::XMLElement* node, std::string name);
void setUpDummy(tlm::tlm_generic_payload& payload, Bank& bank);
std::string getFileName(std::string uri);
#endif /* UTILS_COMMON_H_ */

View File

@@ -89,7 +89,7 @@ private:
// ------- CONTROLLER CORE ---------
void controllerCorePEQCallback(tlm_generic_payload& payload, const tlm_phase& phase);
//Helpers
//Helpers TODO move them
void printDebugMessage(string message);
bool containsPhase(tlm_phase phase, std::vector<tlm_phase> phases);