Web framework C++  2.0.0
Simple web framework on c++ designed to easily create web pages, etc
fs_middleware.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "middleware.h"
4 #include "fs_component.h"
5 #include "fs_creator.h"
6 
14 class FsMiddleware : public Middleware {
15  FsComponent * folder;
16  std::string mountPath;
17  std::string value;
18  FsCreator creator;
19 public:
32  FsMiddleware(const char * nameID, const char * folderPath, const char * mountPath = nullptr);
33 
40  bool autoExec() override;
41 
45  void exec() override;
46 private:
54  static FsBuilder * selectBuilder();
55 };
Builder template for FsMiddleware.
Definition: fs_builder.h:15
Director template for builder template of FsMiddleware.
Definition: fs_creator.h:11
Interface for filesystem entity - file or path. Composite template.
Definition: fs_component.h:12
Middleware to host directories with inner files.
Definition: fs_middleware.h:14
class wrapper for middleware
Definition: middleware.h:14
void exec() override
FsMiddleware(const char *nameID, const char *folderPath, const char *mountPath=nullptr)
bool autoExec() override