I have thought about some features to add to the GradeBook, since the current goals are a bit far away (it requires a lot of base before adding more complex things such as authentication, server, permissions, etc.) and I added a nice querying feature, where you can do the following:
Query a single student/teacher/assignment by their ID
Query a single grade given the student and assignment IDs
Query all available students/teachers/assignments/grades
Query all grades belonging to a single student
Query all grades belonging to a single assignment
Since we do not have any testing framework yet, I have added those test cases to the main program, where you can choose them as options (option 1000 onwards, they are marked as [TEST]). Feel free to test them with the CSV data in assets/. Just make sure to load the required data before querying:
This feature will be useful when we have a server interface, where there will be a constant need for querying the data and sending it to the users.
I am also using exceptions as error handling. Let me know if that is a problem for you, some code styles do not like the C++ exception handling such as the Google C++ Style Guide.
VSCode also forced me to follow a code style (brackets on the next line) so I applied that style to all CPP/H files.
Hello, I am back!
I have thought about some features to add to the GradeBook, since the current goals are a bit far away (it requires a lot of base before adding more complex things such as authentication, server, permissions, etc.) and I added a nice querying feature, where you can do the following:
Since we do not have any testing framework yet, I have added those test cases to the main program, where you can choose them as options (option 1000 onwards, they are marked as [TEST]). Feel free to test them with the CSV data in
assets/
. Just make sure to load the required data before querying:This feature will be useful when we have a server interface, where there will be a constant need for querying the data and sending it to the users.
I am also using exceptions as error handling. Let me know if that is a problem for you, some code styles do not like the C++ exception handling such as the Google C++ Style Guide.
VSCode also forced me to follow a code style (brackets on the next line) so I applied that style to all CPP/H files.