util.hpp (b228cea2faa676f70e84f0b3b4fc9e422cf4f8d9) util.hpp (31058fd3fcc5b8b2d09282d89cef64a18e20b5da)
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

--- 27 unchanged lines hidden (view full) ---

36const std::string propertiesintf = "org.freedesktop.DBus.Properties";
37
38/*
39 * Given a path that optionally has a glob portion, fill it out.
40 */
41std::string FixupPath(std::string original);
42
43/*
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

--- 27 unchanged lines hidden (view full) ---

36const std::string propertiesintf = "org.freedesktop.DBus.Properties";
37
38/*
39 * Given a path that optionally has a glob portion, fill it out.
40 */
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);
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/*
44 * Dump active configuration.
45 */
46void debugPrint(const std::map<std::string, conf::SensorConfig>& sensorConfig,
47 const std::map<int64_t, conf::PIDConf>& zoneConfig,
48 const std::map<int64_t, conf::ZoneConfig>& zoneDetailsConfig);
49
50} // namespace pid_control
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