From 32215800f291d9653aa7f0f5c101956a8e3dd6b2 Mon Sep 17 00:00:00 2001 From: Elena Mamontova Date: Fri, 20 May 2016 14:02:52 +0300 Subject: [PATCH 1/1] Ticket 37. The ChangePolicyToString() and StringToChangePolicy() functions are declared in the class TARIFF. --- include/stg/tariff.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/stg/tariff.h b/include/stg/tariff.h index baa6c1bf..a2f6b42c 100644 --- a/include/stg/tariff.h +++ b/include/stg/tariff.h @@ -38,6 +38,9 @@ public: enum TRAFF_TYPE { TRAFF_UP = 0, TRAFF_DOWN, TRAFF_UP_DOWN, TRAFF_MAX }; + static std::string ChangePolicyToString(CHANGE_POLICY change_policy); + static CHANGE_POLICY StringToChangePolicy(const std::string& value); + static std::string PeriodToString(PERIOD period); static PERIOD StringToPeriod(const std::string& value); -- 2.44.2