-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
35 lines (24 loc) · 787 Bytes
/
main.cpp
File metadata and controls
35 lines (24 loc) · 787 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 <bits/stdc++.h>
#include "App.hpp"
#include "EnlaceLayer.hpp"
#include "Logger.hpp"
#include "ParityAlgsTests.hpp"
using namespace std;
int main() {
Logger::logBeginOfLayer("Aplicaçao Transmissora");
string msg{};
while (true) { // Loop para a aplicaçao ficar pedindo input
Logger::logInfo("Digite sua mensagem: ", "INPUT", false);
getline(cin, msg);
if (msg.compare("exit") == 0) {
cout << Logger::red("[EXIT]" + string(20, '=') + "[EXIT]" +
string(20, '=') + "[EXIT]")
<< endl;
break;
}
Logger::blue("Mensagem Recebida: " + msg);
App::appSender(msg);
}
Logger::logEndOfLayer("Aplicaçao Transmissora");
return 0;
}