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:
518e6f1
)
Ticket. GetChangePolicyTimeout() function added.
author
Elena Mamontova
<helenh463@gmail.com>
Tue, 1 Nov 2016 14:05:49 +0000
(16:05 +0200)
committer
Elena Mamontova
<helenh463@gmail.com>
Tue, 1 Nov 2016 14:05:49 +0000
(16:05 +0200)
stglibs/srvconf.lib/parsers/get_tariff.cpp
patch
|
blob
|
history
diff --git
a/stglibs/srvconf.lib/parsers/get_tariff.cpp
b/stglibs/srvconf.lib/parsers/get_tariff.cpp
index 4844fd6c77fdbec69de28fe50aa46321c2414e6f..0b96bec3b8e234aced6461e2647fe8ea590d7600 100644
(file)
--- a/
stglibs/srvconf.lib/parsers/get_tariff.cpp
+++ b/
stglibs/srvconf.lib/parsers/get_tariff.cpp
@@
-116,6
+116,15
@@
else
return true;
}
+template <typename T>
+bool GetChangePolicyTimeout(const char ** attr, T & value, const std::string & attrName)
+{
+if (!CheckValue(attr, attrName))
+ return false;
+value = readTime(attr[1]);
+return true;
+}
+
template <typename A, typename T>
bool GetSlashedValue(const char ** attr, A & array, T A::value_type:: * field)
{