tempcommit 13/05

Committer:
tijl
Date:
Wed May 15 13:39:22 2019 +0000
Revision:
2:048e163245b7
Parent:
1:63664175e603
blub 15/05;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
tijl 1:63664175e603 1 #ifndef SHED_H
tijl 1:63664175e603 2 #define SHED_H
tijl 1:63664175e603 3 #include <string>
tijl 1:63664175e603 4 #include <sstream>
tijl 1:63664175e603 5 #include <iostream>
tijl 1:63664175e603 6 #include <vector>
tijl 1:63664175e603 7 #include "Datetime.h"
tijl 1:63664175e603 8
tijl 1:63664175e603 9 using namespace std;
tijl 1:63664175e603 10 /**
tijl 1:63664175e603 11 * This class Shed can be used to act as one sheduled class (of many)
tijl 1:63664175e603 12 *
tijl 1:63664175e603 13 * @author Jordy Ampe
tijl 1:63664175e603 14 * @version 1.0
tijl 1:63664175e603 15 * @since 2019-05-08
tijl 1:63664175e603 16 */
tijl 1:63664175e603 17 class Shed{
tijl 1:63664175e603 18 private:
tijl 1:63664175e603 19 string lokaal;
tijl 1:63664175e603 20 Datetime* start;
tijl 1:63664175e603 21 Datetime* einde;
tijl 1:63664175e603 22 string prof;
tijl 1:63664175e603 23 string klasgroep;
tijl 1:63664175e603 24 string vak;
tijl 1:63664175e603 25 string comments;
tijl 1:63664175e603 26 public:
tijl 1:63664175e603 27 /**
tijl 1:63664175e603 28 * Constructor to make a Shed from json as a string
tijl 1:63664175e603 29 * @param json is a string with the received json for one shedules class from the API
tijl 1:63664175e603 30 */
tijl 1:63664175e603 31 Shed(string json);
tijl 1:63664175e603 32
tijl 1:63664175e603 33 /**
tijl 1:63664175e603 34 * Destructor for a Shed
tijl 1:63664175e603 35 */
tijl 1:63664175e603 36 ~Shed();
tijl 1:63664175e603 37
tijl 1:63664175e603 38 /**
tijl 1:63664175e603 39 * @return lokaal as a string
tijl 1:63664175e603 40 */
tijl 1:63664175e603 41 string getLokaal();
tijl 1:63664175e603 42
tijl 1:63664175e603 43 /**
tijl 1:63664175e603 44 * @return start as a Datetime*
tijl 1:63664175e603 45 */
tijl 1:63664175e603 46 Datetime* getStart();
tijl 1:63664175e603 47
tijl 1:63664175e603 48 /**
tijl 1:63664175e603 49 * @return einde as a Datetime*
tijl 1:63664175e603 50 */
tijl 1:63664175e603 51 Datetime* getEinde();
tijl 1:63664175e603 52
tijl 1:63664175e603 53 /**
tijl 1:63664175e603 54 * @return prof as a string
tijl 1:63664175e603 55 */
tijl 1:63664175e603 56 string getProf();
tijl 1:63664175e603 57
tijl 1:63664175e603 58 /**
tijl 1:63664175e603 59 * @return Klasgroep as a string
tijl 1:63664175e603 60 */
tijl 1:63664175e603 61 string getKlasgroep();
tijl 1:63664175e603 62
tijl 1:63664175e603 63 /**
tijl 1:63664175e603 64 * @return vak as a string
tijl 1:63664175e603 65 */
tijl 1:63664175e603 66 string getVak();
tijl 1:63664175e603 67
tijl 1:63664175e603 68 /**
tijl 1:63664175e603 69 * @return comments as a string
tijl 1:63664175e603 70 */
tijl 1:63664175e603 71 string getComments();
tijl 1:63664175e603 72
tijl 1:63664175e603 73 /**
tijl 1:63664175e603 74 * @param jsons is a vector of json formated shedules
tijl 1:63664175e603 75 * @return * to the vector of Shed's
tijl 1:63664175e603 76 */
tijl 1:63664175e603 77 static vector<Shed>* getShedVector(vector<string> jsons);
tijl 1:63664175e603 78 };
tijl 1:63664175e603 79 #endif