Extract general File class from LogFile.

This commit is contained in:
Jared Boone 2016-01-17 14:20:02 -08:00
parent 1aa391bac8
commit fc7a7d753d
5 changed files with 132 additions and 31 deletions

View file

@ -24,7 +24,7 @@
#include <string>
#include "ff.h"
#include "file.hpp"
#include "sd_card.hpp"
#include "lpc43xx_cpp.hpp"
@ -35,8 +35,6 @@ public:
LogFile(const std::string file_path);
~LogFile();
bool open();
bool close();
bool is_ready();
bool write_entry(const rtc::RTC& datetime, const std::string& entry);
@ -44,7 +42,7 @@ public:
private:
const std::string file_path;
FIL f;
File file;
SignalToken sd_card_status_signal_token;