-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
35 lines (27 loc) · 790 Bytes
/
main.cpp
File metadata and controls
35 lines (27 loc) · 790 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#include <iostream>
#include <string>
#include "Lamp.h"
#include "Source.h"
#include "View.h"
int main()
{
// this allows the program to run
bool run = true;
// this sets up all the classes so that the program runs
Lamp* lampy = new Lamp("lampy");
File* spec = new File(lampy,0,"../../html/LampHTML/LampData.dat");
lampy->attach(spec);
Wifi* wif = new Wifi(lampy,0,0,0);
lampy->attach(wif);
Server* sev = new Server(lampy,0,"db525534725.db.1and1.com","dbo525534725","lcar1990");
lampy->attach(sev);
// so while the program runs it will go through the list and check all the updates
while(run){
lampy->checker();
}
// deletes the classes after wards
delete sev;
delete wif;
delete spec;
delete lampy;
}