-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsystem.h
More file actions
46 lines (30 loc) · 821 Bytes
/
system.h
File metadata and controls
46 lines (30 loc) · 821 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
#ifndef SYSTEM_H
#define SYSTEM_H
#include <string>
#include <list>
#include <vector>
#include <fstream>
#include <chrono>
using namespace std;
class System
{
public:
System();
};
string path_join(string x, string y);
// returns true if file at path exists
bool file_exists(string path);
vector<string> child_folders(string folder);
list<string> get_ip_addresses();
string get_first_ip_address();
void mkdir(string folder);
void test_system();
string get_home_folder();
std::vector<std::string> glob(const string& pat);
// returns a formated time string for time point
std::string time_string(std::chrono::system_clock::time_point tp);
// returns a formatted time string for now
string time_string();
chrono::system_clock::time_point time_from_string(string s);
void test_system();
#endif // SYSTEM_H