Teuchos Package Browser (Single Doxygen Collection)
Version of the Day
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
core
src
Teuchos_SystemInformation.hpp
Go to the documentation of this file.
1
// @HEADER
2
// *****************************************************************************
3
// Teuchos: Common Tools Package
4
//
5
// Copyright 2004 NTESS and the Teuchos contributors.
6
// SPDX-License-Identifier: BSD-3-Clause
7
// *****************************************************************************
8
// @HEADER
9
10
#ifndef TEUCHOS_SYSTEMINFORMATION_HPP
11
#define TEUCHOS_SYSTEMINFORMATION_HPP
12
26
27
#include <map>
28
#include <string>
29
30
namespace
Teuchos::SystemInformation {
31
33
bool
commandIsAvailable
(
const
std::string &command);
34
36
std::string
runCommandAndCaptureOutput
(
const
std::string &command);
37
38
enum
RegistrationResult
{
REGISTERED
,
ALREADY_PRESENT
,
FAILURE
};
39
41
RegistrationResult
registerEnvironmentVariable
(
const
std::string &variableName);
42
45
void
registerAllPrefixedVariables
(
const
std::string &prefix);
46
48
RegistrationResult
49
registerCommand
(
const
std::string &commandLabel,
50
const
std::string &commandToRunAndCapture =
""
,
51
const
std::string &commandToCheckForExistence =
""
);
52
54
void
initializeCollection
();
55
57
std::map<std::string, std::string>
collectSystemInformation
();
58
59
}
// namespace Teuchos::SystemInformation
60
61
#endif
Teuchos::SystemInformation::registerEnvironmentVariable
RegistrationResult registerEnvironmentVariable(const std::string &variableName)
Register an environment variable that should be tracked.
Definition:
Teuchos_SystemInformation.cpp:68
Teuchos::SystemInformation::RegistrationResult
RegistrationResult
Definition:
Teuchos_SystemInformation.hpp:38
Teuchos::SystemInformation::initializeCollection
void initializeCollection()
Track commonly used environment variables and commands.
Definition:
Teuchos_SystemInformation.cpp:138
Teuchos::SystemInformation::ALREADY_PRESENT
Definition:
Teuchos_SystemInformation.hpp:38
Teuchos::SystemInformation::REGISTERED
Definition:
Teuchos_SystemInformation.hpp:38
Teuchos::SystemInformation::registerCommand
RegistrationResult registerCommand(const std::string &commandLabel, const std::string &commandToRunAndCapture, const std::string &commandToCheckForExistence)
Register a command.
Definition:
Teuchos_SystemInformation.cpp:104
Teuchos::SystemInformation::registerAllPrefixedVariables
void registerAllPrefixedVariables(const std::string &prefix)
Definition:
Teuchos_SystemInformation.cpp:82
Teuchos::SystemInformation::commandIsAvailable
bool commandIsAvailable(const std::string &command)
Check whether a command is available on the system.
Definition:
Teuchos_SystemInformation.cpp:44
Teuchos::SystemInformation::runCommandAndCaptureOutput
std::string runCommandAndCaptureOutput(const std::string &command)
Run a command and capture its output.
Definition:
Teuchos_SystemInformation.cpp:49
Teuchos::SystemInformation::FAILURE
Definition:
Teuchos_SystemInformation.hpp:38
Teuchos::SystemInformation::collectSystemInformation
std::map< std::string, std::string > collectSystemInformation()
Collect information about the system.
Definition:
Teuchos_SystemInformation.cpp:240
Generated by
1.8.5