Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   Compound Members  

Yehia::PluginNode Class Reference
[Plugin]

PluginNode Class. More...

#include <plugin.h>

List of all members.

Public Member Functions

 PluginNode (Ptr< Plugin > p=0)
std::string full_name () const
std::string name () const
Ptr< Pluginplugin () const
void set_plugin (Ptr< Plugin > p)
iterator find (const std::string &name)
const_iterator find (const std::string &name) const
Ptr< Pluginoperator[] (const std::string &name) const
iterator insert (const std::string &name, Ptr< Plugin > plugin=0)
bool erase (const std::string &name)


Detailed Description

PluginNode Class.

Represents a node in the plugin tree.


Constructor & Destructor Documentation

Yehia::PluginNode::PluginNode Ptr< Plugin p = 0  )  [inline]
 

Constructor.

Parameters:
p pointer to the plugin.


Member Function Documentation

bool Yehia::PluginNode::erase const std::string &  name  ) 
 

Remove subnode by name.

Parameters:
name Name of subnode to remove.
Returns:
boolean; true if name was found.

const_iterator Yehia::PluginNode::find const std::string &  name  )  const [inline]
 

Find child named name.

Parameters:
name Name of the searched child.

iterator Yehia::PluginNode::find const std::string &  name  ) 
 

Find child named name.

Parameters:
name Name of the searched child.

std::string Yehia::PluginNode::full_name  )  const
 

Get full name.

Returns:
Name, including names of ancestors.

iterator Yehia::PluginNode::insert const std::string &  name,
Ptr< Plugin plugin = 0
 

Insert a plugin.

Returns:
iterator at the inserted node.

std::string Yehia::PluginNode::name  )  const [inline]
 

Get name.

Ptr<Plugin> Yehia::PluginNode::operator[] const std::string &  name  )  const [inline]
 

Find plugin named name.

Returns:
pointer to plugin if found, 0 otherwise.

Ptr<Plugin> Yehia::PluginNode::plugin  )  const [inline]
 

Get plugin.

Returns:
Plugin, if loaded, 0 otherwise.

void Yehia::PluginNode::set_plugin Ptr< Plugin p  )  [inline]
 

Set plugin.

Parameters:
p The plugin


The documentation for this class was generated from the following file:
Generated on Thu May 1 21:13:04 2003 for Yehia by doxygen1.3