-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathutils.h
More file actions
40 lines (33 loc) · 825 Bytes
/
Copy pathutils.h
File metadata and controls
40 lines (33 loc) · 825 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
#pragma once
#include <vector>
#include <map>
#include <cstdio>
#include <array>
#include <iostream>
#include <fstream>
#include <filesystem>
#include <iomanip>
#include <bits/stdc++.h>
#include <boost/program_options.hpp>
#include <nlohmann/json.hpp>
#define RESET "\033[0m"
#define RED "\033[31m"
#define GREEN "\033[32m"
#define YELLOW "\033[33m"
#define BLUE "\033[34m"
#define BOLD "\033[1m"
#define UNDER "\033[4m"
inline std::filesystem::path root = std::filesystem::canonical("/proc/self/exe").parent_path().parent_path();
struct host_info {
std::string name;
std::string IPv4;
std::string MAC;
};
struct host_output {
std::string name;
std::string IPv4;
std::string MAC;
std::string status; // offline-online
};
void verbose_print(const std::string& msg, bool verbose);
void help_command();