Loading [MathJax]/extensions/tex2jax.js
The Gaudi Framework  master (d98a2936)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 
17 namespace 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
System::Linux::accountName
std::string accountName()
Get the account name of the current user.
Definition: SystemLinux.cpp:110
System::Linux::osName
std::string osName()
Get the operating system's name.
Definition: SystemLinux.cpp:89
System::Linux::machineType
std::string machineType()
Get the runner machine's type.
Definition: SystemLinux.cpp:103
System::Linux::hostName
std::string hostName()
Get the system's host name.
Definition: SystemLinux.cpp:70
System::Linux::cmdLineArgs
std::vector< std::string > cmdLineArgs()
Get the command line arguments of the process.
Definition: SystemLinux.cpp:26
ConditionsStallTest.name
name
Definition: ConditionsStallTest.py:77
System
Note: OS specific details for environment resolution.
Definition: Environment.h:25
System::Linux::osVersion
std::string osVersion()
Get the operating system's version.
Definition: SystemLinux.cpp:96
System::Linux::typeinfoName
std::string typeinfoName(const char *class_name)
Get the human readable type name from a typeinfo name.
Definition: SystemLinux.cpp:50