MCPcopy Create free account
hub / github.com/PKU-IDEA/OpenPARF / setAuxFile

Method setAuxFile

openparf/database/database.cpp:42–51  ·  view source on GitHub ↗

@brief setter for .aux file, convert to input directory and .aux file @param str is full path

Source from the content-addressed store, hash-verified

40 /// @brief setter for .aux file, convert to input directory and .aux file
41 /// @param str is full path
42 void setAuxFile(std::string const &str) {
43 auto pos = str.find_last_of('/');
44 if (pos == std::string::npos) {
45 input_dir_ = "./";
46 aux_file_ = str;
47 } else {
48 input_dir_ = str.substr(0, pos + 1);
49 aux_file_ = str.substr(pos + 1);
50 }
51 }
52 /// @brief getter for .lib file
53 std::string const &libFile() const { return lib_file_; }
54 /// @brief getter for .scl file

Callers 1

readBookshelfMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected