You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
399 B
16 lines
399 B
8 years ago
|
#pragma once
|
||
|
|
||
|
#include "AP_LeakDetector.h"
|
||
|
|
||
|
class AP_LeakDetector_Backend {
|
||
|
public:
|
||
|
AP_LeakDetector_Backend(AP_LeakDetector &_leak_detector, AP_LeakDetector::LeakDetector_State &_state);
|
||
|
|
||
|
// Each backend type must provide an implementation to read the sensor
|
||
|
virtual void read(void) = 0;
|
||
|
|
||
|
protected:
|
||
|
AP_LeakDetector &leak_detector;
|
||
|
AP_LeakDetector::LeakDetector_State &state;
|
||
|
};
|