14 #include "absl/status/status.h"
17 #if !defined(_MSC_VER)
21 #include "absl/strings/str_format.h"
22 #include "absl/time/clock.h"
28 absl::string_view content) {
33 std::string* output) {
38 std::string* filename_out) {
40 int32 tid =
static_cast<int32>(pthread_self());
44 #if !defined(_MSC_VER)
49 int64 now = absl::GetCurrentTimeNanos();
50 std::string filename =
51 absl::StrFormat(
"/tmp/parameters-tempfile-%x-%d-%llx", tid, pid, now);
absl::Status GetContents(const absl::string_view &filename, std::string *output, int flags)
absl::Status Delete(const absl::string_view &path, int flags)
absl::Status SetContents(const absl::string_view &filename, const absl::string_view &contents, int flags)
The vehicle routing library lets one model and solve generic vehicle routing problems ranging from th...
::absl::Status PortableDeleteFile(absl::string_view file_name)
bool PortableTemporaryFile(const char *directory_prefix, std::string *filename_out)
::absl::Status PortableFileSetContents(absl::string_view file_name, absl::string_view content)
::absl::Status PortableFileGetContents(absl::string_view file_name, std::string *output)