ifw  0.0.1-dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Static Public Member Functions | List of all members
el::base::utils::File Class Reference

#include <easylogging++.h>

Inheritance diagram for el::base::utils::File:
el::base::StaticClass el::base::StaticClass el::base::StaticClass

Static Public Member Functions

static base::type::fstream_tnewFileStream (const std::string &filename)
 Creates new out file stream for specified filename. More...
 
static std::size_t getSizeOfFile (base::type::fstream_t *fs)
 Gets size of file provided in stream. More...
 
static bool pathExists (const char *path, bool considerFile=false)
 Determines whether or not provided path exist in current file system. More...
 
static bool createPath (const std::string &path)
 Creates specified path on file system. More...
 
static std::string extractPathFromFilename (const std::string &fullPath, const char *seperator=base::consts::kFilePathSeperator)
 Extracts path of filename with leading slash. More...
 
static void buildStrippedFilename (const char *filename, char buff[], std::size_t limit=base::consts::kSourceFilenameMaxLength)
 builds stripped filename and puts it in buff More...
 
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 More...
 
static base::type::fstream_tnewFileStream (const std::string &filename)
 Creates new out file stream for specified filename. More...
 
static std::size_t getSizeOfFile (base::type::fstream_t *fs)
 Gets size of file provided in stream. More...
 
static bool pathExists (const char *path, bool considerFile=false)
 Determines whether or not provided path exist in current file system. More...
 
static bool createPath (const std::string &path)
 Creates specified path on file system. More...
 
static std::string extractPathFromFilename (const std::string &fullPath, const char *seperator=base::consts::kFilePathSeperator)
 Extracts path of filename with leading slash. More...
 
static void buildStrippedFilename (const char *filename, char buff[], std::size_t limit=base::consts::kSourceFilenameMaxLength)
 builds stripped filename and puts it in buff More...
 
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 More...
 
static base::type::fstream_tnewFileStream (const std::string &filename)
 Creates new out file stream for specified filename. More...
 
static std::size_t getSizeOfFile (base::type::fstream_t *fs)
 Gets size of file provided in stream. More...
 
static bool pathExists (const char *path, bool considerFile=false)
 Determines whether or not provided path exist in current file system. More...
 
static bool createPath (const std::string &path)
 Creates specified path on file system. More...
 
static std::string extractPathFromFilename (const std::string &fullPath, const char *seperator=base::consts::kFilePathSeperator)
 Extracts path of filename with leading slash. More...
 
static void buildStrippedFilename (const char *filename, char buff[], std::size_t limit=base::consts::kSourceFilenameMaxLength)
 builds stripped filename and puts it in buff More...
 
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 More...
 

Member Function Documentation

static 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 
)
inlinestatic

builds base filename and puts it in buff

static 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 
)
inlinestatic

builds base filename and puts it in buff

static 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 
)
inlinestatic

builds base filename and puts it in buff

static void el::base::utils::File::buildStrippedFilename ( const char *  filename,
char  buff[],
std::size_t  limit = base::consts::kSourceFilenameMaxLength 
)
inlinestatic

builds stripped filename and puts it in buff

static void el::base::utils::File::buildStrippedFilename ( const char *  filename,
char  buff[],
std::size_t  limit = base::consts::kSourceFilenameMaxLength 
)
inlinestatic

builds stripped filename and puts it in buff

static void el::base::utils::File::buildStrippedFilename ( const char *  filename,
char  buff[],
std::size_t  limit = base::consts::kSourceFilenameMaxLength 
)
inlinestatic

builds stripped filename and puts it in buff

static bool el::base::utils::File::createPath ( const std::string &  path)
inlinestatic

Creates specified path on file system.

Parameters
pathPath to create.
static bool el::base::utils::File::createPath ( const std::string &  path)
inlinestatic

Creates specified path on file system.

Parameters
pathPath to create.
static bool el::base::utils::File::createPath ( const std::string &  path)
inlinestatic

Creates specified path on file system.

Parameters
pathPath to create.
static std::string el::base::utils::File::extractPathFromFilename ( const std::string &  fullPath,
const char *  seperator = base::consts::kFilePathSeperator 
)
inlinestatic

Extracts path of filename with leading slash.

static std::string el::base::utils::File::extractPathFromFilename ( const std::string &  fullPath,
const char *  seperator = base::consts::kFilePathSeperator 
)
inlinestatic

Extracts path of filename with leading slash.

static std::string el::base::utils::File::extractPathFromFilename ( const std::string &  fullPath,
const char *  seperator = base::consts::kFilePathSeperator 
)
inlinestatic

Extracts path of filename with leading slash.

static std::size_t el::base::utils::File::getSizeOfFile ( base::type::fstream_t fs)
inlinestatic

Gets size of file provided in stream.

static std::size_t el::base::utils::File::getSizeOfFile ( base::type::fstream_t fs)
inlinestatic

Gets size of file provided in stream.

static std::size_t el::base::utils::File::getSizeOfFile ( base::type::fstream_t fs)
inlinestatic

Gets size of file provided in stream.

static base::type::fstream_t* el::base::utils::File::newFileStream ( const std::string &  filename)
inlinestatic

Creates new out file stream for specified filename.

Returns
Pointer to newly created fstream or nullptr
static base::type::fstream_t* el::base::utils::File::newFileStream ( const std::string &  filename)
inlinestatic

Creates new out file stream for specified filename.

Returns
Pointer to newly created fstream or nullptr
static base::type::fstream_t* el::base::utils::File::newFileStream ( const std::string &  filename)
inlinestatic

Creates new out file stream for specified filename.

Returns
Pointer to newly created fstream or nullptr
static bool el::base::utils::File::pathExists ( const char *  path,
bool  considerFile = false 
)
inlinestatic

Determines whether or not provided path exist in current file system.

static bool el::base::utils::File::pathExists ( const char *  path,
bool  considerFile = false 
)
inlinestatic

Determines whether or not provided path exist in current file system.

static bool el::base::utils::File::pathExists ( const char *  path,
bool  considerFile = false 
)
inlinestatic

Determines whether or not provided path exist in current file system.


The documentation for this class was generated from the following files: