|
dmlite
0.6
|
#include <dmlite.h>

Public Member Functions | |
| StackInstance (PluginManager *pm) | |
| Constructor. More... | |
| ~StackInstance () | |
| Destructor. More... | |
| void | set (const std::string &key, const boost::any &value) |
| boost::any | get (const std::string &key) const |
| void | erase (const std::string &key) |
| void | eraseAll (void) throw () |
| Erase all the values set previously. More... | |
| bool | contains (const std::string &key) throw () |
| PluginManager * | getPluginManager () |
| Get the plugin manager. More... | |
| void | setSecurityCredentials (const SecurityCredentials &cred) |
| Set the security credentials. More... | |
| void | setSecurityContext (const SecurityContext &ctx) |
| Set the security context. More... | |
| const SecurityContext * | getSecurityContext (void) const throw () |
| Return the security context. More... | |
| Authn * | getAuthn () |
| Get the UsersDb interface. More... | |
| INode * | getINode () |
| Get the INode. More... | |
| Catalog * | getCatalog () |
| Get the catalog. More... | |
| bool | isTherePoolManager () throw () |
| PoolManager * | getPoolManager () |
| Get the PoolManager. More... | |
| PoolDriver * | getPoolDriver (const std::string &poolType) |
| Get a pool driver. More... | |
| IODriver * | getIODriver () |
| Get the IO driver. More... | |
Private Member Functions | |
| void | setSecurityContextImpl_ (void) |
Private Attributes | |
| PluginManager * | pluginManager_ |
| Authn * | authn_ |
| INode * | inode_ |
| Catalog * | catalog_ |
| PoolManager * | poolManager_ |
| IODriver * | ioDriver_ |
| SecurityContext * | secCtx_ |
| std::map< std::string, PoolDriver * > | poolDrivers_ |
| std::map< std::string, boost::any > | stackMsg_ |
We need to have something that allows one plugin stack to access another plugin stack, so this represents a instantiation of each plugin stack. It also keeps common state: user credentials, security context, and run-time parameters (see set)
| dmlite::StackInstance::StackInstance | ( | PluginManager * | pm | ) |
Constructor.
| dmlite::StackInstance::~StackInstance | ( | ) |
Destructor.
| bool dmlite::StackInstance::contains | ( | const std::string & | key | ) | |
| throw | ( | ||||
| ) | |||||
Checks if the stack instance contains a value associated with the given key.
| void dmlite::StackInstance::erase | ( | const std::string & | key | ) |
Erase a key,value pair from.
| key | The key of the pair to be erased. |
| void dmlite::StackInstance::eraseAll | ( | void | ) | ||
| throw | ( | ||||
| ) | |||||
Erase all the values set previously.
| boost::any dmlite::StackInstance::get | ( | const std::string & | key | ) | const |
Get a value associated to a key. This can be used to pass advanced parameters to and from the plugins.
| key | The key parameter. |
| Authn* dmlite::StackInstance::getAuthn | ( | ) |
Get the UsersDb interface.
| Catalog* dmlite::StackInstance::getCatalog | ( | ) |
Get the catalog.
| IODriver* dmlite::StackInstance::getIODriver | ( | ) |
Get the IO driver.
| PluginManager* dmlite::StackInstance::getPluginManager | ( | ) |
Get the plugin manager.
| PoolDriver* dmlite::StackInstance::getPoolDriver | ( | const std::string & | poolType | ) |
Get a pool driver.
| PoolManager* dmlite::StackInstance::getPoolManager | ( | ) |
Get the PoolManager.
| const SecurityContext* dmlite::StackInstance::getSecurityContext | ( | void | ) | const | |
| throw | ( | ||||
| ) | |||||
Return the security context.
| bool dmlite::StackInstance::isTherePoolManager | ( | ) | ||
| throw | ( | |||
| ) | ||||
| void dmlite::StackInstance::set | ( | const std::string & | key, |
| const boost::any & | value | ||
| ) |
Set a key-value pair associated with this context. This can be used to pass advanced parameters to and from the plugins.
| key | The key. |
| value | The value. |
| void dmlite::StackInstance::setSecurityContext | ( | const SecurityContext & | ctx | ) |
Set the security context.
|
private |
| void dmlite::StackInstance::setSecurityCredentials | ( | const SecurityCredentials & | cred | ) |
Set the security credentials.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
1.8.15