-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCommandExec.cpp
More file actions
53 lines (42 loc) · 894 Bytes
/
CommandExec.cpp
File metadata and controls
53 lines (42 loc) · 894 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
//
// Created by Sierra Kilo on 06-Aug-18.
//
#include "CommandExec.h"
#include "ShutdownCommand.h"
#include <iostream>
#ifdef __WIN32
#include <synchapi.h>
#else
#include <unistd.h>
#endif
using namespace std;
CommandExec::CommandExec() : shutdownCommand() {
}
ShutdownCommand* CommandExec::getShutdownCommandObjPtr() {
return &shutdownCommand;
}
CommandExec::~CommandExec() {
cout << "==========> CommandExec DESTRUCTOR!" << endl;
}
//map<string, string> CommandExec::get_identification_info() {
// string id;
// string ip;
// string status;
// map<string, string> info;
//
// //get computer name
// id = "test_computer_name";
//
// //get computer ip
// ip = "192.168.1.234";
//
// //get computer readiness status
// status = "Ready";
//
// info["id"] = id;
// info["ip"] = ip;
// info["status"] = status;
//
// return info;
//
//}