DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
The OksSystem package

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).

File Classes

The file classes offer tools to manipulate safely files, this includes:

  • file name and path manipulation (finding canonical path, short name, extension, parent directory)
  • file manipulation (creation of files, directory, removing of files, symbolic links).
  • creation of stream of file-descriptors

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.

See also
OksSystem::File
OksSystem::MapFile
OksSystem::Executable

Environment Variables

The OksSystem::Environment class gives utility method to set and get the content of environment variables safely.

See also
OksSystem::Environment

Process

The OksSystem::Process class encapsulates a running Unix process. It offers methods to send it signals and wait for its termination.

See also
OksSystem::Process

Descriptor

The OksSystem::Descriptor class offers method to manipulate a Unix file-descriptor / socket.

See also
OksSystem::Descriptor

Host

The OksSystem::Host class gives tools to manipulate hostnames it offers the following features:

  • hostname to ip translation
  • hostname to fully qualified hostname
  • ip to hostname

The LocalHost subclass also gives basic tool to query local host information, like

  • operating okssystem information
  • hardware plateform
  • machine description
See also
OksSystem::Host
OksSystem::LocalHost

User

The OksSystem::User class gives tool to manipulate user information, like resolving UIDs to names, find the home directory, etc.

See also
OksSystem::User

ERS streams

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.

See also
OksSystem::STLStream
OksSystem::SyslogStream