CernVM-FS
2.12.0
|
#include <spec_tree.h>
Public Member Functions | |
SpecTree (char mode=0) | |
SpecTree (const SpecTree &tree) | |
~SpecTree () | |
bool | IsMatching (std::string path) |
int | ListDir (const char *dir, char ***buf, size_t *len) |
Static Public Member Functions | |
static SpecTree * | Create (const std::string &path) |
Private Member Functions | |
void | Open (const std::string &path) |
void | Parse (FILE *spec_file) |
Private Attributes | |
SpecTreeNode * | root_ |
Definition at line 47 of file spec_tree.h.
|
inlineexplicit |
Definition at line 49 of file spec_tree.h.
Referenced by Create().
|
inline |
Definition at line 52 of file spec_tree.h.
|
inline |
Definition at line 55 of file spec_tree.h.
|
static |
This file is part of the CernVM File System.
Definition at line 21 of file spec_tree.cc.
Referenced by shrinkwrap::SyncInit().
bool SpecTree::IsMatching | ( | std::string | path | ) |
Definition at line 47 of file spec_tree.cc.
Referenced by shrinkwrap::getNext().
int SpecTree::ListDir | ( | const char * | dir, |
char *** | buf, | ||
size_t * | len | ||
) |
Method which returns a list over the given directory or asks the caller to read from the file system.
Memory for buf is only allocated if the return value is 0
[in] | dir | The directory over which should be iterated |
[out] | buf | The list of the paths to the elements in the directory |
[out] | len | Length of the output list |
Definition at line 195 of file spec_tree.cc.
Referenced by shrinkwrap::list_src_dir().
|
private |
Definition at line 32 of file spec_tree.cc.
Referenced by Create().
|
private |
Definition at line 86 of file spec_tree.cc.
Referenced by Open().
|
private |
Definition at line 84 of file spec_tree.h.
Referenced by IsMatching(), ListDir(), Parse(), SpecTree(), and ~SpecTree().