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

Renamed MainPage to Page

parent 1d3cf952
No related branches found
No related tags found
No related merge requests found
......@@ -43,7 +43,7 @@ set(SOURCES
src/database/Database.cpp src/database/Database.h
src/database/Document.cpp src/database/Document.h
src/exceptions/Exceptions.h
src/ui/MainPage.cpp src/ui/MainPage.h
src/ui/Page.cpp src/ui/Page.h
src/util/ArgumentParser.cpp src/util/ArgumentParser.h
src/util/InvertedIndexJSONParser.cpp src/util/InvertedIndexJSONParser.h
src/util/QueryJSONParser.cpp src/util/QueryJSONParser.h
......
......@@ -6,8 +6,6 @@
#include <map>
 
#include "InvertedIndex.h"
#include "Query.h"
#include "./../database/Database.h"
 
/**
* @brief A class representing the vector space of the collection
......
......@@ -7,9 +7,9 @@
#include "./../calculation/Query.h"
#include "./../calculation/Computor.h"
#include "./../util/InvertedIndexJSONParser.h"
#include "MainPage.h"
#include "Page.h"
 
MainPage::MainPage(const Wt::WEnvironment& env)
Page::Page(const Wt::WEnvironment& env)
: Wt::WApplication(env),
database("./../../data/persistence/docs_and_terms.db"),
space(InvertedIndexJSONParser("./../../data/persistence/invertedList.json").parse())
......@@ -19,7 +19,7 @@ MainPage::MainPage(const Wt::WEnvironment& env)
displayMainPage();
}
 
void MainPage::displayMainPage()
void Page::displayMainPage()
{
container->clear();
 
......@@ -42,7 +42,7 @@ void MainPage::displayMainPage()
});
}
 
std::string MainPage::getName(const std::string & path)
std::string Page::getName(const std::string & path)
{
std::string name;
size_t begin = path.find_last_of('/') + 1;
......@@ -52,7 +52,7 @@ std::string MainPage::getName(const std::string & path)
return name;
}
 
std::string MainPage::getContent(const std::string & path)
std::string Page::getContent(const std::string & path)
{
std::string content;
std::ifstream file(path);
......@@ -63,7 +63,7 @@ std::string MainPage::getContent(const std::string & path)
return content;
}
 
void MainPage::displayDetail(int document_id)
void Page::displayDetail(int document_id)
{
container->clear();
 
......
......@@ -9,10 +9,10 @@
#include "./../database/Document.h"
#include "./../calculation/Space.h"
 
class MainPage : public Wt::WApplication
class Page : public Wt::WApplication
{
public:
MainPage(const Wt::WEnvironment& env);
Page(const Wt::WEnvironment& env);
 
private:
Database database;
......
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