Data Structures | Namespaces | Typedefs | Functions | Variables
file_utils.h File Reference

Basic function to work with file system and UNICODE symbols. More...

#include <string>
#include <cstring>
#include "ie_api.h"
#include "details/ie_so_pointer.hpp"

Go to the source code of this file.

Data Structures

struct  FileUtils::FileTraits< char >
 
struct  FileUtils::FileTraits< wchar_t >
 
struct  FileUtils::DotSymbol< char >
 
struct  FileUtils::DotSymbol< wchar_t >
 

Namespaces

 InferenceEngine
 Inference Engine Plugin API namespace.
 

Typedefs

using FileUtils::FilePath = std::string
 

Functions

std::string FileUtils::absoluteFilePath (const std::string &filePath)
 Interface function to get absolute path of file. More...
 
void FileUtils::createDirectoryRecursive (const std::string &dirPath)
 Interface function to create directorty recursively by given path. More...
 
bool FileUtils::directoryExists (const std::string &path)
 Interface function to check if directory exists for given path. More...
 
long long FileUtils::fileSize (const char *fileName)
 Interface function to get the size of a file. The function supports UNICODE path. More...
 
template<typename C , typename = InferenceEngine::details::enableIfSupportedChar<C>>
long long FileUtils::fileSize (const std::basic_string< C > &f)
 Function to get the size of a file. The function supports UNICODE path. More...
 
template<typename C , typename = InferenceEngine::details::enableIfSupportedChar<C>>
bool FileUtils::fileExist (const C *fileName)
 check if file with a given filename exists. The function supports UNICODE path More...
 
template<typename C , typename = InferenceEngine::details::enableIfSupportedChar<C>>
bool FileUtils::fileExist (const std::basic_string< C > &fileName)
 check if file with a given filename exists. The function supports UNICODE path More...
 
template<typename C , typename = InferenceEngine::details::enableIfSupportedChar<C>>
std::basic_string< CFileUtils::makePath (const std::basic_string< C > &folder, const std::basic_string< C > &file)
 CPP Interface function to combint path with filename. The function supports UNICODE path. More...
 
template<typename C , typename = InferenceEngine::details::enableIfSupportedChar<C>>
std::basic_string< CFileUtils::fileExt (const std::basic_string< C > &filename)
 CPP Interface function to extract extension from filename. More...
 
template<typename C , typename = InferenceEngine::details::enableIfSupportedChar<C>>
std::basic_string< CFileUtils::makePluginLibraryName (const std::basic_string< C > &path, const std::basic_string< C > &input)
 
std::string FileUtils::fromFilePath (const FilePath &path)
 
FilePath FileUtils::toFilePath (const std::string &path)
 
std::string InferenceEngine::getIELibraryPath ()
 Returns a path to Inference Engine library. More...
 
inline ::FileUtils::FilePath InferenceEngine::getInferenceEngineLibraryPath ()
 

Variables

const char FileUtils::FileSeparator = '/'
 File path separator.
 

Detailed Description

Basic function to work with file system and UNICODE symbols.