arduino-audio-tools
Public Member Functions | Protected Attributes | List of all members
File Class Reference

Arduino File support using std::fstream. More...

#include <File.h>

Inheritance diagram for File:
Stream Print

Public Member Functions

 File (const char *fn)
 
 File (const File &file)
 
virtual int available () override
 
virtual int availableForWrite ()
 
virtual bool begin ()
 
void close ()
 
virtual void end ()
 
virtual void flush () override
 
const char * name () const
 
void open (const char *name, FileMode mode)
 
 operator bool ()
 
Fileoperator= (File file)
 
virtual int peek () override
 
size_t position ()
 
virtual int print (const char *str)
 
virtual int print (int number)
 
virtual int println (const char *str="")
 
virtual int println (int number)
 
virtual int read () override
 
virtual size_t readBytes (uint8_t *data, size_t len) override
 
bool seek (uint32_t pos)
 
bool seek (uint32_t pos, SeekMode mode)
 
size_t size () const
 
virtual size_t write (const uint8_t *data, size_t len)
 
virtual size_t write (int32_t value)
 
virtual void write (uint8_t *str, int len)
 
virtual size_t write (uint8_t value) override
 

Protected Attributes

int _timeout = 10
 
const char * file_path =nullptr
 
bool is_read =true
 
std::fstream stream
 

Detailed Description

Arduino File support using std::fstream.

Author
Phil Schatzmann

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