forked from panda3d/panda3d
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathppMain.h
More file actions
59 lines (44 loc) · 1.32 KB
/
ppMain.h
File metadata and controls
59 lines (44 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// Filename: ppMain.h
// Created by: drose (28Sep00)
//
////////////////////////////////////////////////////////////////////
#ifndef PPMAIN_H
#define PPMAIN_H
#include "ppremake.h"
#include "ppDirectoryTree.h"
#include "ppNamedScopes.h"
#include "filename.h"
class PPScope;
class PPCommandFile;
///////////////////////////////////////////////////////////////////
// Class : PPMain
// Description : Handles the toplevel processing in this program:
// holds the tree of source files, and all the scopes,
// etc. Generally get the ball rolling.
////////////////////////////////////////////////////////////////////
class PPMain {
public:
PPMain(PPScope *global_scope);
~PPMain();
bool read_source(const string &root);
bool process_all();
bool process(string dirname);
void report_depends(const string &dirname) const;
void report_reverse_depends(const string &dirname) const;
static string get_root();
static void chdir_root();
private:
bool r_process_all(PPDirectory *dir);
bool p_process(PPDirectory *dir);
bool read_global_file();
static Filename get_cwd();
PPScope *_global_scope;
PPScope *_def_scope;
PPCommandFile *_defs;
PPDirectoryTree _tree;
PPNamedScopes _named_scopes;
PPScope *_parent_scope;
static Filename _root;
string _original_working_dir;
};
#endif