|
NebulaStream
0.6.213
NebulaStream is a data and application management framework for the internet of things
|
Represents for a file at a specific path. More...
#include <File.hpp>
Public Member Functions | |
| File (std::string path) | |
| Constructor for a file at a specific path. More... | |
| std::string | getPath () const |
| Returns the path of the file. More... | |
| std::string | read () const |
| Reads the file as a string. More... | |
| void | print () const |
| Prints the file to the log. More... | |
| std::mutex & | getFileMutex () |
| Gives access to a mutex to lock the file. More... | |
Static Public Member Functions | |
| static std::shared_ptr< File > | createFile (const std::string &absoluteFilePath, const std::string &content) |
| Creates a new file form a string. More... | |
Represents for a file at a specific path.
|
explicit |
Constructor for a file at a specific path.
| path |
|
static |
Creates a new file form a string.
| absoluteFilePath | target absoluteFilePath of the file. |
| content | of the file |
References NES_DEBUG.
Referenced by NES::Compiler::CPPCompiler::compile().
| std::mutex & NES::Compiler::File::getFileMutex | ( | ) |
Gives access to a mutex to lock the file.
| std::string NES::Compiler::File::getPath | ( | ) | const |
Returns the path of the file.
| void NES::Compiler::File::print | ( | ) | const |
| std::string NES::Compiler::File::read | ( | ) | const |
Reads the file as a string.
Referenced by print().