CernVM-FS  2.12.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SpecTree Class Reference

#include <spec_tree.h>

Collaboration diagram for SpecTree:

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 SpecTreeCreate (const std::string &path)
 

Private Member Functions

void Open (const std::string &path)
 
void Parse (FILE *spec_file)
 

Private Attributes

SpecTreeNoderoot_
 

Detailed Description

Definition at line 47 of file spec_tree.h.

Constructor & Destructor Documentation

SpecTree::SpecTree ( char  mode = 0)
inlineexplicit

Definition at line 49 of file spec_tree.h.

Referenced by Create().

Here is the caller graph for this function:

SpecTree::SpecTree ( const SpecTree tree)
inline

Definition at line 52 of file spec_tree.h.

SpecTree::~SpecTree ( )
inline

Definition at line 55 of file spec_tree.h.

Member Function Documentation

SpecTree * SpecTree::Create ( const std::string &  path)
static

This file is part of the CernVM File System.

Definition at line 21 of file spec_tree.cc.

Referenced by shrinkwrap::SyncInit().

Here is the call graph for this function:

Here is the caller graph for this function:

bool SpecTree::IsMatching ( std::string  path)

Definition at line 47 of file spec_tree.cc.

Referenced by shrinkwrap::getNext().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Parameters
[in]dirThe directory over which should be iterated
[out]bufThe list of the paths to the elements in the directory
[out]lenLength of the output list
Returns
0 if listing was successfully loaded into the buffer -1 if directory should not be listed (because excluded) SPEC_READ_FS if listing should be read from source filesystem

Definition at line 195 of file spec_tree.cc.

Referenced by shrinkwrap::list_src_dir().

Here is the call graph for this function:

Here is the caller graph for this function:

void SpecTree::Open ( const std::string &  path)
private

Definition at line 32 of file spec_tree.cc.

Referenced by Create().

Here is the call graph for this function:

Here is the caller graph for this function:

void SpecTree::Parse ( FILE *  spec_file)
private

Definition at line 86 of file spec_tree.cc.

Referenced by Open().

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

SpecTreeNode* SpecTree::root_
private

Definition at line 84 of file spec_tree.h.

Referenced by IsMatching(), ListDir(), Parse(), SpecTree(), and ~SpecTree().


The documentation for this class was generated from the following files: