Code: Select all
ShareManager::getInstance()->getDirectories();I traced it to this...
Code: Select all
StringList ShareManager::getDirectories() {
RLock l(cs);
StringList tmp;
tmp.reserve(directories.size());
for(Directory::MapIter i = directories.begin(); i != directories.end(); ++i) {
tmp.push_back(i->first);
}
return tmp;
}But I don't understand how that returns a list of the directories from the xml file, I understand how it returns the data, just not how Directory::MapIter works.
So if anyone can explain to me how ShareManager::getInstance()->getDirectories(); gets the directories, not the actual data, just the directory list from the xml file, I'd be greatful. Thanks.