Lines Matching full:path
21 bool OccDBusSensors::setMaxValue(const std::string& path, double value) in setMaxValue() argument
23 if (path.empty()) in setMaxValue()
28 if (!sensors.contains(path)) in setMaxValue()
31 path, std::make_unique<SensorIntf>(utils::getBus(), path.c_str())); in setMaxValue()
34 sensors.at(path)->maxValue(value); in setMaxValue()
38 double OccDBusSensors::getMaxValue(const std::string& path) const in getMaxValue()
40 if (sensors.find(path) != sensors.end()) in getMaxValue()
42 return sensors.at(path)->maxValue(); in getMaxValue()
48 bool OccDBusSensors::setMinValue(const std::string& path, double value) in setMinValue() argument
50 if (path.empty()) in setMinValue()
55 if (!sensors.contains(path)) in setMinValue()
58 path, std::make_unique<SensorIntf>(utils::getBus(), path.c_str())); in setMinValue()
61 sensors.at(path)->minValue(value); in setMinValue()
65 double OccDBusSensors::getMinValue(const std::string& path) const in getMinValue()
67 if (sensors.find(path) != sensors.end()) in getMinValue()
69 return sensors.at(path)->minValue(); in getMinValue()
75 bool OccDBusSensors::setValue(const std::string& path, double value) in setValue() argument
77 if (path.empty()) in setValue()
82 if (!sensors.contains(path)) in setValue()
85 path, std::make_unique<SensorIntf>(utils::getBus(), path.c_str())); in setValue()
88 sensors.at(path)->value(value); in setValue()
92 double OccDBusSensors::getValue(const std::string& path) const in getValue()
94 if (sensors.find(path) != sensors.end()) in getValue()
96 return sensors.at(path)->value(); in getValue()
102 bool OccDBusSensors::setUnit(const std::string& path, const std::string& value) in setUnit() argument
104 if (path.empty()) in setUnit()
109 if (!sensors.contains(path)) in setUnit()
112 path, std::make_unique<SensorIntf>(utils::getBus(), path.c_str())); in setUnit()
117 sensors.at(path)->unit(SensorIntf::convertUnitFromString(value)); in setUnit()
128 std::string OccDBusSensors::getUnit(const std::string& path) const in getUnit()
130 if (sensors.find(path) != sensors.end()) in getUnit()
134 return SensorIntf::convertUnitToString(sensors.at(path)->unit()); in getUnit()
145 bool OccDBusSensors::setOperationalStatus(const std::string& path, bool value) in setOperationalStatus() argument
147 if (path.empty()) in setOperationalStatus()
152 if (!operationalStatus.contains(path)) in setOperationalStatus()
154 operationalStatus.emplace(path, std::make_unique<OperationalStatusIntf>( in setOperationalStatus()
155 utils::getBus(), path.c_str())); in setOperationalStatus()
158 operationalStatus.at(path)->functional(value); in setOperationalStatus()
162 bool OccDBusSensors::getOperationalStatus(const std::string& path) const in getOperationalStatus()
164 if (operationalStatus.find(path) != operationalStatus.end()) in getOperationalStatus()
166 return operationalStatus.at(path)->functional(); in getOperationalStatus()
173 const std::string& path, const std::vector<std::string>& fTypes) in setChassisAssociation() argument
196 path, std::make_unique<AssociationIntf>(utils::getBus(), path.c_str(), in setChassisAssociation()
233 bool OccDBusSensors::hasDvfsTemp(const std::string& path) const in hasDvfsTemp()
235 return dvfsTemps.find(path) != dvfsTemps.end(); in hasDvfsTemp()
238 void OccDBusSensors::setDvfsTemp(const std::string& path, double value) in setDvfsTemp() argument
240 dvfsTemps[path] = in setDvfsTemp()
241 std::make_unique<SensorIntf>(utils::getBus(), path.c_str()); in setDvfsTemp()
242 dvfsTemps[path]->value(value); in setDvfsTemp()