![]() |
User Guide
|
Manage search path. More...
Manage search path.
Store search path used for handling paths when processing include NMODL directive
Definition at line 30 of file file_library.hpp.
#include <file_library.hpp>
Public Member Functions | |
FileLibrary ()=default | |
An empty library. More... | |
std::string | find_file (const std::filesystem::path &file) |
Search a file. More... | |
Managing inclusion paths. | |
void | append_env_var (const std::string &env_var) |
current directory | |
void | push_current_directory (const std::filesystem::path &path) |
void | pop_current_directory () |
Static Public Member Functions | |
static FileLibrary | default_instance () |
Initialize the library with the following path: More... | |
Private Member Functions | |
void | push_cwd () |
push the working directory in the directories stack More... | |
Private Attributes | |
std::vector< std::filesystem::path > | paths_ |
inclusion path list More... | |
|
default |
An empty library.
void nmodl::FileLibrary::append_env_var | ( | const std::string & | env_var | ) |
Definition at line 28 of file file_library.cpp.
|
static |
Initialize the library with the following path:
Definition at line 21 of file file_library.cpp.
std::string nmodl::FileLibrary::find_file | ( | const std::filesystem::path & | file | ) |
Search a file.
Determine real path of file
Definition at line 54 of file file_library.cpp.
void nmodl::FileLibrary::pop_current_directory | ( | ) |
Definition at line 47 of file file_library.cpp.
void nmodl::FileLibrary::push_current_directory | ( | const std::filesystem::path & | path | ) |
Definition at line 39 of file file_library.cpp.
|
private |
push the working directory in the directories stack
Definition at line 43 of file file_library.cpp.
|
private |
inclusion path list
Definition at line 68 of file file_library.hpp.