#include <file.h>
|
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) |
|
Definition at line 46 of file file.h.
◆ ChangeWorkingDirectory()
bool google::protobuf::File::ChangeWorkingDirectory |
( |
const string & |
new_working_directory | ) |
|
|
static |
◆ CreateDir()
bool google::protobuf::File::CreateDir |
( |
const string & |
name, |
|
|
int |
mode |
|
) |
| |
|
static |
◆ DeleteRecursively()
void google::protobuf::File::DeleteRecursively |
( |
const string & |
name, |
|
|
void * |
dummy1, |
|
|
void * |
dummy2 |
|
) |
| |
|
static |
◆ Exists()
bool google::protobuf::File::Exists |
( |
const string & |
name | ) |
|
|
static |
◆ GetContents()
static bool google::protobuf::File::GetContents |
( |
const string & |
name, |
|
|
string * |
output, |
|
|
bool |
|
|
) |
| |
|
inlinestatic |
◆ GetContentsAsText()
static bool google::protobuf::File::GetContentsAsText |
( |
const string & |
name, |
|
|
string * |
output, |
|
|
bool |
|
|
) |
| |
|
inlinestatic |
◆ 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 |
◆ ReadFileToStringOrDie()
void google::protobuf::File::ReadFileToStringOrDie |
( |
const string & |
name, |
|
|
string * |
output |
|
) |
| |
|
static |
◆ RecursivelyCreateDir()
bool google::protobuf::File::RecursivelyCreateDir |
( |
const string & |
path, |
|
|
int |
mode |
|
) |
| |
|
static |
◆ SetContents()
static bool google::protobuf::File::SetContents |
( |
const string & |
name, |
|
|
const string & |
contents, |
|
|
bool |
|
|
) |
| |
|
inlinestatic |
◆ WriteStringToFile()
bool google::protobuf::File::WriteStringToFile |
( |
const string & |
contents, |
|
|
const string & |
name |
|
) |
| |
|
static |
◆ WriteStringToFileOrDie()
void google::protobuf::File::WriteStringToFileOrDie |
( |
const string & |
contents, |
|
|
const string & |
name |
|
) |
| |
|
static |
The documentation for this class was generated from the following files: