trigger_factory.cpp (94f71c5190b64bb47aa34cdce4eb4cca71d36faa) | trigger_factory.cpp (b4ef22e4d365bde35a7fce7950033c9271c68ce7) |
---|---|
1#include "trigger_factory.hpp" 2 3#include "discrete_threshold.hpp" 4#include "numeric_threshold.hpp" 5#include "on_change_threshold.hpp" 6#include "sensor.hpp" 7#include "trigger.hpp" 8#include "trigger_actions.hpp" --- 213 unchanged lines hidden (view full) --- 222 223 auto reportIds = std::make_shared<std::vector<std::string>>(reportIdsIn); 224 225 updateThresholds(thresholds, triggerActions, reportIds, sensors, 226 labeledThresholdParams); 227 228 return std::make_unique<Trigger>( 229 bus->get_io_context(), objServer, id, name, triggerActions, reportIds, | 1#include "trigger_factory.hpp" 2 3#include "discrete_threshold.hpp" 4#include "numeric_threshold.hpp" 5#include "on_change_threshold.hpp" 6#include "sensor.hpp" 7#include "trigger.hpp" 8#include "trigger_actions.hpp" --- 213 unchanged lines hidden (view full) --- 222 223 auto reportIds = std::make_shared<std::vector<std::string>>(reportIdsIn); 224 225 updateThresholds(thresholds, triggerActions, reportIds, sensors, 226 labeledThresholdParams); 227 228 return std::make_unique<Trigger>( 229 bus->get_io_context(), objServer, id, name, triggerActions, reportIds, |
230 std::move(thresholds), triggerManager, triggerStorage, *this, sensors); | 230 std::move(thresholds), triggerManager, triggerStorage, *this, sensors, 231 reportManager); |
231} 232 233Sensors TriggerFactory::getSensors( 234 const std::vector<LabeledSensorInfo>& labeledSensorsInfo) const 235{ 236 Sensors sensors; 237 updateSensors(sensors, labeledSensorsInfo); 238 return sensors; --- 76 unchanged lines hidden --- | 232} 233 234Sensors TriggerFactory::getSensors( 235 const std::vector<LabeledSensorInfo>& labeledSensorsInfo) const 236{ 237 Sensors sensors; 238 updateSensors(sensors, labeledSensorsInfo); 239 return sensors; --- 76 unchanged lines hidden --- |