Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
testing::internal::FilePath Class Reference

#include <gtest-filepath.h>

Public Member Functions

const char * c_str () const
 
bool CreateDirectoriesRecursively () const
 
bool CreateFolder () const
 
bool DirectoryExists () const
 
bool FileOrDirectoryExists () const
 
 FilePath ()
 
 FilePath (const FilePath &rhs)
 
 FilePath (const std::string &pathname)
 
bool IsAbsolutePath () const
 
bool IsDirectory () const
 
bool IsEmpty () const
 
bool IsRootDirectory () const
 
FilePathoperator= (const FilePath &rhs)
 
FilePath RemoveDirectoryName () const
 
FilePath RemoveExtension (const char *extension) const
 
FilePath RemoveFileName () const
 
FilePath RemoveTrailingPathSeparator () const
 
void Set (const FilePath &rhs)
 
const std::string & string () const
 

Static Public Member Functions

static FilePath ConcatPaths (const FilePath &directory, const FilePath &relative_path)
 
static FilePath GenerateUniqueFileName (const FilePath &directory, const FilePath &base_name, const char *extension)
 
static FilePath GetCurrentDir ()
 
static FilePath MakeFileName (const FilePath &directory, const FilePath &base_name, int number, const char *extension)
 

Private Member Functions

const char * FindLastPathSeparator () const
 
void Normalize ()
 

Private Attributes

std::string pathname_
 

Detailed Description

Definition at line 59 of file gtest-filepath.h.

Constructor & Destructor Documentation

◆ FilePath() [1/3]

testing::internal::FilePath::FilePath ( )
inline

Definition at line 61 of file gtest-filepath.h.

◆ FilePath() [2/3]

testing::internal::FilePath::FilePath ( const FilePath rhs)
inline

Definition at line 62 of file gtest-filepath.h.

◆ FilePath() [3/3]

testing::internal::FilePath::FilePath ( const std::string &  pathname)
inlineexplicit

Definition at line 64 of file gtest-filepath.h.

Member Function Documentation

◆ c_str()

const char* testing::internal::FilePath::c_str ( ) const
inline

Definition at line 78 of file gtest-filepath.h.

◆ ConcatPaths()

FilePath testing::internal::FilePath::ConcatPaths ( const FilePath directory,
const FilePath relative_path 
)
static

Definition at line 194 of file gtest-filepath.cc.

◆ CreateDirectoriesRecursively()

bool testing::internal::FilePath::CreateDirectoriesRecursively ( ) const

Definition at line 303 of file gtest-filepath.cc.

◆ CreateFolder()

bool testing::internal::FilePath::CreateFolder ( ) const

Definition at line 320 of file gtest-filepath.cc.

◆ DirectoryExists()

bool testing::internal::FilePath::DirectoryExists ( ) const

Definition at line 218 of file gtest-filepath.cc.

◆ FileOrDirectoryExists()

bool testing::internal::FilePath::FileOrDirectoryExists ( ) const

Definition at line 204 of file gtest-filepath.cc.

◆ FindLastPathSeparator()

const char * testing::internal::FilePath::FindLastPathSeparator ( ) const
private

Definition at line 131 of file gtest-filepath.cc.

◆ GenerateUniqueFileName()

FilePath testing::internal::FilePath::GenerateUniqueFileName ( const FilePath directory,
const FilePath base_name,
const char *  extension 
)
static

Definition at line 281 of file gtest-filepath.cc.

◆ GetCurrentDir()

FilePath testing::internal::FilePath::GetCurrentDir ( )
static

Definition at line 101 of file gtest-filepath.cc.

◆ IsAbsolutePath()

bool testing::internal::FilePath::IsAbsolutePath ( ) const

Definition at line 260 of file gtest-filepath.cc.

◆ IsDirectory()

bool testing::internal::FilePath::IsDirectory ( ) const

Definition at line 295 of file gtest-filepath.cc.

◆ IsEmpty()

bool testing::internal::FilePath::IsEmpty ( ) const
inline

Definition at line 111 of file gtest-filepath.h.

◆ IsRootDirectory()

bool testing::internal::FilePath::IsRootDirectory ( ) const

Definition at line 248 of file gtest-filepath.cc.

◆ MakeFileName()

FilePath testing::internal::FilePath::MakeFileName ( const FilePath directory,
const FilePath base_name,
int  number,
const char *  extension 
)
static

Definition at line 178 of file gtest-filepath.cc.

◆ Normalize()

void testing::internal::FilePath::Normalize ( )
private

Definition at line 351 of file gtest-filepath.cc.

◆ operator=()

FilePath& testing::internal::FilePath::operator= ( const FilePath rhs)
inline

Definition at line 68 of file gtest-filepath.h.

◆ RemoveDirectoryName()

FilePath testing::internal::FilePath::RemoveDirectoryName ( ) const

Definition at line 150 of file gtest-filepath.cc.

◆ RemoveExtension()

FilePath testing::internal::FilePath::RemoveExtension ( const char *  extension) const

Definition at line 119 of file gtest-filepath.cc.

◆ RemoveFileName()

FilePath testing::internal::FilePath::RemoveFileName ( ) const

Definition at line 161 of file gtest-filepath.cc.

◆ RemoveTrailingPathSeparator()

FilePath testing::internal::FilePath::RemoveTrailingPathSeparator ( ) const

Definition at line 341 of file gtest-filepath.cc.

◆ Set()

void testing::internal::FilePath::Set ( const FilePath rhs)
inline

Definition at line 73 of file gtest-filepath.h.

◆ string()

const std::string& testing::internal::FilePath::string ( ) const
inline

Definition at line 77 of file gtest-filepath.h.

Member Data Documentation

◆ pathname_

std::string testing::internal::FilePath::pathname_
private

Definition at line 200 of file gtest-filepath.h.


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


fcl
Author(s):
autogenerated on Wed Feb 17 2021 03:40:11