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:
69172e0
)
Ticket. ChangePolicyToString() function added.
author
Elena Mamontova
<helenh463@gmail.com>
Tue, 12 Jul 2016 07:05:25 +0000
(10:05 +0300)
committer
Elena Mamontova
<helenh463@gmail.com>
Tue, 12 Jul 2016 07:05:25 +0000
(10:05 +0300)
projects/sgconf/tariffs.cpp
patch
|
blob
|
history
diff --git
a/projects/sgconf/tariffs.cpp
b/projects/sgconf/tariffs.cpp
index 3d63d2a8c6861f1b1fc0a666ef4af972ca9f3f69..df778f389b656d9aa87efd42c6d4b8d42a5f6b3b 100644
(file)
--- a/
projects/sgconf/tariffs.cpp
+++ b/
projects/sgconf/tariffs.cpp
@@
-28,6
+28,18
@@
if (level == 0)
return dash ? std::string(level * 4 - 2, ' ') + "- " : std::string(level * 4, ' ');
}
+std::string ChangePolicyToString(TARIFF::CHANGE_POLICY changePolicy)
+{
+switch (changePolicy)
+ {
+ case ALLOW: return "allow";
+ case TO_CHEAP: return "to_cheap";
+ case TO_EXPENSIVE: return "to_expensive";
+ case DENY: return "deny";
+ }
+return "unknown";
+}
+
std::string PeriodToString(TARIFF::PERIOD period)
{
switch (period)