#include "stg/tariffs.h"
#include "stg/users.h"
-#include "stg/common.h"
#include "stg/resetable.h"
#include <cstdio> // snprintf
using STG::PARSER::DEL_TARIFF;
using STG::PARSER::CHG_TARIFF;
+const char * GET_TARIFFS::tag = "GetTariffs";
+const char * ADD_TARIFF::tag = "AddTariff";
+const char * DEL_TARIFF::tag = "DelTariff";
+const char * CHG_TARIFF::tag = "SetTariff";
+
namespace
{
void GET_TARIFFS::CreateAnswer()
{
- m_answer = GetOpenTag();
+ m_answer = "<Tariffs>";
std::list<TARIFF_DATA> dataList;
m_tariffs.GetTariffsData(&dataList);
"</tariff>";
}
- m_answer += GetCloseTag();
+ m_answer += "</Tariffs>";
}
int ADD_TARIFF::Start(void *, const char * el, const char ** attr)