14 #ifndef CONFIGPAGEMANAGER_H
15 #define CONFIGPAGEMANAGER_H
37 INLINE
bool loaded_implicit_pages()
const;
38 INLINE
void load_implicit_pages();
39 void reload_implicit_pages();
43 INLINE
size_t get_num_prc_patterns()
const;
44 INLINE std::string get_prc_pattern(
size_t n)
const;
46 INLINE
size_t get_num_prc_encrypted_patterns()
const;
47 INLINE std::string get_prc_encrypted_pattern(
size_t n)
const;
49 INLINE
size_t get_num_prc_executable_patterns()
const;
50 INLINE std::string get_prc_executable_pattern(
size_t n)
const;
52 ConfigPage *make_explicit_page(
const std::string &name);
55 INLINE
size_t get_num_implicit_pages()
const;
56 INLINE
ConfigPage *get_implicit_page(
size_t n)
const;
58 INLINE
size_t get_num_explicit_pages()
const;
59 INLINE
ConfigPage *get_explicit_page(
size_t n)
const;
61 void output(std::ostream &out)
const;
62 void write(std::ostream &out)
const;
67 MAKE_PROPERTY(search_path, get_search_path);
69 MAKE_SEQ_PROPERTY(prc_patterns, get_num_prc_patterns, get_prc_pattern);
70 MAKE_SEQ_PROPERTY(prc_encrypted_patterns, get_num_prc_encrypted_patterns, get_prc_encrypted_pattern);
71 MAKE_SEQ_PROPERTY(prc_executable_patterns, get_num_prc_executable_patterns, get_prc_executable_pattern);
73 MAKE_SEQ_PROPERTY(implicit_pages, get_num_implicit_pages, get_implicit_page);
74 MAKE_SEQ_PROPERTY(explicit_pages, get_num_explicit_pages, get_explicit_page);
77 INLINE
void mark_unsorted();
80 INLINE
void check_sort_pages()
const;
83 bool scan_auto_prc_dir(
Filename &prc_dir)
const;
87 void config_initialized();
89 typedef std::vector<ConfigPage *> Pages;
90 Pages _implicit_pages;
91 Pages _explicit_pages;
95 bool _loaded_implicit;
96 bool _currently_loading;
100 typedef std::vector<GlobPattern> Globs;
102 Globs _prc_encrypted_patterns;
103 Globs _prc_executable_patterns;
118 typedef std::vector<ConfigFile> ConfigFiles;
123 INLINE std::ostream &operator << (std::ostream &out,
const ConfigPageManager &pageMgr);
This class is the base class of both ConfigVariable and ConfigVariableCore.
A global object that maintains the set of ConfigPages everywhere in the world, and keeps them in sort...
A page of ConfigDeclarations that may be loaded or unloaded.
This class stores a list of directories that can be searched, in order, to locate a particular file.
The name of a file, such as a texture file or an Egg file.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.