#include <easylogging++.h>
|
| static base::type::fstream_t * | newFileStream (const std::string &filename) |
| | Creates new out file stream for specified filename.
|
| static std::size_t | getSizeOfFile (base::type::fstream_t *fs) |
| | Gets size of file provided in stream.
|
| static bool | pathExists (const char *path, bool considerFile=false) |
| | Determines whether or not provided path exist in current file system.
|
| static bool | createPath (const std::string &path) |
| | Creates specified path on file system.
|
| static std::string | extractPathFromFilename (const std::string &fullPath, const char *seperator=base::consts::kFilePathSeperator) |
| | Extracts path of filename with leading slash.
|
| static void | buildStrippedFilename (const char *filename, char buff[], const std::string &commonPrefix=NULL, std::size_t limit=base::consts::kSourceFilenameMaxLength) |
| | builds stripped filename and puts it in buff
|
| static void | buildBaseFilename (const std::string &fullPath, char buff[], std::size_t limit=base::consts::kSourceFilenameMaxLength, const char *seperator=base::consts::kFilePathSeperator) |
| | builds base filename and puts it in buff
|
Definition at line 1062 of file easylogging++.h.
◆ buildBaseFilename()
| void el::base::utils::File::buildBaseFilename |
( |
const std::string & | fullPath, |
|
|
char | buff[], |
|
|
std::size_t | limit = base::consts::kSourceFilenameMaxLength, |
|
|
const char * | seperator = base::consts::kFilePathSeperator ) |
|
static |
builds base filename and puts it in buff
◆ buildStrippedFilename()
| void el::base::utils::File::buildStrippedFilename |
( |
const char * | filename, |
|
|
char | buff[], |
|
|
const std::string & | commonPrefix = NULL, |
|
|
std::size_t | limit = base::consts::kSourceFilenameMaxLength ) |
|
static |
builds stripped filename and puts it in buff
◆ createPath()
| bool el::base::utils::File::createPath |
( |
const std::string & | path | ) |
|
|
static |
Creates specified path on file system.
- Parameters
-
◆ extractPathFromFilename()
| std::string el::base::utils::File::extractPathFromFilename |
( |
const std::string & | fullPath, |
|
|
const char * | seperator = base::consts::kFilePathSeperator ) |
|
static |
Extracts path of filename with leading slash.
◆ getSizeOfFile()
Gets size of file provided in stream.
◆ newFileStream()
Creates new out file stream for specified filename.
- Returns
- Pointer to newly created fstream or nullptr
◆ pathExists()
| bool el::base::utils::File::pathExists |
( |
const char * | path, |
|
|
bool | considerFile = false ) |
|
static |
Determines whether or not provided path exist in current file system.
The documentation for this class was generated from the following file:
- /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/external/easylogging++/easylogging++.h