powercap.hpp (b5ca101530dc5fa0992d00ab36edb292519cef94) | powercap.hpp (bcef3b4870bd93e6350f952706861bfac79982f4) |
---|---|
1#pragma once 2 3#include "config.h" 4 5#include "occ_status.hpp" 6#include "utils.hpp" 7 8#include <sdbusplus/bus.hpp> 9#include <sdbusplus/bus/match.hpp> 10 | 1#pragma once 2 3#include "config.h" 4 5#include "occ_status.hpp" 6#include "utils.hpp" 7 8#include <sdbusplus/bus.hpp> 9#include <sdbusplus/bus/match.hpp> 10 |
11#include <experimental/filesystem> | 11#include <filesystem> |
12 13namespace open_power 14{ 15namespace occ 16{ 17namespace powercap 18{ 19 --- 74 unchanged lines hidden (view full) --- 94 * 95 * The file is of the form "powerX_cap_user", where X is any 96 * number. 97 * 98 * @param[in] path - The directory to look for the file in 99 * 100 * @return std::string - The filename, or empty string if not found. 101 */ | 12 13namespace open_power 14{ 15namespace occ 16{ 17namespace powercap 18{ 19 --- 74 unchanged lines hidden (view full) --- 94 * 95 * The file is of the form "powerX_cap_user", where X is any 96 * number. 97 * 98 * @param[in] path - The directory to look for the file in 99 * 100 * @return std::string - The filename, or empty string if not found. 101 */ |
102 std::string 103 getPcapFilename(const std::experimental::filesystem::path& path); | 102 std::string getPcapFilename(const std::filesystem::path& path); |
104 105 /** @brief The master occ name */ 106 std::string occMasterName; 107 108 /* @brief OCC Status object */ 109 Status& occStatus; 110 111 /** @brief Used to subscribe to dbus pcap property changes **/ 112 sdbusplus::bus::match_t pcapMatch; 113}; 114 115} // namespace powercap 116 117} // namespace occ 118 119} // namespace open_power | 103 104 /** @brief The master occ name */ 105 std::string occMasterName; 106 107 /* @brief OCC Status object */ 108 Status& occStatus; 109 110 /** @brief Used to subscribe to dbus pcap property changes **/ 111 sdbusplus::bus::match_t pcapMatch; 112}; 113 114} // namespace powercap 115 116} // namespace occ 117 118} // namespace open_power |