List of all members.
Detailed Description
Definition at line 216 of file plugin.
Constructor & Destructor Documentation
inlib::plugin_cache::plugin_cache |
( |
std::ostream & |
a_out | ) |
[inline] |
virtual inlib::plugin_cache::~plugin_cache |
( |
| ) |
[inline, virtual] |
inlib::plugin_cache::plugin_cache |
( |
const plugin_cache & |
a_from | ) |
[inline, protected] |
Member Function Documentation
void inlib::plugin_cache::clear |
( |
| ) |
[inline] |
Definition at line 245 of file plugin.
{
std::map<std::string,plugin*>::iterator it;
for(it = m_cache.begin();it!=m_cache.end();++it) {
delete (*it).second;
}
m_cache.clear();
}
virtual bool inlib::plugin_cache::open |
( |
const std::string & |
a_name, |
|
|
plugin *& |
a_plugin |
|
) |
| [inline, virtual] |
Definition at line 218 of file plugin.
{
std::map<std::string,plugin*>::iterator it = m_cache.find(a_name);
if(it!=m_cache.end()) {
a_plugin = (*it).second;
return true;
}
a_plugin = new plugin(a_name,m_out);
if(!a_plugin->is_opened()) {
m_out << "inlib::can't open plugin " << a_name << std::endl;
delete a_plugin;
a_plugin = 0;
return false;
}
m_cache[a_name] = a_plugin;
return true;
}
Member Data Documentation
The documentation for this class was generated from the following file:
- /Users/barrand/private/dev/softinex/old/inexlib-1.2/inlib/inlib/sys/plugin