scim
1.4.18
|
The class to manipulate the config modules. More...
#include <scim_config_module.h>
Public Member Functions | |
ConfigModule () | |
Default constructor. More... | |
ConfigModule (const String &name) | |
Constructor. More... | |
bool | load (const String &name) |
Load a module by its name. More... | |
bool | valid () const |
Check if a module is loaded and initialized successfully. More... | |
ConfigPointer | create_config () const |
Create a configuration object from this module. More... | |
The class to manipulate the config modules.
This is a wrapper of scim::Module class, which is specially for manipulating the config modules.
scim::ConfigModule::ConfigModule | ( | ) |
Default constructor.
scim::ConfigModule::ConfigModule | ( | const String & | name | ) |
Constructor.
name | - the module's name, eg. "simple". |
bool scim::ConfigModule::load | ( | const String & | name | ) |
Load a module by its name.
Load a module into memory. If another module has been loaded into this object, then the old module will be unloaded first. If the old module is resident, false will be returned, and the old module will be untouched.
name | - the module's name, eg. "simple". |
bool scim::ConfigModule::valid | ( | ) | const |
Check if a module is loaded and initialized successfully.
ConfigPointer scim::ConfigModule::create_config | ( | ) | const |
Create a configuration object from this module.
The type of newly created configuration object must be a derived class of scim::ConfigBase.