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.
17 lines
279 B
17 lines
279 B
4 years ago
|
#include "file_sensor.h"
|
||
|
|
||
5 years ago
|
#include <string>
|
||
|
|
||
3 years ago
|
FileSensor::FileSensor(std::string filename) : file(filename) {}
|
||
5 years ago
|
|
||
|
int FileSensor::init() {
|
||
|
return file.is_open() ? 0 : 1;
|
||
|
}
|
||
|
|
||
4 years ago
|
FileSensor::~FileSensor() {
|
||
5 years ago
|
file.close();
|
||
|
}
|
||
3 years ago
|
|
||
|
bool FileSensor::has_interrupt_enabled() {
|
||
|
return false;
|
||
|
}
|