|
|
@ -670,14 +670,14 @@ bool plIniConfigSource::WriteOutOf(plConfigInfo & configInfo) |
|
|
|
plConfigInfo::Values::const_iterator vi, ve; |
|
|
|
plConfigInfo::Values::const_iterator vi, ve; |
|
|
|
|
|
|
|
|
|
|
|
fConfigInfo->GetSectionIterators(si,se); |
|
|
|
fConfigInfo->GetSectionIterators(si,se); |
|
|
|
for (si; si!=se; ++si) |
|
|
|
for (; si!=se; ++si) |
|
|
|
{ |
|
|
|
{ |
|
|
|
file << std::endl << "[" << si->first.c_str() << "]"<< std::endl; |
|
|
|
file << std::endl << "[" << si->first.c_str() << "]"<< std::endl; |
|
|
|
if (fConfigInfo->GetKeyIterators(si->first, ki, ke)) |
|
|
|
if (fConfigInfo->GetKeyIterators(si->first, ki, ke)) |
|
|
|
for (ki; ki!=ke; ++ki) |
|
|
|
for (; ki!=ke; ++ki) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (fConfigInfo->GetValueIterators(si->first, ki->first, vi, ve)) |
|
|
|
if (fConfigInfo->GetValueIterators(si->first, ki->first, vi, ve)) |
|
|
|
for (vi; vi!=ve; ++vi) |
|
|
|
for (; vi!=ve; ++vi) |
|
|
|
{ |
|
|
|
{ |
|
|
|
file << ki->first.c_str() << "=" << vi->c_str() << std::endl; |
|
|
|
file << ki->first.c_str() << "=" << vi->c_str() << std::endl; |
|
|
|
} |
|
|
|
} |
|
|
@ -738,14 +738,14 @@ bool plIniStreamConfigSource::WriteOutOf(plConfigInfo & configInfo) |
|
|
|
plConfigInfo::Values::const_iterator vi, ve; |
|
|
|
plConfigInfo::Values::const_iterator vi, ve; |
|
|
|
|
|
|
|
|
|
|
|
fConfigInfo->GetSectionIterators(si,se); |
|
|
|
fConfigInfo->GetSectionIterators(si,se); |
|
|
|
for (si; si!=se; ++si) |
|
|
|
for (; si!=se; ++si) |
|
|
|
{ |
|
|
|
{ |
|
|
|
ss << std::endl << "[" << si->first.c_str() << "]"<< std::endl; |
|
|
|
ss << std::endl << "[" << si->first.c_str() << "]"<< std::endl; |
|
|
|
if (fConfigInfo->GetKeyIterators(si->first, ki, ke)) |
|
|
|
if (fConfigInfo->GetKeyIterators(si->first, ki, ke)) |
|
|
|
for (ki; ki!=ke; ++ki) |
|
|
|
for (; ki!=ke; ++ki) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (fConfigInfo->GetValueIterators(si->first, ki->first, vi, ve)) |
|
|
|
if (fConfigInfo->GetValueIterators(si->first, ki->first, vi, ve)) |
|
|
|
for (vi; vi!=ve; ++vi) |
|
|
|
for (; vi!=ve; ++vi) |
|
|
|
{ |
|
|
|
{ |
|
|
|
ss << ki->first.c_str() << "=" << vi->c_str() << std::endl; |
|
|
|
ss << ki->first.c_str() << "=" << vi->c_str() << std::endl; |
|
|
|
} |
|
|
|
} |
|
|
@ -887,13 +887,13 @@ bool plIniNoSectionsConfigSource::WriteOutOf(plConfigInfo & configInfo) |
|
|
|
plConfigInfo::Values::const_iterator vi, ve; |
|
|
|
plConfigInfo::Values::const_iterator vi, ve; |
|
|
|
|
|
|
|
|
|
|
|
fConfigInfo->GetSectionIterators(si,se); |
|
|
|
fConfigInfo->GetSectionIterators(si,se); |
|
|
|
for (si; si!=se; ++si) |
|
|
|
for (; si!=se; ++si) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (fConfigInfo->GetKeyIterators(si->first, ki, ke)) |
|
|
|
if (fConfigInfo->GetKeyIterators(si->first, ki, ke)) |
|
|
|
for (ki; ki!=ke; ++ki) |
|
|
|
for (; ki!=ke; ++ki) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (fConfigInfo->GetValueIterators(si->first, ki->first, vi, ve)) |
|
|
|
if (fConfigInfo->GetValueIterators(si->first, ki->first, vi, ve)) |
|
|
|
for (vi; vi!=ve; ++vi) |
|
|
|
for (; vi!=ve; ++vi) |
|
|
|
{ |
|
|
|
{ |
|
|
|
file << ki->first.c_str() << "=" << vi->c_str() << std::endl; |
|
|
|
file << ki->first.c_str() << "=" << vi->c_str() << std::endl; |
|
|
|
} |
|
|
|
} |
|
|
@ -919,15 +919,15 @@ bool plDebugConfigSource::WriteOutOf(plConfigInfo & configInfo) |
|
|
|
|
|
|
|
|
|
|
|
char buf[1024]; |
|
|
|
char buf[1024]; |
|
|
|
fConfigInfo->GetSectionIterators(si,se); |
|
|
|
fConfigInfo->GetSectionIterators(si,se); |
|
|
|
for (si; si!=se; ++si) |
|
|
|
for (; si!=se; ++si) |
|
|
|
{ |
|
|
|
{ |
|
|
|
sprintf(buf,"\n[%s]\n",si->first.c_str()); |
|
|
|
sprintf(buf,"\n[%s]\n",si->first.c_str()); |
|
|
|
hsStatusMessage(buf); |
|
|
|
hsStatusMessage(buf); |
|
|
|
if (fConfigInfo->GetKeyIterators(si->first, ki, ke)) |
|
|
|
if (fConfigInfo->GetKeyIterators(si->first, ki, ke)) |
|
|
|
for (ki; ki!=ke; ++ki) |
|
|
|
for (; ki!=ke; ++ki) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (fConfigInfo->GetValueIterators(si->first, ki->first, vi, ve)) |
|
|
|
if (fConfigInfo->GetValueIterators(si->first, ki->first, vi, ve)) |
|
|
|
for (vi; vi!=ve; ++vi) |
|
|
|
for (; vi!=ve; ++vi) |
|
|
|
{ |
|
|
|
{ |
|
|
|
sprintf(buf,"%s=%s\n",ki->first.c_str(),vi->c_str()); |
|
|
|
sprintf(buf,"%s=%s\n",ki->first.c_str(),vi->c_str()); |
|
|
|
hsStatusMessage(buf); |
|
|
|
hsStatusMessage(buf); |
|
|
|