From 7ccca7457b662dc61214893626f236483926ae18 Mon Sep 17 00:00:00 2001 From: Elena Mamontova Date: Tue, 1 Nov 2016 16:05:49 +0200 Subject: [PATCH 1/1] Ticket. GetChangePolicyTimeout() function added. --- stglibs/srvconf.lib/parsers/get_tariff.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) 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) { -- 2.44.2