void DirectoryWork::setDirectoryPath(const QString path) { if(hasDirectory(path)) { path_ = path; qDebug() << "[DirectoryPath]. Current directory Path:" << path; } else { qDebug() << "[DirectoryPath]. Selected directory doesn't exist! Path:" << path; } }
bool IHttpDirectory::addDirectory(shared_ptr<IHttpDirectory> directory) { OS_LOCK(m_cs); if(directory == nullptr) return false; OS_EXCEPT_IF(hasDirectory(directory->getName()), "Duplicated directory"); directory->m_parent = get_this_ptr(); m_directories.push_back(directory->getName(), directory); return true; }
bool PeParser::hasTLSDirectory() { return hasDirectory(IMAGE_DIRECTORY_ENTRY_TLS); }
bool PeParser::hasRelocationDirectory() { return hasDirectory(IMAGE_DIRECTORY_ENTRY_BASERELOC); }
bool PeParser::hasExportDirectory() { return hasDirectory(IMAGE_DIRECTORY_ENTRY_EXPORT); }