GraphTool  1.0
Tool for analyzing and graphically visualizing code dependencies for Ericsson.
 All Classes Namespaces Functions Variables Typedefs Enumerations Pages
file.h
1 #ifndef GRAPHTOOL_FILE_H_
2 #define GRAPHTOOL_FILE_H_
3 
4 #include <string>
5 #include <set>
6 #include "dependency.h"
7 #include "defines.h"
8 
13 class File {
14  public:
19  File(std::string name);
20  ~File();
21 
28  bool add_dependency(File* file, bool absolute);
29 
35  bool remove_dependency(File* file);
36 
41  std::string name() const;
42 
47  FileDependencySet* dependencies();
48 
53  FileDependentSet* dependents();
54 
55  protected:
63  bool add_dependent(File* file, bool absolute);
64 
71  bool remove_dependent(File* file);
72 
73  private:
75  std::string name_;
77  FileDependencySet dependencies_;
79  FileDependentSet dependents_;
81  File(File&);
82 };
83 
84 #endif // GRAPHTOOL_FILE_H_
bool add_dependent(File *file, bool absolute)
Definition: file.cc:27
FileDependencySet * dependencies()
Definition: file.cc:48
std::string name() const
Definition: file.cc:44
FileDependentSet * dependents()
Definition: file.cc:52
bool add_dependency(File *file, bool absolute)
Definition: file.cc:20
bool remove_dependent(File *file)
Definition: file.cc:39
bool remove_dependency(File *file)
Definition: file.cc:32
Definition: file.h:13
File(std::string name)
Definition: file.cc:3