+#include <ostream> // xmlrpc-c devs have missed something :)
+
#include "tariff_helper.h"
void TARIFF_HELPER::GetTariffInfo(xmlrpc_c::value * info) const
structVal["freemb"] = xmlrpc_c::value_double(data.tariffConf.free);
structVal["passivecost"] = xmlrpc_c::value_double(data.tariffConf.passiveCost);
structVal["traffType"] = xmlrpc_c::value_int(data.tariffConf.traffType);
+structVal["period"] = xmlrpc_c::value_string(TARIFF::PeriodToString(data.tariffConf.period));
std::vector<xmlrpc_c::value> prices(DIR_NUM);
data.tariffConf.traffType = xmlrpc_c::value_int(it->second);
}
+if ((it = structVal.find("period")) != structVal.end())
+ {
+ data.tariffConf.period = TARIFF::StringToPeriod(xmlrpc_c::value_string(it->second));
+ }
+
if ((it = structVal.find("dirprices")) != structVal.end())
{
std::vector<xmlrpc_c::value> prices(