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

#include <gtest.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 3546 of file gtest.h.

Constructor & Destructor Documentation

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

Definition at line 3548 of file gtest.h.

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

Definition at line 3549 of file gtest.h.

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

Definition at line 3551 of file gtest.h.

Member Function Documentation

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

Definition at line 3565 of file gtest.h.

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

Definition at line 8028 of file gtest-all.cc.

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

Definition at line 8137 of file gtest-all.cc.

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

Definition at line 8154 of file gtest-all.cc.

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

Definition at line 8052 of file gtest-all.cc.

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

Definition at line 8038 of file gtest-all.cc.

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

Definition at line 7965 of file gtest-all.cc.

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

Definition at line 8115 of file gtest-all.cc.

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

Definition at line 7935 of file gtest-all.cc.

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

Definition at line 8094 of file gtest-all.cc.

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

Definition at line 8129 of file gtest-all.cc.

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

Definition at line 3598 of file gtest.h.

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

Definition at line 8082 of file gtest-all.cc.

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

Definition at line 8012 of file gtest-all.cc.

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

Definition at line 8185 of file gtest-all.cc.

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

Definition at line 3555 of file gtest.h.

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

Definition at line 7984 of file gtest-all.cc.

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

Definition at line 7953 of file gtest-all.cc.

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

Definition at line 7995 of file gtest-all.cc.

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

Definition at line 8175 of file gtest-all.cc.

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

Definition at line 3560 of file gtest.h.

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

Definition at line 3564 of file gtest.h.

Member Data Documentation

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

Definition at line 3687 of file gtest.h.


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


diagnostic_aggregator
Author(s): Kevin Watts, Brice Rebsamen
autogenerated on Wed Mar 27 2019 03:02:16