Web framework C++  2.0.0
Simple web framework on c++ designed to easily create web pages, etc
fs_file.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "fs_component.h"
4 
10 class FsFile : public FsComponent {
11  std::string fullPath;
12  std::string name;
13 public:
22  FsFile(std::string & name, std::string & fullPath);
23 
30  std::string getName() override;
31 
38  std::string getFileContent() override;
39 
44  std::string findFileAndGetContent(std::string & filePath) override;
45 
50  void add(FsComponent * component) override;
51 
56  void remove(FsComponent * component) override;
57 
64  bool isComposite() override;
65 };
Representation of file in filesystem.
Definition: fs_file.h:10
bool isComposite() override
std::string findFileAndGetContent(std::string &filePath) override
std::string getName() override
Interface for filesystem entity - file or path. Composite template.
Definition: fs_component.h:12
FsFile(std::string &name, std::string &fullPath)
void add(FsComponent *component) override
std::string getFileContent() override