Timer Console
Loading...
Searching...
No Matches
main.cpp File Reference
#include <iostream>
#include "./Timer/timer.h"
#include "./Alarm/alarm.h"
Include dependency graph for main.cpp:

Enumerations

enum  AppFunction { ALARM = 1 , STOPWATCH = 2 , TIMER = 3 , QUIT = 4 }
 

Functions

void branchApp (const int &selection)
 predefined functions @params selection is queried from the user to choose which functionality they want. Alarm, timer, stopwatch...
 
void printMenu ()
 
int takeInput ()
 Instruct user to select a valid functionality via integer to map to local ENUM.
 
void reset ()
 
void handleAlarm ()
 
void handleTimer ()
 
int main ()
 

Enumeration Type Documentation

◆ AppFunction

Enumerator
ALARM 
STOPWATCH 
TIMER 
QUIT 

Function Documentation

◆ branchApp()

void branchApp ( const int & selection)

predefined functions @params selection is queried from the user to choose which functionality they want. Alarm, timer, stopwatch...

Take user selection and branch it to create the correct class instance.

See also
branchApp()

◆ handleAlarm()

void handleAlarm ( )

◆ handleTimer()

void handleTimer ( )

◆ main()

int main ( )

◆ printMenu()

void printMenu ( )

◆ reset()

void reset ( )

◆ takeInput()

int takeInput ( )

Instruct user to select a valid functionality via integer to map to local ENUM.

See also
AppFunction eg: alarm, timer, stopwatch