-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathyks.h
59 lines (47 loc) · 1.58 KB
/
yks.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#ifndef __YKS_H__
#define __YKS_H__
#include <string>
#include <vector>
#include <nlohmann/json.hpp>
#include <cpr/cpr.h>
using json = nlohmann::json;
class Yks {
public:
Yks(int diploma, /*bool kirikOBP*/ int ttd, int tmd, int tsd, int tfd,
int tty, int tmy, int tsy, int tfy, int md, int fd, int kd, int bd,
int my, int fy, int ky, int by);
Yks(std::string str);
// Math-Science methods
std::string getPlacementRanking() const;
std::string getPlacementRankingByYear(int year) const;
std::string getPureRanking() const;
std::string getPureRankingByYear(int year) const;
std::string getPlacementPoint() const;
std::string getPurePoint() const;
// Only TYT
std::string getTytPlacementRanking() const;
std::string getTytPlacementRankingByYear(int year) const;
std::string getTytPureRanking() const;
std::string getTytPureRankingByYear(int year) const;
std::string getTytPlacementPoint() const;
std::string getTytPurePoint() const;
// Low level stuff & some helper methods
bool isProblematic();
bool isNumeric(const std::string &s);
void parseExamArgs(const std::string &s);
void parseCourseArgs();
private:
bool problematic;
std::string placementRanking;
std::string pureRanking;
std::string placementPoint;
std::string purePoint;
std::string TytPlacementRanking;
std::string TytPureRanking;
std::string TytPlacementPoint;
std::string TytPurePoint;
json apiResult;
std::vector<std::string> examArgs;
std::vector<std::string> courseArgs;
};
#endif // __YKS_H__