Esempio n. 1
0
int main() {
    BSTree *tree = NULL;
    string inputFile;
    string outputFileInsertion = "results_";
    string outpuFileDeletion;
    string graphOutputFileInsertion = "graph_";
    string graphOutputFileDeletion;

    cout << "Bem vindo." << endl;

    string cepsChosen = defineInputFile(inputFile);
    outputFileInsertion += cepsChosen;
    graphOutputFileInsertion += cepsChosen;

    string treeChosen = defineTree(tree);
    outputFileInsertion += treeChosen + ".dat";
    graphOutputFileInsertion += treeChosen + ".png";

    outpuFileDeletion = "deletion_" + outputFileInsertion;
    outputFileInsertion = "insertion_" + outputFileInsertion;

    graphOutputFileDeletion = "deletion_" + graphOutputFileInsertion;
    graphOutputFileInsertion = "insertion_" + graphOutputFileInsertion;

    readAndInsertCeps(inputFile, outputFileInsertion, tree);

    showCepSearch(tree);

    removeCepsFromTree(outpuFileDeletion, tree);

    generateGraphs(outputFileInsertion, outpuFileDeletion, graphOutputFileInsertion,
                   graphOutputFileDeletion);
}
Esempio n. 2
0
/// \brief Set the data analyzer whose data will be drawn.
/// \param dataAnalyzer Pointer to the DataAnalyzer class.
void GlGenerator::setDataAnalyzer(DataAnalyzer *dataAnalyzer) {
	if(this->dataAnalyzer)
		disconnect(this->dataAnalyzer, SIGNAL(finished()), this, SLOT(generateGraphs()));
	this->dataAnalyzer = dataAnalyzer;
	connect(this->dataAnalyzer, SIGNAL(finished()), this, SLOT(generateGraphs()));
}