Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/util/util_path.h
| Show All 26 Lines | |||||
| #include "util/util_set.h" | #include "util/util_set.h" | ||||
| #include "util/util_string.h" | #include "util/util_string.h" | ||||
| #include "util/util_types.h" | #include "util/util_types.h" | ||||
| #include "util/util_vector.h" | #include "util/util_vector.h" | ||||
| CCL_NAMESPACE_BEGIN | CCL_NAMESPACE_BEGIN | ||||
| /* program paths */ | /* program paths */ | ||||
| void path_init(const string &path = "", const string &user_path = ""); | void path_init(const string &path = "", const string &user_path = "", const string &tmp_path = ""); | ||||
| string path_get(const string &sub = ""); | string path_get(const string &sub = ""); | ||||
| string path_user_get(const string &sub = ""); | string path_user_get(const string &sub = ""); | ||||
| string path_temp_get(const string &sub = ""); | |||||
| string path_cache_get(const string &sub = ""); | string path_cache_get(const string &sub = ""); | ||||
| /* path string manipulation */ | /* path string manipulation */ | ||||
| string path_filename(const string &path); | string path_filename(const string &path); | ||||
| string path_dirname(const string &path); | string path_dirname(const string &path); | ||||
| string path_join(const string &dir, const string &file); | string path_join(const string &dir, const string &file); | ||||
| string path_escape(const string &path); | string path_escape(const string &path); | ||||
| bool path_is_relative(const string &path); | bool path_is_relative(const string &path); | ||||
| Show All 14 Lines | |||||
| bool path_write_binary(const string &path, const vector<uint8_t> &binary); | bool path_write_binary(const string &path, const vector<uint8_t> &binary); | ||||
| bool path_write_text(const string &path, string &text); | bool path_write_text(const string &path, string &text); | ||||
| bool path_read_binary(const string &path, vector<uint8_t> &binary); | bool path_read_binary(const string &path, vector<uint8_t> &binary); | ||||
| bool path_read_text(const string &path, string &text); | bool path_read_text(const string &path, string &text); | ||||
| /* File manipulation. */ | /* File manipulation. */ | ||||
| bool path_remove(const string &path); | bool path_remove(const string &path); | ||||
| /* source code utility */ | |||||
| string path_source_replace_includes(const string &source, | |||||
| const string &path, | |||||
| const string &source_filename = ""); | |||||
| /* cache utility */ | /* cache utility */ | ||||
| void path_cache_clear_except(const string &name, const set<string> &except); | void path_cache_clear_except(const string &name, const set<string> &except); | ||||
| CCL_NAMESPACE_END | CCL_NAMESPACE_END | ||||
| #endif | #endif | ||||