tracerecorder, refresh and stuff
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user