ESP3D  3.0
Firmware for ESP boards connected to 3D Printer
ESP_File Class Reference

#include <esp_filesystem.h>

Public Member Functions

 ESP_File (void *handle=nullptr, bool isdir=false, bool iswritemode=false, const char *path=nullptr)
 
 ESP_File (const char *name, const char *filename, bool isdir=true, size_t size=0)
 
 ~ESP_File ()
 
 operator bool () const
 
bool isDirectory ()
 
const char * name () const
 
const char * filename () const
 
void close ()
 
bool isOpen ()
 
ESP_Fileoperator= (const ESP_File &other)
 
size_t size ()
 
time_t getLastWrite ()
 
int available ()
 
size_t write (uint8_t i)
 
size_t write (const uint8_t *buf, size_t size)
 
int read ()
 
size_t read (uint8_t *buf, size_t size)
 
void flush ()
 
ESP_File openNextFile ()
 

Detailed Description

Definition at line 30 of file esp_filesystem.h.

Constructor & Destructor Documentation

◆ ESP_File() [1/2]

ESP_File::ESP_File ( void *  handle = nullptr,
bool  isdir = false,
bool  iswritemode = false,
const char *  path = nullptr 
)

◆ ESP_File() [2/2]

ESP_File::ESP_File ( const char *  name,
const char *  filename,
bool  isdir = true,
size_t  size = 0 
)

Definition at line 90 of file esp_filesystem.cpp.

Here is the call graph for this function:

◆ ~ESP_File()

ESP_File::~ESP_File ( )

Definition at line 103 of file esp_filesystem.cpp.

Member Function Documentation

◆ available()

int ESP_File::available ( )

Definition at line 148 of file esp_filesystem.cpp.

Here is the caller graph for this function:

◆ close()

void ESP_File::close ( )
Here is the caller graph for this function:

◆ filename()

const char * ESP_File::filename ( ) const

Definition at line 128 of file esp_filesystem.cpp.

Here is the caller graph for this function:

◆ flush()

void ESP_File::flush ( )

Definition at line 188 of file esp_filesystem.cpp.

Here is the caller graph for this function:

◆ getLastWrite()

time_t ESP_File::getLastWrite ( )

Definition at line 143 of file esp_filesystem.cpp.

Here is the caller graph for this function:

◆ isDirectory()

bool ESP_File::isDirectory ( )

Definition at line 133 of file esp_filesystem.cpp.

Here is the caller graph for this function:

◆ isOpen()

bool ESP_File::isOpen ( )

Definition at line 118 of file esp_filesystem.cpp.

Here is the caller graph for this function:

◆ name()

const char * ESP_File::name ( ) const

Definition at line 123 of file esp_filesystem.cpp.

Here is the caller graph for this function:

◆ openNextFile()

ESP_File ESP_File::openNextFile ( )
Here is the caller graph for this function:

◆ operator bool()

ESP_File::operator bool ( ) const

Definition at line 108 of file esp_filesystem.cpp.

◆ operator=()

ESP_File & ESP_File::operator= ( const ESP_File other)

Definition at line 196 of file esp_filesystem.cpp.

◆ read() [1/2]

int ESP_File::read ( )

Definition at line 172 of file esp_filesystem.cpp.

Here is the caller graph for this function:

◆ read() [2/2]

size_t ESP_File::read ( uint8_t *  buf,
size_t  size 
)

Definition at line 180 of file esp_filesystem.cpp.

Here is the call graph for this function:

◆ size()

size_t ESP_File::size ( )

Definition at line 138 of file esp_filesystem.cpp.

Here is the caller graph for this function:

◆ write() [1/2]

size_t ESP_File::write ( const uint8_t *  buf,
size_t  size 
)

Definition at line 164 of file esp_filesystem.cpp.

Here is the call graph for this function:

◆ write() [2/2]

size_t ESP_File::write ( uint8_t  i)

Definition at line 156 of file esp_filesystem.cpp.

Here is the caller graph for this function:

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