OR-Tools  8.1
base/file.h File Reference

Go to the source code of this file.

Classes

class  File
 

Namespaces

 file
 

Functions

int Defaults ()
 
absl::Status Open (const absl::string_view &filename, const absl::string_view &mode, File **f, int flags)
 
FileOpenOrDie (const absl::string_view &filename, const absl::string_view &mode, int flags)
 
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 SetContents (const absl::string_view &filename, const absl::string_view &contents, 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)
 
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 Delete (const absl::string_view &path, int flags)
 
absl::Status Exists (const absl::string_view &path, int flags)