amath  1.8.5
Simple command line calculator
FilesystemBase Class Referenceabstract

Abstract base class encapsulating file system calls. More...

#include <filesystem.h>

Inheritance diagram for FilesystemBase:

Public Member Functions

virtual ~FilesystemBase ()
 
virtual CharBufferListDirectory (const char *path)=0
 
virtual CharBufferLoadTextFile (const char *name)=0
 
virtual bool SaveTextFile (const char *name, const char *text)=0
 

Detailed Description

Abstract base class encapsulating file system calls.

Definition at line 45 of file filesystem.h.

Constructor & Destructor Documentation

◆ ~FilesystemBase()

virtual FilesystemBase::~FilesystemBase ( )
inlinevirtual

Definition at line 48 of file filesystem.h.

49  {
50  }

Member Function Documentation

◆ ListDirectory()

virtual CharBuffer* FilesystemBase::ListDirectory ( const char *  path)
pure virtual

Implemented in StandardFilesystem.

Referenced by ListStatement::Execute().

Here is the caller graph for this function:

◆ LoadTextFile()

virtual CharBuffer* FilesystemBase::LoadTextFile ( const char *  name)
pure virtual

Implemented in StandardFilesystem.

Referenced by ExecuteStatement::Execute(), LoadStatement::Execute(), ShowStatement::Execute(), and StandardLanguage::LoadCatalog().

Here is the caller graph for this function:

◆ SaveTextFile()

virtual bool FilesystemBase::SaveTextFile ( const char *  name,
const char *  text 
)
pure virtual

Implemented in StandardFilesystem.

Referenced by SaveStatement::Execute().

Here is the caller graph for this function:

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