This project is a C++ implementation of a Smart Home Management System (SHMS). The system allows users to add and control devices, manage user authentication, switch between manual and automatic modes, and send alerts.
The project consists of the following files:
main.cpp
: Entry point of the application.device.h
: Declaration of theDevice
class.device.cpp
: Definition of theDevice
class.sensor.h
: Declaration of theSensor
class, which inherits fromDevice
.sensor.cpp
: Definition of theSensor
class.user.h
: Declaration of theUser
class.user.cpp
: Definition of theUser
class.shms.h
: Declaration of theSHMS
class (the core system).shms.cpp
: Definition of theSHMS
class.mode.h
: Declaration of theMode
class and its derivatives (ManualMode
andAutomaticMode
).mode.cpp
: Definition of theMode
class and its derivatives.alertsystem.h
: Declaration of theAlertSystem
class.alertsystem.cpp
: Definition of theAlertSystem
class.auth.h
: Declaration of theAuthentication
class.auth.cpp
: Definition of theAuthentication
class.Makefile
: Build script to compile the project.
- A C++ compiler (e.g., g++)
- Make utility (if using the provided Makefile)
To build the project using the provided Makefile, follow these steps:
-
Open a terminal and navigate to the directory containing the source code and Makefile.
-
Run the make command:
make
This will compile all the source files and generate an executable named
shms
.
After building the project, you can run the program with the following command:
./shms