]> git.stg.codes - stg.git/commitdiff
Ticket 37. The ChangePolicyToString() and StringToChangePolicy()
authorElena Mamontova <helenh463@gmail.com>
Fri, 20 May 2016 11:02:52 +0000 (14:02 +0300)
committerElena Mamontova <helenh463@gmail.com>
Fri, 20 May 2016 11:02:52 +0000 (14:02 +0300)
functions are declared in the class TARIFF.

include/stg/tariff.h

index baa6c1bfdd06f52ea34e4f3192adca39bb05025e..a2f6b42c6425007f5e58cfa7dc1edb9e423dde17 100644 (file)
@@ -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);