27 lines
682 B
C
27 lines
682 B
C
|
#ifndef CALENDARPAGE_H
|
||
|
#define CALENDARPAGE_H
|
||
|
|
||
|
#include "../page.h"
|
||
|
#include "calendarCourse.h"
|
||
|
#include <list>
|
||
|
#include <string.h> //strlen and strtok to phrase the html file
|
||
|
#include <ctype.h> //checks if character is numeric
|
||
|
|
||
|
class CalendarPage : public Page
|
||
|
{
|
||
|
public:
|
||
|
CalendarPage(std::string html);
|
||
|
std::string htmlToString();
|
||
|
std::list<calendarCourse*>* getCourses() { return courses; }
|
||
|
|
||
|
private:
|
||
|
std::string tokenToLines(std::string& textToPhrase);
|
||
|
void calendarListInit(std::string& linesTokinzedString);
|
||
|
calendarCourse* lineToCourse(std::string line);
|
||
|
|
||
|
std::string tempHtml;
|
||
|
std::list<calendarCourse*>* courses;
|
||
|
};
|
||
|
|
||
|
#endif // CALENDARPAGE_H
|