12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- ///
- /// \file System/HostInfo.hpp
- ///
- /// Support for querying information about a host's configuration.
- ///
- /// \copyright
- /// Copyright (c) 2013-2016 Josh Blum
- /// SPDX-License-Identifier: BSL-1.0
- ///
- #pragma once
- #include <Pothos/Config.hpp>
- #include <cstddef>
- #include <string>
- namespace Pothos {
- namespace System {
- /*!
- * HostInfo contains various OS and network node identification.
- */
- class POTHOS_API HostInfo
- {
- public:
- /*!
- * Create an empty HostInfo
- */
- HostInfo(void);
- /*!
- * Query the node information.
- */
- static HostInfo get(void);
- std::string osName;
- std::string osVersion;
- std::string osArchitecture;
- std::string nodeName;
- std::string nodeId;
- //! The number of CPUs on this system
- size_t processorCount;
- //! The process id of the caller
- std::string pid;
- };
- } //namespace System
- } //namespace Pothos
|