Arduino Posix Filesystems
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
file_systems::Registry Class Reference

Registry which manages open files. More...

#include <Registry.h>

Public Member Functions

void add (FileSystemBase &fileSystem)
 Registers the file system.
 
RegEntryopenFile (const char *path)
 opens a new file and provides the corresponding file descriptor
 
RegEntryopenFile (const char *path, FileSystemBase &fs)
 opens a new file and provides the corresponding file descriptor
 
FileSystemBasefileSystem (const char *path)
 Determines the file system for a file path.
 
FileSystemBasefileSystem (int id)
 Determines the file system for the fileID.
 
void closeFile (RegEntry &entry)
 closes the file at the indicated idx
 
void closeFile (int fileID)
 closes the file at the indicated idx
 
RegEntrygetEntry (int fileID)
 Returns the File by fd.
 
size_t size ()
 Reurns the number of file entries.
 
void setFileSystemForSearch (FileSystemBase *fs)
 Defines the actual file system that is used for directory searches.
 
FileSystemBasefileSystemForSearch ()
 Provides the actual file system that is used for directory searches.
 
FileSystemBasefileSystemByName (const char *path)
 Determines the file system by name.
 

Protected Member Functions

int findOpenEmpty ()
 

Protected Attributes

FileSystemBasesearch_file_system
 

Static Protected Attributes

static Vector< RegEntry * > open_files
 
static Vector< FileSystemBase * > file_systems
 

Detailed Description

Registry which manages open files.

Author
Phil Schatzmann

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