-if (ParseInt(value, val) != 0)
- return -1;
-
-if (*val < min || *val > max)
- {
- strError = "Value \'" + value + "\' out of range.";
- return -1;
- }
-
-return 0;
+ 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;