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 string &new_working_directory)
 
static bool CreateDir (const string &name, int mode)
 
static void DeleteRecursively (const string &name, void *dummy1, void *dummy2)
 
static bool Exists (const string &name)
 
static bool GetContents (const string &name, string *output, bool)
 
static bool GetContentsAsText (const string &name, string *output, bool)
 
static bool ReadFileToString (const string &name, string *output, bool text_mode=false)
 
static void ReadFileToStringOrDie (const string &name, string *output)
 
static bool RecursivelyCreateDir (const string &path, int mode)
 
static bool SetContents (const string &name, const string &contents, bool)
 
static bool WriteStringToFile (const string &contents, const string &name)
 
static void WriteStringToFileOrDie (const string &contents, const string &name)
 

Private Member Functions

 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS (File)
 

Detailed Description

Definition at line 46 of file file.h.

Member Function Documentation

◆ ChangeWorkingDirectory()

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

Definition at line 207 of file file.cc.

◆ CreateDir()

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

Definition at line 123 of file file.cc.

◆ DeleteRecursively()

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

Definition at line 146 of file file.cc.

◆ Exists()

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

Definition at line 69 of file file.cc.

◆ GetContents()

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

Definition at line 83 of file file.h.

◆ GetContentsAsText()

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

Definition at line 88 of file file.h.

◆ GOOGLE_DISALLOW_EVIL_CONSTRUCTORS()

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

◆ ReadFileToString()

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

Definition at line 73 of file file.cc.

◆ ReadFileToStringOrDie()

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

Definition at line 89 of file file.cc.

◆ RecursivelyCreateDir()

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

Definition at line 130 of file file.cc.

◆ SetContents()

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

Definition at line 93 of file file.h.

◆ WriteStringToFile()

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

Definition at line 93 of file file.cc.

◆ WriteStringToFileOrDie()

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

Definition at line 112 of file file.cc.


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


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:08