From: Elena Mamontova Date: Tue, 9 Feb 2016 16:06:00 +0000 (+0200) Subject: Ticket 26. The SETTINGS_IMPL & SETTINGS_IMPL::operator() definition added. X-Git-Tag: 2.409~174^2~1^2~47 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/c8c881a0df9e718e364af741695f165d6bb3e529 Ticket 26. The SETTINGS_IMPL & SETTINGS_IMPL::operator() definition added. --- diff --git a/projects/stargazer/settings_impl.cpp b/projects/stargazer/settings_impl.cpp index d115919d..ca343bd5 100644 --- a/projects/stargazer/settings_impl.cpp +++ b/projects/stargazer/settings_impl.cpp @@ -99,6 +99,42 @@ SETTINGS_IMPL::SETTINGS_IMPL(const SETTINGS_IMPL & rval) { } //----------------------------------------------------------------------------- +SETTINGS_IMPL & SETTINGS_IMPL::operator=(const SETTINGS_IMPL & set) +{ + if (&set == this) + return *this; + + modulesPath = set.modulesPath; + dirName = set.dirName; + confDir = set.confDir; + scriptsDir = set.scriptsDir; + rules = set.rules; + logFile = set.logFile; + pidFile = set.pidFile; + monitorDir = set.monitorDir; + scriptParams = set.scriptParams; + monitoring = set.monitoring; + detailStatWritePeriod = set.detailStatWritePeriod; + statWritePeriod = set.statWritePeriod; + stgExecMsgKey = set.stgExecMsgKey; + executersNum = set.executersNum; + fullFee = set.fullFee; + dayFee = set.dayFee; + dayResetTraff = set.dayResetTraff; + spreadFee = set.spreadFee; + freeMbAllowInet = set.freeMbAllowInet; + dayFeeIsLastDay = set.dayFeeIsLastDay; + writeFreeMbTraffCost = set.writeFreeMbTraffCost; + showFeeInCash = set.showFeeInCash; + messageTimeout = set.messageTimeout; + feeChargeType = set.feeChargeType; + reconnectOnTariffChange = set.reconnectOnTariffChange; + + modulesSettings = set.modulesSettings; + storeModuleSettings = set.storeModuleSettings; + return *this; +} +//----------------------------------------------------------------------------- int SETTINGS_IMPL::ParseModuleSettings(const DOTCONFDocumentNode * node, std::vector * params) { const DOTCONFDocumentNode * childNode;