Skip to content
Snippets Groups Projects
Commit 6c371daa authored by Lukáš Paukert's avatar Lukáš Paukert
Browse files

Renamed MainPage to Page (one file was not staged)

parent 0e13d088
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
#include "calculation/Computor.h" #include "calculation/Computor.h"
#include "util/QueryJSONParser.h" #include "util/QueryJSONParser.h"
#include "util/InvertedIndexJSONParser.h" #include "util/InvertedIndexJSONParser.h"
#include "src/ui/MainPage.h" #include "src/ui/Page.h"
#include "src/database/Database.h" #include "src/database/Database.h"
#include "src/database/Document.h" #include "src/database/Document.h"
   
...@@ -17,7 +17,7 @@ using namespace cxxopts; ...@@ -17,7 +17,7 @@ using namespace cxxopts;
   
std::unique_ptr<Wt::WApplication> createApplication(const Wt::WEnvironment& env) std::unique_ptr<Wt::WApplication> createApplication(const Wt::WEnvironment& env)
{ {
auto app = Wt::cpp14::make_unique<MainPage>(env); auto app = Wt::cpp14::make_unique<Page>(env);
app->setTitle("Querying: Vector model of information retrieval"); app->setTitle("Querying: Vector model of information retrieval");
app->useStyleSheet("https://fonts.googleapis.com/css?family=Open+Sans&display=swap"); app->useStyleSheet("https://fonts.googleapis.com/css?family=Open+Sans&display=swap");
app->useStyleSheet("style.css"); app->useStyleSheet("style.css");
...@@ -50,27 +50,3 @@ int main(int argc, char *argv[]) { ...@@ -50,27 +50,3 @@ int main(int argc, char *argv[]) {
auto availableDocuments = collection.fetchCollection(); auto availableDocuments = collection.fetchCollection();
*/ */
} }
/*
todo tohle bylo puvodne smycka, ve ktery se dostavalo: 1. flag, jestli se ma skoncit, 2. cesta k jsonu, ktery reprezentuje dotaz
todo 3. threshold
todo misto smycky je to potreba dat jako nejaky event, napr otevreni dokumentu, nebo jeho pretazeni do prohlizece dokumentu, nebo nejake tlacitko
todo taky to nemusi byt json ten vstup, ale to je na povazenou, jak to udelat. Protoze pokud bude vstup dokument, tak by asi mel projit taky preprocessingem a vypoctem vah
string queryPath;
bool exit = false;
double threshold;
while (true) {
cin >> exit;
if (exit)
break;
cin >> queryPath >> threshold;
Query query(QueryJSONParser(queryPath).parse(), threshold);
auto res = Computor(space, query).compute();
}
*/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment