From: Elena Mamontova Date: Tue, 1 Nov 2016 14:05:49 +0000 (+0200) Subject: Ticket. GetChangePolicyTimeout() function added. X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/7ccca7457b662dc61214893626f236483926ae18?ds=sidebyside Ticket. GetChangePolicyTimeout() function added. --- diff --git a/stglibs/srvconf.lib/parsers/get_tariff.cpp b/stglibs/srvconf.lib/parsers/get_tariff.cpp index 4844fd6c..0b96bec3 100644 --- a/stglibs/srvconf.lib/parsers/get_tariff.cpp +++ b/stglibs/srvconf.lib/parsers/get_tariff.cpp @@ -116,6 +116,15 @@ else return true; } +template +bool GetChangePolicyTimeout(const char ** attr, T & value, const std::string & attrName) +{ +if (!CheckValue(attr, attrName)) + return false; +value = readTime(attr[1]); +return true; +} + template bool GetSlashedValue(const char ** attr, A & array, T A::value_type:: * field) {