git.stg.codes
/
stg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b24116
)
Ticket 37. The ChangePolicyToString() and StringToChangePolicy()
author
Elena Mamontova
<helenh463@gmail.com>
Fri, 20 May 2016 11:02:52 +0000
(14:02 +0300)
committer
Elena 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
patch
|
blob
|
history
diff --git
a/include/stg/tariff.h
b/include/stg/tariff.h
index baa6c1bfdd06f52ea34e4f3192adca39bb05025e..a2f6b42c6425007f5e58cfa7dc1edb9e423dde17 100644
(file)
--- 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);