The Gaudi Framework  master (82fdf313)
Loading...
Searching...
No Matches
SystemLinux.h
Go to the documentation of this file.
1/***********************************************************************************\
2* (c) Copyright 1998-2025 CERN for the benefit of the LHCb and ATLAS collaborations *
3* *
4* This software is distributed under the terms of the Apache version 2 licence, *
5* copied verbatim in the file "LICENSE". *
6* *
7* In applying this licence, CERN does not waive the privileges and immunities *
8* granted to it by virtue of its status as an Intergovernmental Organization *
9* or submit itself to any jurisdiction. *
10\***********************************************************************************/
11// Dear emacs, this is -*- c++ -*-
12#pragma once
13
14#include <string>
15#include <vector>
16
17namespace System {
19 namespace Linux {
20
22 std::vector<std::string> cmdLineArgs();
23
25 std::string typeinfoName( const char* name );
26
28 std::string hostName();
29
31 std::string osName();
32
34 std::string osVersion();
35
37 std::string machineType();
38
40 std::string accountName();
41
42 } // namespace Linux
43
45 namespace Platform = Linux;
46
47} // namespace System
Namespace holding Linux specific functions.
std::string typeinfoName(const char *class_name)
Get the human readable type name from a typeinfo name.
std::string accountName()
Get the account name of the current user.
std::vector< std::string > cmdLineArgs()
Get the command line arguments of the process.
std::string machineType()
Get the runner machine's type.
std::string osVersion()
Get the operating system's version.
std::string osName()
Get the operating system's name.
std::string hostName()
Get the system's host name.
Note: OS specific details for environment resolution.
Definition Environment.h:25