Static Public Member Functions | Private Member Functions | List of all members
google::protobuf::File Class Reference

#include <file.h>

Static Public Member Functions

static bool ChangeWorkingDirectory (const std::string &new_working_directory)
 
static bool ChangeWorkingDirectory (const string &new_working_directory)
 
static bool CreateDir (const std::string &name, int mode)
 
static bool CreateDir (const string &name, int mode)
 
static void DeleteRecursively (const std::string &name, void *dummy1, void *dummy2)
 
static void DeleteRecursively (const string &name, void *dummy1, void *dummy2)
 
static bool Exists (const std::string &name)
 
static bool Exists (const string &name)
 
static bool GetContents (const std::string &name, std::string *output, bool)
 
static bool GetContents (const string &name, string *output, bool)
 
static bool GetContentsAsText (const std::string &name, std::string *output, bool)
 
static bool GetContentsAsText (const string &name, string *output, bool)
 
static bool ReadFileToString (const std::string &name, std::string *output, bool text_mode=false)
 
static bool ReadFileToString (const string &name, string *output, bool text_mode=false)
 
static void ReadFileToStringOrDie (const std::string &name, std::string *output)
 
static void ReadFileToStringOrDie (const string &name, string *output)
 
static bool RecursivelyCreateDir (const std::string &path, int mode)
 
static bool RecursivelyCreateDir (const string &path, int mode)
 
static bool SetContents (const std::string &name, const std::string &contents, bool)
 
static bool SetContents (const string &name, const string &contents, bool)
 
static bool WriteStringToFile (const std::string &contents, const std::string &name)
 
static bool WriteStringToFile (const string &contents, const string &name)
 
static void WriteStringToFileOrDie (const std::string &contents, const std::string &name)
 
static void WriteStringToFileOrDie (const string &contents, const string &name)
 

Private Member Functions

 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS (File)
 
 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS (File)
 

Detailed Description

Definition at line 46 of file bloaty/third_party/protobuf/src/google/protobuf/testing/file.h.

Member Function Documentation

◆ ChangeWorkingDirectory() [1/2]

bool google::protobuf::File::ChangeWorkingDirectory ( const std::string &  new_working_directory)
static

◆ ChangeWorkingDirectory() [2/2]

bool google::protobuf::File::ChangeWorkingDirectory ( const string &  new_working_directory)
static

◆ CreateDir() [1/2]

bool google::protobuf::File::CreateDir ( const std::string &  name,
int  mode 
)
static

◆ CreateDir() [2/2]

bool google::protobuf::File::CreateDir ( const string &  name,
int  mode 
)
static

◆ DeleteRecursively() [1/2]

void google::protobuf::File::DeleteRecursively ( const std::string &  name,
void *  dummy1,
void *  dummy2 
)
static

◆ DeleteRecursively() [2/2]

void google::protobuf::File::DeleteRecursively ( const string &  name,
void *  dummy1,
void *  dummy2 
)
static

◆ Exists() [1/2]

bool google::protobuf::File::Exists ( const std::string &  name)
static

Definition at line 69 of file protobuf/src/google/protobuf/testing/file.cc.

◆ Exists() [2/2]

bool google::protobuf::File::Exists ( const string &  name)
static

◆ GetContents() [1/2]

static bool google::protobuf::File::GetContents ( const std::string &  name,
std::string *  output,
bool   
)
inlinestatic

Definition at line 85 of file protobuf/src/google/protobuf/testing/file.h.

◆ GetContents() [2/2]

static bool google::protobuf::File::GetContents ( const string &  name,
string *  output,
bool   
)
inlinestatic

◆ GetContentsAsText() [1/2]

static bool google::protobuf::File::GetContentsAsText ( const std::string &  name,
std::string *  output,
bool   
)
inlinestatic

Definition at line 90 of file protobuf/src/google/protobuf/testing/file.h.

◆ GetContentsAsText() [2/2]

static bool google::protobuf::File::GetContentsAsText ( const string &  name,
string *  output,
bool   
)
inlinestatic

◆ GOOGLE_DISALLOW_EVIL_CONSTRUCTORS() [1/2]

google::protobuf::File::GOOGLE_DISALLOW_EVIL_CONSTRUCTORS ( File  )
private

◆ GOOGLE_DISALLOW_EVIL_CONSTRUCTORS() [2/2]

google::protobuf::File::GOOGLE_DISALLOW_EVIL_CONSTRUCTORS ( File  )
private

◆ ReadFileToString() [1/2]

bool google::protobuf::File::ReadFileToString ( const std::string &  name,
std::string *  output,
bool  text_mode = false 
)
static

Definition at line 73 of file protobuf/src/google/protobuf/testing/file.cc.

◆ ReadFileToString() [2/2]

bool google::protobuf::File::ReadFileToString ( const string &  name,
string *  output,
bool  text_mode = false 
)
static

◆ ReadFileToStringOrDie() [1/2]

void google::protobuf::File::ReadFileToStringOrDie ( const std::string &  name,
std::string *  output 
)
static

Definition at line 90 of file protobuf/src/google/protobuf/testing/file.cc.

◆ ReadFileToStringOrDie() [2/2]

void google::protobuf::File::ReadFileToStringOrDie ( const string &  name,
string *  output 
)
static

◆ RecursivelyCreateDir() [1/2]

bool google::protobuf::File::RecursivelyCreateDir ( const std::string &  path,
int  mode 
)
static

◆ RecursivelyCreateDir() [2/2]

bool google::protobuf::File::RecursivelyCreateDir ( const string &  path,
int  mode 
)
static

◆ SetContents() [1/2]

static bool google::protobuf::File::SetContents ( const std::string &  name,
const std::string &  contents,
bool   
)
inlinestatic

Definition at line 95 of file protobuf/src/google/protobuf/testing/file.h.

◆ SetContents() [2/2]

static bool google::protobuf::File::SetContents ( const string &  name,
const string &  contents,
bool   
)
inlinestatic

◆ WriteStringToFile() [1/2]

bool google::protobuf::File::WriteStringToFile ( const std::string &  contents,
const std::string &  name 
)
static

Definition at line 94 of file protobuf/src/google/protobuf/testing/file.cc.

◆ WriteStringToFile() [2/2]

bool google::protobuf::File::WriteStringToFile ( const string &  contents,
const string &  name 
)
static

◆ WriteStringToFileOrDie() [1/2]

void google::protobuf::File::WriteStringToFileOrDie ( const std::string &  contents,
const std::string &  name 
)
static

◆ WriteStringToFileOrDie() [2/2]

void google::protobuf::File::WriteStringToFileOrDie ( const string &  contents,
const string &  name 
)
static

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


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:11