32 ConfigPage(
const std::string &name,
bool implicit_load,
int page_seq);
36 INLINE
bool operator < (
const ConfigPage &other)
const;
42 INLINE
const std::string &get_name()
const;
43 MAKE_PROPERTY(name, get_name);
45 INLINE
bool is_special()
const;
46 INLINE
bool is_implicit()
const;
47 MAKE_PROPERTY(special, is_special);
48 MAKE_PROPERTY(implicit, is_implicit);
50 void set_sort(
int sort);
51 INLINE
int get_sort()
const;
52 MAKE_PROPERTY(sort, get_sort, set_sort);
54 INLINE
int get_page_seq()
const;
55 INLINE
int get_trust_level()
const;
56 INLINE
void set_trust_level(
int trust_level);
57 INLINE
const std::string &get_signature()
const;
58 MAKE_PROPERTY(page_seq, get_page_seq);
59 MAKE_PROPERTY(trust_level, get_trust_level, set_trust_level);
60 MAKE_PROPERTY(signature, get_signature);
63 bool read_prc(std::istream &in);
64 bool read_encrypted_prc(std::istream &in,
const std::string &password);
66 ConfigDeclaration *make_declaration(
const std::string &variable,
const std::string &value);
70 size_t get_num_declarations()
const;
73 std::string get_variable_name(
size_t n)
const;
74 std::string get_string_value(
size_t n)
const;
75 bool is_variable_used(
size_t n)
const;
77 MAKE_SEQ_PROPERTY(declarations, get_num_declarations, modify_declaration);
79 void output(std::ostream &out)
const;
80 void output_brief_signature(std::ostream &out)
const;
81 void write(std::ostream &out)
const;
84 INLINE
void make_dirty();
85 void read_prc_line(
const std::string &line);
86 static unsigned int hex_digit(
unsigned char digit);
95 typedef std::vector<ConfigDeclaration *> Declarations;
96 Declarations _declarations;
98 std::string _signature;
104 #endif // HAVE_OPENSSL 112 INLINE std::ostream &operator << (std::ostream &out,
const ConfigPage &page);
The internal definition of a ConfigVariable.
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A single declaration of a config variable, typically defined as one line in a .prc file,...