DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
The OksSystem package contains C++ wrappers for POSIX functions and general utility classes. The objects all use safe types (i.e STL strings) and throw ERS issues in case of error. The goal is to have Drop-in remplacements for often used calls (like the okssystem
call). The package also offers ERS Issues to represent POSIX error code (i.e the content or errno).
The file classes offer tools to manipulate safely files, this includes:
OksSystem::Executable is a subclass of OksSystem::File that implements functionalities to manipulate executable file and start them with different parameters.
OksSystem::MapFile is a subclass of OksSystem::File that implements functionalities to manipulate memory mapped files.
The OksSystem::Environment class gives utility method to set and get the content of environment variables safely.
The OksSystem::Process class encapsulates a running Unix process. It offers methods to send it signals and wait for its termination.
The OksSystem::Descriptor class offers method to manipulate a Unix file-descriptor / socket.
The OksSystem::Host class gives tools to manipulate hostnames it offers the following features:
The LocalHost subclass also gives basic tool to query local host information, like
The OksSystem::User class gives tool to manipulate user information, like resolving UIDs to names, find the home directory, etc.
The OksSystem package offers a certain number of additional streams for the ERS okssystem. The two main area are streams to write into files and STL streams and the syslog stream.