4 #ifndef CVMFS_SHRINKWRAP_SPEC_TREE_H_
5 #define CVMFS_SHRINKWRAP_SPEC_TREE_H_
19 for (std::map<std::string, SpecTreeNode *>::iterator it =
nodes_.begin();
26 int GetListing(std::string base_path,
char ***buf,
size_t *len);
43 std::map<std::string, SpecTreeNode *>
nodes_;
69 int ListDir(
const char *dir,
char ***buf,
size_t *len);
72 void Open(
const std::string &path);
73 void Parse(FILE *spec_file);
79 #endif // CVMFS_SHRINKWRAP_SPEC_TREE_H_
static SpecTree * Create(const std::string &path)
void Open(const std::string &path)
std::map< std::string, SpecTreeNode * > nodes_
int GetListing(std::string base_path, char ***buf, size_t *len)
SpecTree(const SpecTree &tree)
SpecTreeNode * GetNode(const std::string &name)
void Parse(FILE *spec_file)
bool IsMatching(std::string path)
void AddNode(const std::string &name, SpecTreeNode *node)
int ListDir(const char *dir, char ***buf, size_t *len)
SpecTreeNode(char modeParam)