MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / MakeTempFilename

Function MakeTempFilename

rtpose_wrapper/include/caffe/util/io.hpp:39–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39inline void MakeTempFilename(string* temp_filename) {
40 static path temp_files_subpath;
41 static uint64_t next_temp_file = 0;
42 temp_filename->clear();
43 if ( temp_files_subpath.empty() ) {
44 string path_string="";
45 MakeTempDir(&path_string);
46 temp_files_subpath = path_string;
47 }
48 *temp_filename =
49 (temp_files_subpath/caffe::format_int(next_temp_file++, 9)).string();
50}
51
52bool ReadProtoFromTextFile(const char* filename, Message* proto);
53

Callers 4

SetUpMethod · 0.85
HDF5OutputLayerTestMethod · 0.85
TYPED_TESTFunction · 0.85

Calls 3

MakeTempDirFunction · 0.85
format_intFunction · 0.85
clearMethod · 0.80

Tested by 4

SetUpMethod · 0.68
HDF5OutputLayerTestMethod · 0.68
TYPED_TESTFunction · 0.68