X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/518e6f1b9b6edfff2c1b0cd25f061f93a4d1fcb9..7ccca7457b662dc61214893626f236483926ae18:/stglibs/srvconf.lib/parsers/get_tariff.cpp 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) {