mirror of
https://github.com/ratspeak/microReticulum
synced 2026-11-27 13:52:14 +00:00
Moved LoRa and UDP test code into `examples` folder. Moved `main.cpp` test app to `examples` folder. Removed platform-specific filesystem code and replaced with an interface to be implemeneted by the consumer.
21 lines
552 B
C++
21 lines
552 B
C++
#pragma once
|
|
|
|
#include <Filesystem.h>
|
|
#include <Bytes.h>
|
|
|
|
class TestFilesystem : public RNS::Filesystem {
|
|
|
|
public:
|
|
TestFilesystem();
|
|
virtual ~TestFilesystem();
|
|
|
|
protected:
|
|
virtual bool file_exists(const char* file_path);
|
|
virtual const RNS::Bytes read_file(const char* file_path);
|
|
virtual bool write_file(const RNS::Bytes& data, const char* file_path);
|
|
virtual bool remove_file(const char* file_path);
|
|
virtual bool rename_file(const char* from_file_path, const char* to_file_path);
|
|
virtual bool create_directory(const char* directory_path);
|
|
|
|
};
|