ConfigPage

Inheritance:

Methods of ConfigPage:

clear
void ConfigPage::clear(void);

Undocumented function.

deleteDeclaration
bool ConfigPage::delete_declaration(ConfigDeclaration *decl);

Undocumented function.

getDeclaration
ConfigDeclaration const *ConfigPage::get_declaration(int n) const;

Undocumented function.

getDefaultPage
static ConfigPage *ConfigPage::get_default_page(void);

Undocumented function.

getLocalPage
static ConfigPage *ConfigPage::get_local_page(void);

Undocumented function.

getName
string const &ConfigPage::get_name(void) const;

Description: Returns the name of the page. If the page was loaded from a .prc file, this is usually the filename.

getNumDeclarations
int ConfigPage::get_num_declarations(void) const;

Undocumented function.

getPageSeq
int ConfigPage::get_page_seq(void) const;

Description: Returns the sequence number of the page.
Sequence numbers for a particular class (implicit vs. explicit) of pages are assigned as each page is loaded; each page is given a higher sequence number than all the pages loaded before it.
The implicit_load pages, which are discovered in the file system automatically, have a different set of sequence numbers than the explicit pages.

getSignature
string const &ConfigPage::get_signature(void) const;

Description: Returns the raw binary signature that was found in the prc file, if any. This method is probably not terribly useful for most applications.

getStringValue
string ConfigPage::get_string_value(int n) const;

Undocumented function.

getTrustLevel
int ConfigPage::get_trust_level(void) const;

Description: Returns the trust level associated with this page. An untrusted page is trust level 0; if the page was loaded from a signed .prc file, its trust level is the index number of the certificate that signed it. Generally, a higher trust level value represents a greater level of trust.

getVariableName
string ConfigPage::get_variable_name(int n) const;

Undocumented function.

isImplicit
bool ConfigPage::is_implicit(void) const;

Description: Returns true if the page was loaded by implicitly searching the config path on startup, or false if it was explicitly loaded by dynamic code after initial startup.

isSpecial
bool ConfigPage::is_special(void) const;

Description: Returns true if this is the special "default" or "local" page, or false if it is an ordinary page, e.g. an implicit page loaded from a prc file at startup, or an explicit page created by ConfigPageManager::make_explicit_page().

isVariableUsed
bool ConfigPage::is_variable_used(int n) const;

Undocumented function.

makeDeclaration
ConfigDeclaration *ConfigPage::make_declaration(string const &variable, string const &value);

Undocumented function.

output
void ConfigPage::output(ostream &out) const;

Undocumented function.

readEncryptedPrc
bool ConfigPage::read_encrypted_prc(istream &in, string const &password);

Undocumented function.

readPrc
bool ConfigPage::read_prc(istream &in);

Undocumented function.

setTrustLevel
void ConfigPage::set_trust_level(int trust_level);

Description: Explicitly sets the trust level on this particular page. Note that any subsequent changes to the page, or to any variable declarations on it, will reset the trust level to zero.

write
void ConfigPage::write(ostream &out) const;

Undocumented function.