/** * Creates the directory structure in output_dir/ * * @param output_dir the directory into which the files should be placed * @param image_dir the directory where the image files are located for * relocation */ KMLBuilder::KMLBuilder(QDir output_dir, QDir image_dir) { output_directory = output_dir; image_directory = image_dir; fileDirs["root"] = new QDir(output_dir); readTemplates(); createDirectories(); }
void DialogSettings::loadTemplates() { vector<Template*>* templates = readTemplates(); QStringList list; for (vector<Template*>::iterator iter = templates->begin(); iter != templates->end(); iter++) { Template* tpl = *iter; QString description(tpl->description()->c_str()); list.append(description); } ui->templatesList->addItems(list); }
int main() { if (TYPE == 0) readTemplates(); else { trainModels(); readModels(); } testMatch(); recordAndMatch(); return 0; }
/* * This function initiates the KML build process. */ int main(int argc, char** argv) { if (*(++argv) == NULL) { qDebug() << "\aERROR Improper Usage!!!" << endl << endl; qDebug() << "Correct Usage:" << endl; qDebug() << "kmlbuilder FILE_DIRECTORY_NAME" << endl; return EXIT_FAILURE; } executableDir = new QDir("."); filePath = new QString(*argv); subDirName[ROOT] = *filePath; fileDir[ROOT] = new QDir(*filePath); if (!fileDir[ROOT]->exists()) { qDebug() << *filePath << "\a NOT FOUND!!!" << endl; return EXIT_FAILURE; } if (!readTemplates()) return EXIT_FAILURE; if (!createDirectories()) return EXIT_FAILURE; generateFiles(); if (!relocateImages()) return EXIT_FAILURE; for (int i = 0; i < 4; i++) delete fileDir[i]; delete filePath; delete executableDir; return EXIT_SUCCESS; }
void KisTemplateTree::readTemplateTree() { readGroups(); readTemplates(); }