From: Elena Mamontova Date: Fri, 20 May 2016 11:02:52 +0000 (+0300) Subject: Ticket 37. The ChangePolicyToString() and StringToChangePolicy() X-Git-Tag: 2.409~178 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/32215800f291d9653aa7f0f5c101956a8e3dd6b2?hp=5b241162c3bb93887e18ff3b2774f2979780648b Ticket 37. The ChangePolicyToString() and StringToChangePolicy() functions are declared in the class TARIFF. --- 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);