Web framework C++
2.0.0
Simple web framework on c++ designed to easily create web pages, etc
|
Interface for filesystem entity - file or path. Composite template. More...
#include <fs_component.h>
Public Member Functions | |
virtual | ~FsComponent ()=default |
virtual std::string | getName ()=0 |
virtual std::string | getFileContent ()=0 |
virtual std::string | findFileAndGetContent (std::string &filePath)=0 |
virtual void | add (FsComponent *component)=0 |
virtual void | remove (FsComponent *component)=0 |
virtual bool | isComposite ()=0 |
Interface for filesystem entity - file or path. Composite template.
This class is intended to represent a filesystem hierarchy as composite template and quickly find any file with specified path and get it's content.
|
virtualdefault |
virtual destructor
|
pure virtual |
Add FsComponent to current entity's children
component | FsComponent object - file or folder |
RuntimeException,if | this component was not a folder |
|
pure virtual |
recursively find a file with such path in folder hierarchy and read it's content
filePath | file path of file relatively root folder |
RuntimeException,if | this component was not a folder |
|
pure virtual |
returns a content, stored in this file.
RuntimeException,if | this component was not a file |
|
pure virtual |
|
pure virtual |
|
pure virtual |
Remove FsComponent from current entity's children
component | FsComponent object - file or folder |
RuntimeException,if | this component was not a folder |