arduino-emulator
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
File Class Reference

C++ std based emulatoion ofr File. More...

#include <SD.h>

Inheritance diagram for File:

Public Member Functions

int available () override
 
int availableForWrite () override
 
bool close ()
 
int dirIndex ()
 
void flush () override
 
void getName (char *str, size_t len)
 
bool isDir ()
 
bool isDirectory ()
 
bool isHidden ()
 
bool isOpen ()
 
const char * name ()
 
bool open (const char *name, int flags)
 
bool openNext (File &dir, int flags=O_RDONLY)
 
File openNextFile ()
 
 operator bool ()
 
int peek () override
 
size_t position ()
 
int read () override
 
size_t read (uint8_t *buffer, size_t length)
 
size_t readBytes (char *buffer, size_t length)
 
bool rewind ()
 
void rewindDirectory ()
 
bool seek (size_t pos)
 
size_t size ()
 
size_t write (const uint8_t *buffer, size_t size) override
 
size_t write (uint8_t ch) override
 

Protected Member Functions

std::ios_base::openmode toMode (int flags)
 

Protected Attributes

std::filesystem::path dir_path
 
std::fstream file
 
std::string filename = ""
 
struct stat info
 
bool is_dir = false
 
std::filesystem::directory_iterator iterator
 
int pos = 0
 
size_t size_bytes = 0
 

Detailed Description

C++ std based emulatoion ofr File.


The documentation for this class was generated from the following file: