Less idiotic includes
[minishell-2.git] / Headers / opsys.h
blob24ecfd8e9c4466f916c00737b78f6665d7970549
1 #ifndef OPSYS_H
2 #define OPSYS_H
4 #include "input.h"
5 #include <csignal> // struct sigaction, sigaction, SIGINT, SIGHUP
6 #include <iostream> // std::cin, std::cout, printf, fprintf
7 extern bool exit_program;
9 /*!
10 * \class SignalHandler
11 * \brief Handles SIGHUP and SIGINT signals.
13 class SignalHandler
15 struct sigaction signal_action;
16 public:
17 /*!
18 * \brief Constructor for SignalHandler. Handles SIGHUP and SIGINT signals.
20 SignalHandler();
23 class OpSys
25 string get_cwd();
26 public:
27 string username; // Username
28 string hostname; // User's hostname
29 string cwd; // Current working directory
30 OpSys();
31 void change_dir(vector<string>);
32 short int simple_command(vector<string>);
35 extern OpSys OS;
37 #endif // OPSYS_H