![]() |
OR-Tools
8.1
|
Functions | |
absl::Status | Open (const absl::string_view &filename, const absl::string_view &mode, File **f, int flags) |
File * | OpenOrDie (const absl::string_view &filename, const absl::string_view &mode, int flags) |
absl::Status | GetContents (const absl::string_view &filename, std::string *output, int flags) |
absl::Status | WriteString (File *file, const absl::string_view &contents, int flags) |
absl::Status | SetContents (const absl::string_view &filename, const absl::string_view &contents, int flags) |
bool | ReadFileToString (const absl::string_view &file_name, std::string *output) |
bool | WriteStringToFile (const std::string &data, const absl::string_view &file_name) |
bool | ReadFileToProto (const absl::string_view &file_name, google::protobuf::Message *proto) |
void | ReadFileToProtoOrDie (const absl::string_view &file_name, google::protobuf::Message *proto) |
bool | WriteProtoToASCIIFile (const google::protobuf::Message &proto, const absl::string_view &file_name) |
void | WriteProtoToASCIIFileOrDie (const google::protobuf::Message &proto, const absl::string_view &file_name) |
bool | WriteProtoToFile (const google::protobuf::Message &proto, const absl::string_view &file_name) |
void | WriteProtoToFileOrDie (const google::protobuf::Message &proto, const absl::string_view &file_name) |
absl::Status | GetTextProto (const absl::string_view &filename, google::protobuf::Message *proto, int flags) |
absl::Status | SetTextProto (const absl::string_view &filename, const google::protobuf::Message &proto, int flags) |
absl::Status | SetBinaryProto (const absl::string_view &filename, const google::protobuf::Message &proto, int flags) |
absl::Status | Delete (const absl::string_view &path, int flags) |
absl::Status | Exists (const absl::string_view &path, int flags) |
int | Defaults () |
|
inline |
Definition at line 119 of file base/file.h.
absl::Status Delete | ( | const absl::string_view & | path, |
int | flags | ||
) |
absl::Status Exists | ( | const absl::string_view & | path, |
int | flags | ||
) |
absl::Status GetContents | ( | const absl::string_view & | filename, |
std::string * | output, | ||
int | flags | ||
) |
absl::Status GetTextProto | ( | const absl::string_view & | filename, |
google::protobuf::Message * | proto, | ||
int | flags | ||
) |
absl::Status Open | ( | const absl::string_view & | filename, |
const absl::string_view & | mode, | ||
File ** | f, | ||
int | flags | ||
) |
File * OpenOrDie | ( | const absl::string_view & | filename, |
const absl::string_view & | mode, | ||
int | flags | ||
) |
bool ReadFileToProto | ( | const absl::string_view & | file_name, |
google::protobuf::Message * | proto | ||
) |
void ReadFileToProtoOrDie | ( | const absl::string_view & | file_name, |
google::protobuf::Message * | proto | ||
) |
bool ReadFileToString | ( | const absl::string_view & | file_name, |
std::string * | output | ||
) |
absl::Status SetBinaryProto | ( | const absl::string_view & | filename, |
const google::protobuf::Message & | proto, | ||
int | flags | ||
) |
absl::Status SetContents | ( | const absl::string_view & | filename, |
const absl::string_view & | contents, | ||
int | flags | ||
) |
absl::Status SetTextProto | ( | const absl::string_view & | filename, |
const google::protobuf::Message & | proto, | ||
int | flags | ||
) |
bool WriteProtoToASCIIFile | ( | const google::protobuf::Message & | proto, |
const absl::string_view & | file_name | ||
) |
void WriteProtoToASCIIFileOrDie | ( | const google::protobuf::Message & | proto, |
const absl::string_view & | file_name | ||
) |
bool WriteProtoToFile | ( | const google::protobuf::Message & | proto, |
const absl::string_view & | file_name | ||
) |
void WriteProtoToFileOrDie | ( | const google::protobuf::Message & | proto, |
const absl::string_view & | file_name | ||
) |
absl::Status WriteString | ( | File * | file, |
const absl::string_view & | contents, | ||
int | flags | ||
) |