#include "chg_tariff.h"
+#include "resetable_utils.h"
+
#include "stg/tariff_conf.h"
#include "stg/common.h"
namespace
{
-template <typename T>
-void appendResetable(std::ostream & stream, const std::string & name, const T & value)
-{
-if (!value.empty())
- stream << "<" << name << " value=\"" << value.data() << "\"/>";
-}
-
template <typename A, typename T>
void appendSlashedResetable(std::ostream & stream, const std::string & name, const A & array, T A::value_type:: * field)
{
appendSlashedResetable(stream, "priceNightB", data.dirPrice, &DIRPRICE_DATA_RES::priceNightB);
appendSlashedResetable(stream, "singlePrice", data.dirPrice, &DIRPRICE_DATA_RES::singlePrice);
appendSlashedResetable(stream, "noDiscount", data.dirPrice, &DIRPRICE_DATA_RES::noDiscount);
+appendSlashedResetable(stream, "threshold", data.dirPrice, &DIRPRICE_DATA_RES::threshold);
return stream.str();
}