//-----------------------------------------------------------------------------
SETTINGS_IMPL::SETTINGS_IMPL()
: SETTINGS(),
//-----------------------------------------------------------------------------
SETTINGS_IMPL::SETTINGS_IMPL()
: SETTINGS(),
DOTCONFDocument conf(DOTCONFDocument::CASEINSENSITIVE);
conf.setErrorCallback(SETTINGS_IMPL::ErrorCallback, this);
conf.setRequiredOptionNames(requiredOptions);
DOTCONFDocument conf(DOTCONFDocument::CASEINSENSITIVE);
conf.setErrorCallback(SETTINGS_IMPL::ErrorCallback, this);
conf.setRequiredOptionNames(requiredOptions);
if (strcasecmp(node->getName(), "DetailStatWritePeriod") == 0)
{
if (ParseDetailStatWritePeriod(node->getValue(0)) != 0)
{
if (strcasecmp(node->getName(), "DetailStatWritePeriod") == 0)
{
if (ParseDetailStatWritePeriod(node->getValue(0)) != 0)
{
{
if (ParseUnsignedInRange(node->getValue(0), 1, 1440, &statWritePeriod) != 0)
{
{
if (ParseUnsignedInRange(node->getValue(0), 1, 1440, &statWritePeriod) != 0)
{
{
if (ParseUnsignedInRange(node->getValue(0), 1, 1024, &executersNum) != 0)
{
{
if (ParseUnsignedInRange(node->getValue(0), 1, 1024, &executersNum) != 0)
{
{
if (ParseUnsignedInRange(node->getValue(0), 0, 31, &dayFee) != 0)
{
{
if (ParseUnsignedInRange(node->getValue(0), 0, 31, &dayFee) != 0)
{
{
if (ParseUnsignedInRange(node->getValue(0), 0, 31, &dayResetTraff) != 0)
{
{
if (ParseUnsignedInRange(node->getValue(0), 0, 31, &dayResetTraff) != 0)
{
{
if (ParseUnsignedInRange(node->getValue(0), 0, 3, &feeChargeType) != 0)
{
{
if (ParseUnsignedInRange(node->getValue(0), 0, 3, &feeChargeType) != 0)
{