22 *reinterpret_cast<SimpleOptionsParser *>(opts));
39 bool retval = opts->
GetValue(key, &arg);
42 char *result = strdup(arg.c_str());
49 char *result = strdup(opts->
Dump().c_str());
61 result->
SetValue(
"CVMFS_MOUNT_DIR",
"/cvmfs");
68 const char *key,
const
77 return result ? 0 : -1;
void set_taint_environment(bool value)
char * cvmcache_options_dump(cvmcache_option_map *opts)
assert((mem||(size==0))&&"Out Of Memory")
void SetValue(const std::string &key, const std::string &value)
bool TryParsePath(const std::string &config_file)
void cvmcache_options_free(char *value)
void cvmcache_options_fini(cvmcache_option_map *opts)
SimpleOptionsParser * cvmcache_options_clone(SimpleOptionsParser *opts)
bool GetValue(const std::string &key, std::string *value) const
int cvmcache_options_parse(cvmcache_option_map *opts, const char *path)
void cvmcache_options_unset(cvmcache_option_map *opts, const char *key)
char * cvmcache_options_get(cvmcache_option_map *opts, const char *key)
void cvmcache_options_set(cvmcache_option_map *opts, const char *key, const char *value)
void UnsetValue(const std::string &key)
cvmcache_option_map * cvmcache_options_init()