Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
// wxWindows includes
#include <wx/string.h>
#include <wx/arrstr.h>
#include <wx/dynarray.h>
// Statsgen includes
#include "WeightListEntry.h"
#include "GlobalStatistics.h"
WeightListEntry::WeightListEntry()
{
}
WeightListEntry::~WeightListEntry()
{
}
void WeightListEntry::UpdateWeighting(wxString &prefix)
{
wxString configKey;
wxString configValue;
wxString defaultString;
configKey="/"+prefix+"/"+key;
defaultString.Printf("%f",defaultValue);
globalStatistics.configData.ReadTextValue(configKey,
&configValue,
(char *)defaultString.GetData());
weight=atof(configValue.GetData());
}