tracerecorder, refresh and stuff

This commit is contained in:
robert
2014-03-29 00:26:21 +01:00
parent 35ba108cf7
commit 04e38d6663
40 changed files with 417 additions and 362 deletions

View File

@@ -3,11 +3,11 @@
using namespace std;
string xmlAddressDecoder::URI = "";
string xmlAddressDecoder::addressConfigURI = "";
xmlAddressDecoder::xmlAddressDecoder(string URI)
xmlAddressDecoder::xmlAddressDecoder(string addressConfigURI)
{
doc = new TiXmlDocument(URI.c_str());
doc = new TiXmlDocument(addressConfigURI.c_str());
if (doc->LoadFile())
{
dramconfig = doc->FirstChildElement("dramconfig");
@@ -68,13 +68,13 @@ xmlAddressDecoder::xmlAddressDecoder(string URI)
}
else
{
SC_REPORT_ERROR("xmlAddressDecoder can not find ", URI.c_str());
SC_REPORT_ERROR("xmlAddressDecoder can not find ", addressConfigURI.c_str());
}
}
xmlAddressDecoder& xmlAddressDecoder::getInstance()
{
static xmlAddressDecoder decoder(xmlAddressDecoder::URI);
static xmlAddressDecoder decoder(xmlAddressDecoder::addressConfigURI);
return decoder;
}