Web framework C++
2.0.0
Simple web framework on c++ designed to easily create web pages, etc
|
Representation of file in filesystem. More...
#include <fs_file.h>
Public Member Functions | |
FsFile (std::string &name, std::string &fullPath) | |
std::string | getName () override |
std::string | getFileContent () override |
std::string | findFileAndGetContent (std::string &filePath) override |
void | add (FsComponent *component) override |
void | remove (FsComponent *component) override |
bool | isComposite () override |
![]() | |
virtual | ~FsComponent ()=default |
Representation of file in filesystem.
This class is intended to represent a file in filesystem hierarchy
FsFile::FsFile | ( | std::string & | name, |
std::string & | fullPath | ||
) |
Create a FsFile object with specified name and full path
name | file name |
fullPath | full path to file |
|
overridevirtual |
RuntimeException,because | it's not a folder |
Implements FsComponent.
|
overridevirtual |
RuntimeException,because | it's not a folder |
Implements FsComponent.
|
overridevirtual |
returns a content, stored in this file.
Implements FsComponent.
|
overridevirtual |
|
overridevirtual |
Check, if current entity is composite and have children
Implements FsComponent.
|
overridevirtual |
RuntimeException,because | it's not a folder |
Implements FsComponent.