#include </home/runner/work/tfel/tfel/include/TFEL/System/System.hxx>
|
| static void | throwSystemError (const std::string &, const int) |
| static void | mkdir (const std::string &, const mode_t=S_IRWXU|S_IRWXG) |
| static void | unlink (const std::string &) |
| static void | rmdir (const std::string &) |
|
static void | write (const int, const void *const, size_t) |
| static void | read (const int, void *const, size_t) |
| | read exactly the given number of bytes
|
| static void | copy (const std::string &, const std::string &) |
| static std::string | getAbsolutePath (const std::string &) |
|
static void | changeCurrentWorkingDirectory (const std::string &) |
|
static std::string | getCurrentWorkingDirectory () |
|
static std::string | getUserName () |
|
static std::string | getHostName () |
This structure contains C++ wrapping over many posix system call.
◆ copy()
| void tfel::system::systemCall::copy |
( |
const std::string & | , |
|
|
const std::string & | ) |
|
static |
copy a file or a directory. This command is equivalent to the shell command 'cp -R'.
- Parameters
-
| [in] | src. | |
| [in] | destination. | |
◆ getAbsolutePath()
| std::string tfel::system::systemCall::getAbsolutePath |
( |
const std::string & | | ) |
|
|
static |
- Returns
- the absolute path of a file or a directory (this is a simple wrapper around ::realpath).
- Parameters
-
◆ mkdir()
| void tfel::system::systemCall::mkdir |
( |
const std::string & | , |
|
|
const mode_t | = S_IRWXU|S_IRWXG ) |
|
static |
create one or more directories. This command is equivalent to the shell command 'mkdir -p'.
- Parameters
-
| [in] | path | to be created. |
| const | mode_t, opening mode. |
◆ read()
| void tfel::system::systemCall::read |
( |
const int | , |
|
|
void * const | , |
|
|
size_t | ) |
|
static |
read exactly the given number of bytes
- Exceptions
-
◆ rmdir()
| void tfel::system::systemCall::rmdir |
( |
const std::string & | | ) |
|
|
static |
◆ throwSystemError()
| void tfel::system::systemCall::throwSystemError |
( |
const std::string & | , |
|
|
const int | ) |
|
static |
An helper function to convert errno values to C++ exceptions.
- Parameters
-
| [in] | a | description of the error. |
| const | int, value of errno. |
◆ unlink()
| void tfel::system::systemCall::unlink |
( |
const std::string & | | ) |
|
|
static |
The documentation for this struct was generated from the following file: