Web framework C++
2.0.0
Simple web framework on c++ designed to easily create web pages, etc
|
Builder template for FsMiddleware. More...
#include <fs_builder.h>
Public Member Functions | |
virtual | ~FsBuilder ()=default |
virtual FsFile * | buildFile (std::string &filePath)=0 |
virtual FsFolder * | buildFolder (std::string &folderPath, const char *folderName)=0 |
FsComponent * | getResult () |
void | reset () |
Protected Attributes | |
FsComponent * | root = nullptr |
Builder template for FsMiddleware.
This class is intended to create a file system hierarchy for specified folder by given path. FsBuilder as a builder template make hierarchy for composite template, that represents file system: FsComponent, FsFile,FsFolder. By default, there are two builders: FsUnixBuilder and FsWindowsBuilder.
|
virtualdefault |
virtual destructor
|
pure virtual |
make a FsComponent wrapper for files - leaves of hierarchy
filePath | full path to concrete file |
|
pure virtual |
make a FsComponent wrapper for folder, and then recursively build hierarchy from inner folder and files
folderPath | path to folder |
folderName | name of folder |
|
inline |
get result of produced hierarchy by buildFolder method
|
inline |
reset state before making new composition
|
protected |