Skip to content

Commit 73d67bb

Browse files
Ryan LargeRyan Large
authored andcommitted
Doxygen In Files
1 parent 69aa68b commit 73d67bb

File tree

4 files changed

+23
-3
lines changed

4 files changed

+23
-3
lines changed

Alarm/alarmData.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ SOFTWARE.
2727
#include <vector>
2828
#include <iostream>
2929

30+
// Initialize all AlarmData variables upon creation
3031
AlarmData::AlarmData(
3132
const std::vector < Alarm::DaysOfWeek>& daysOfWeek,
3233
const AlarmData::AlarmTime& alarmTime,
@@ -50,6 +51,7 @@ void AlarmData::toggleOnOff() {
5051
this->on = !this->on;
5152
}
5253

54+
// Plus or minus hours, for program purpose only. Not display purpose
5355
void AlarmData::toggleMeridiem() {
5456
if (this->meridiem == "AM") {
5557
this->meridiem = "PM";

Alarm/alarmData.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class AlarmData {
3737

3838
/**
3939
* @brief Vibrate struct provides more customization over how the device will react to an alarm being triggered
40-
* @param on: Boolean discribing if the alarm should or should not vibrate when triggered
40+
* @param on: Boolean describing if the alarm should or should not vibrate when triggered
4141
* @note The application will automatically set on to false if the device does not support vibration
4242
* @param intensity: Double to describe how intense the vibration should be
4343
*/
@@ -64,7 +64,7 @@ class AlarmData {
6464

6565
/**
6666
* @brief AlarmData constructor takes in all necessary data to build a functional alarm to be stored and used in the app
67-
* @param daysOfWeek: Vector of integers corrolating to the days of the week an alarm will be triggered on
67+
* @param daysOfWeek: Vector of integers correlating to the days of the week an alarm will be triggered on
6868
* @param alarmTime: @see AlarmTime struct. Gives the hour and minute the alarm should be triggered
6969
* @param on: Boolean indicating if the alarm is active or not
7070
* @param meridiem: String indicating if the alarm is for AM or PM. Used only when creating an alarm and when showing the user

Config/files.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ SOFTWARE.
3131
#include "../Timer/timerData.h"
3232
#include "../includes/nlohmann/json.hpp"
3333

34+
/**
35+
* @brief For better readability and development process
36+
*/
3437
using json = nlohmann::json;
3538

3639
Files::Files() {}

Config/files.h

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,31 @@ SOFTWARE.
3939
#include <shlobj.h>
4040
#endif
4141

42-
42+
/**
43+
* @brief Files class introduces an abstraction of the filesystem api, and json parsing. This class handles reading and writing to JSON configuration files for the persistent data (Alarms, Timers, Stopwatches) within the application.
44+
*/
4345
class Files {
4446
public:
47+
/**
48+
* @brief Files constructor takes in no parameters and executes no initializing logic
49+
*/
4550
Files();
4651

4752
// Timer Methods
53+
/**
54+
* @brief getTimers takes in no parameters. This method is made to fetch timers stored from a configuration file
55+
which is either existing or being created by the application and returns them to the caller of the method or an empty vector
56+
* @return A vector of TimerData structures. @see TimerData
57+
*/
4858
std::vector < TimerData > getTimers();
4959
void saveTimers(const std::vector<TimerData>& times);
5060

5161
// Alarm Methods
62+
/**
63+
* @brief getAlarms takes in no parameters. This method is made to fetch alarms from a configuration file
64+
which is either existing or being created by the application and returns them to the caller of the method or an empty vector
65+
* @return A vector of AlarmData structures. @see AlarmData
66+
*/
5267
std::vector<AlarmData> getAlarms();
5368

5469
protected:

0 commit comments

Comments
 (0)