PhoenixInkscape  2.0.0
Generate multiple png files with svg inkscape files
phoenix_system.h
Go to the documentation of this file.
1 /***************************************
2  Auteur : Pierre Aubert
3  Mail : pierre.aubert@lapp.in2p3.fr
4  Licence : CeCILL-C
5 ****************************************/
6 
7 #ifndef __PHOENIX_SYSTEM_H__
8 #define __PHOENIX_SYSTEM_H__
9 
10 #include <time.h>
11 #include <chrono>
12 #include <ctime>
13 #include "PPath.h"
14 
15 typedef std::chrono::steady_clock PhoenixClock;
16 typedef std::chrono::nanoseconds PhoenixNs;
17 typedef std::chrono::time_point<PhoenixClock> PhoenixTime;
18 
19 PString phoenix_popen(const PString & command);
20 int phoenix_popen(PString & executionLog, const PString & command);
21 bool phoenix_popen(const PPath & executionLogFile, const PString & command, bool onlyLogOnFail);
22 
23 time_t phoenix_getClock();
24 time_t phoenix_getClockNs();
25 double phoenix_getClockSec();
26 time_t phoenix_getTime();
29 
31 
32 short unsigned int phoenix_getNbColTerminal();
33 short unsigned int phoenix_getNbRowTerminal();
34 
35 #endif
Path of a directory or a file.
Definition: PPath.h:17
Extends the std::string.
Definition: PString.h:16
PString phoenix_getDateCompact()
Get the current date.
time_t phoenix_getTime()
Get the current time of the program.
double phoenix_getClockSec()
Get current time.
short unsigned int phoenix_getNbRowTerminal()
Get the number of rows of the terminal.
std::chrono::nanoseconds PhoenixNs
short unsigned int phoenix_getNbColTerminal()
Get the number of columns of the terminal.
time_t phoenix_getClockNs()
Get current time in nanosecond since the starting of the CPU (steady_clock)
time_t phoenix_getClock()
Get current time.
PString phoenix_getDate()
Get the current date.
std::chrono::time_point< PhoenixClock > PhoenixTime
PString phoenix_popen(const PString &command)
Execute the given command and returns the output of this command.
std::chrono::steady_clock PhoenixClock
PString phoenix_whoami()
Get the name of the current user.