75 inline bool eof ()
const {
76 return this->m_length == this->m_ptr;
116 return this->m_error;
123 :
File(fs, name, buffer, logger) {
Interface for all classes capable of printing.
virtual PropWare::ErrorCode safe_get_char(char &c)=0
Read a character from the file.
Interface for all filesystems, such as FAT 16/32.
PropWare::ErrorCode get_error() const
Get the latest error that occurred during an unsafe method call.
Generic definitions and functions for the Parallax Propeller.
A read-only file interface.
PropWare::ErrorCode safe_peek(char &c)
Read a character from the file without incrementing the pointer.
const PropWare::Printer pwOut
Most common use of printing in PropWare applications (not thread safe; see PropWare::pwSyncOut for mu...
Container class that has formatting methods for human-readable output. This class can be constructed ...
char get_char()
Read a character from the file.
bool eof() const
Determine whether the read pointer has reached the end of the file.
Basic file interface for opening and closing files.
char peek()
Read a character from the file without incrementing the pointer.
In-memory buffer containing a single block of data.
PropWare::ErrorCode flush()
Flush any modified data back to the SD card.