|
1 | | -#ifndef ROUTECONTROLLER_H |
2 | | -#define ROUTECONTROLLER_H |
| 1 | +// Copyright 2024 Chun-Yao Hsieh @ Columbia University. All rights reserved. |
| 2 | +#ifndef INDIVIDUALMINIPROJECTC___INCLUDE_ROUTECONTROLLER_H_ |
| 3 | +#define INDIVIDUALMINIPROJECTC___INCLUDE_ROUTECONTROLLER_H_ |
3 | 4 |
|
4 | | -#include "crow.h" |
5 | | -#include "Globals.h" |
6 | | -#include "MyFileDatabase.h" |
| 5 | +#include "crow.h" // NOLINT |
| 6 | +#include "Globals.h" // NOLINT |
| 7 | +#include "MyFileDatabase.h" // NOLINT |
7 | 8 |
|
8 | 9 | class RouteController { |
9 | 10 | private: |
10 | 11 | MyFileDatabase* myFileDatabase; |
11 | 12 |
|
12 | 13 | public: |
13 | | - void initRoutes(crow::App<>& app); |
| 14 | + void initRoutes(crow::App<>& app); // NOLINT |
14 | 15 | void setDatabase(MyFileDatabase* db); |
15 | 16 |
|
16 | | - void index(crow::response& res); |
17 | | - void retrieveDepartment(const crow::request& req, crow::response& res); |
18 | | - void retrieveCourse(const crow::request& req, crow::response& res); |
19 | | - void isCourseFull(const crow::request& req, crow::response& res); |
20 | | - void getMajorCountFromDept(const crow::request& req, crow::response& res); |
21 | | - void identifyDeptChair(const crow::request& req, crow::response& res); |
22 | | - void findCourseLocation(const crow::request& req, crow::response& res); |
23 | | - void findCourseInstructor(const crow::request& req, crow::response& res); |
24 | | - void findCourseTime(const crow::request& req, crow::response& res); |
25 | | - void addMajorToDept(const crow::request& req, crow::response& res); |
26 | | - void removeMajorFromDept(const crow::request& req, crow::response& res); |
27 | | - void setEnrollmentCount(const crow::request& req, crow::response& res); |
28 | | - void setCourseLocation(const crow::request& req, crow::response& res); |
29 | | - void setCourseInstructor(const crow::request& req, crow::response& res); |
30 | | - void setCourseTime(const crow::request& req, crow::response& res); |
31 | | - void dropStudentFromCourse(const crow::request&, crow::response& res); |
| 17 | + void index(crow::response& res); // NOLINT |
| 18 | + void retrieveDepartment(const crow::request& req, crow::response& res); // NOLINT |
| 19 | + void retrieveCourse(const crow::request& req, crow::response& res); // NOLINT |
| 20 | + void isCourseFull(const crow::request& req, crow::response& res); // NOLINT |
| 21 | + void getMajorCountFromDept(const crow::request& req, crow::response& res); // NOLINT |
| 22 | + void identifyDeptChair(const crow::request& req, crow::response& res); // NOLINT |
| 23 | + void findCourseLocation(const crow::request& req, crow::response& res); // NOLINT |
| 24 | + void findCourseInstructor(const crow::request& req, crow::response& res); // NOLINT |
| 25 | + void findCourseTime(const crow::request& req, crow::response& res); // NOLINT |
| 26 | + void addMajorToDept(const crow::request& req, crow::response& res); // NOLINT |
| 27 | + void removeMajorFromDept(const crow::request& req, crow::response& res); // NOLINT |
| 28 | + void setEnrollmentCount(const crow::request& req, crow::response& res); // NOLINT |
| 29 | + void setCourseLocation(const crow::request& req, crow::response& res); // NOLINT |
| 30 | + void setCourseInstructor(const crow::request& req, crow::response& res); // NOLINT |
| 31 | + void setCourseTime(const crow::request& req, crow::response& res); // NOLINT |
| 32 | + void dropStudentFromCourse(const crow::request&, crow::response& res); // NOLINT |
32 | 33 | }; |
33 | 34 |
|
34 | | -#endif |
| 35 | +#endif // INDIVIDUALMINIPROJECTC___INCLUDE_ROUTECONTROLLER_H_ |
0 commit comments