75 const std::vector < Alarm::DaysOfWeek>& daysOfWeek,
78 const std::string& meridiem,
79 const Vibrate& vibrate
80 const std::string& message
AlarmTime(const int &h, cont int &m)
Definition alarmData.h:3
void changeTime(const AlarmTime &newTime)
change the time of the alarm by creating a new AlarmTime struct after prompting. This method also upd...
Definition alarmData.cpp:46
struct AlarmData::AlarmTime AlarmData(const std::vector< Alarm::DaysOfWeek > &daysOfWeek, const AlarmTime &alarmTime, const bool &on, const std::string &meridiem, const Vibrate &vibrate const std::string &message)
AlarmData constructor takes in all necessary data to build a functional alarm to be stored and used i...
Definition alarmData.cpp:31
void toggleMeridiem()
toggleMeridiem will ch age the string value to AM if currently PM and PM if currently AM....
Definition alarmData.cpp:55
bool toggleOnOff()
toggleOnOff turns the alarm on state to the opposite of what it current is set as
Definition alarmData.cpp:50
void print()
Print specializes in printing the alarm in a user friendly way to the console along with the shortene...
Definition alarmData.cpp:65
int minute
Definition alarmData.h:59
int hour
Definition alarmData.h:58
AlarmTime(const int &h, cont int &m)
Definition alarmData.h:61
bool on
Definition alarmData.h:45
Vibrate(const bool &on, const double &intensity)
Definition alarmData.h:48
double intensity
Definition alarmData.h:46