util.hpp (31058fd3fcc5b8b2d09282d89cef64a18e20b5da) | util.hpp (3f0f7bc35831d467d912698dc5dbd9dcf9ad10f3) |
---|---|
1#pragma once 2 3#include "conf.hpp" 4#include "pid/ec/pid.hpp" 5 6#include <phosphor-logging/log.hpp> 7#include <sdbusplus/bus.hpp> 8 --- 32 unchanged lines hidden (view full) --- 41std::string FixupPath(std::string original); 42 43/* 44 * Splice together two vectors, "Inputs" and "TempToMargin" from JSON, 45 * into one vector of SensorInput structures containing info from both. 46 */ 47std::vector<conf::SensorInput> 48 spliceInputs(const std::vector<std::string>& inputNames, | 1#pragma once 2 3#include "conf.hpp" 4#include "pid/ec/pid.hpp" 5 6#include <phosphor-logging/log.hpp> 7#include <sdbusplus/bus.hpp> 8 --- 32 unchanged lines hidden (view full) --- 41std::string FixupPath(std::string original); 42 43/* 44 * Splice together two vectors, "Inputs" and "TempToMargin" from JSON, 45 * into one vector of SensorInput structures containing info from both. 46 */ 47std::vector<conf::SensorInput> 48 spliceInputs(const std::vector<std::string>& inputNames, |
49 const std::vector<double>& inputTempToMargin); | 49 const std::vector<double>& inputTempToMargin, 50 const std::vector<std::string>& missingAcceptableNames); |
50 51/* 52 * Recovers the original "Inputs" vector from spliceInputs(). 53 */ 54std::vector<std::string> 55 splitNames(const std::vector<conf::SensorInput>& sensorInputs); 56 57/* 58 * Dump active configuration. 59 */ 60void debugPrint(const std::map<std::string, conf::SensorConfig>& sensorConfig, 61 const std::map<int64_t, conf::PIDConf>& zoneConfig, 62 const std::map<int64_t, conf::ZoneConfig>& zoneDetailsConfig); 63 64} // namespace pid_control | 51 52/* 53 * Recovers the original "Inputs" vector from spliceInputs(). 54 */ 55std::vector<std::string> 56 splitNames(const std::vector<conf::SensorInput>& sensorInputs); 57 58/* 59 * Dump active configuration. 60 */ 61void debugPrint(const std::map<std::string, conf::SensorConfig>& sensorConfig, 62 const std::map<int64_t, conf::PIDConf>& zoneConfig, 63 const std::map<int64_t, conf::ZoneConfig>& zoneDetailsConfig); 64 65} // namespace pid_control |