40 :
File(fs, name, buffer, logger),
41 m_fileMetadataModified(
false) {
69 virtual PropWare::ErrorCode
safe_puts (
const char string[]) {
70 PropWare::ErrorCode err;
72 char *s = (
char *)
string;
85 void puts (
const char string[]) {
89 void print_status (
const bool printBlocks =
false,
const bool printParentStatus =
true)
const {
90 if (printParentStatus)
91 this->File::print_status(
"FileWriter", printBlocks);
93 this->m_logger->println(
"FileWriter-specific");
94 this->m_logger->println(
"-------------------");
95 this->m_logger->printf(
"\tModified: %s\n",
Utility::to_string(this->m_fileMetadataModified));
100 bool m_fileMetadataModified;
Interface for all filesystems, such as FAT 16/32.
Generic definitions and functions for the Parallax Propeller.
virtual PropWare::ErrorCode safe_put_char(const char c)=0
Write a character to the file.
const PropWare::Printer pwOut
Most common use of printing in PropWare applications (not thread safe; see PropWare::pwSyncOut for mu...
static const char * to_string(const bool b)
Convert a boolean to the string-literal either "true" or "false"
Container class that has formatting methods for human-readable output. This class can be constructed ...
void put_char(const char c)
Write a character to the file.
A write-only file interface.
Basic file interface for opening and closing files.
void puts(const char string[])
Write a character array to the file.
Interface for all classes capable of printing.
In-memory buffer containing a single block of data.
virtual PropWare::ErrorCode safe_puts(const char string[])
Write a character array to the file.