libyui  3.0.10
YGraphPlugin Class Reference

#include <YGraphPlugin.h>

Inheritance diagram for YGraphPlugin:
Collaboration diagram for YGraphPlugin:

List of all members.

Public Member Functions

virtual YGraphcreateGraph (YWidget *parent, const std::string &filename, const std::string &layoutAlgorithm)=0

Protected Member Functions

 YGraphPlugin (const char *pluginLibBaseName)
virtual ~YGraphPlugin ()

Detailed Description

Abstract base class for simplified access to UI plugins for graph widget.

Definition at line 37 of file YGraphPlugin.h.


Constructor & Destructor Documentation

YGraphPlugin::YGraphPlugin ( const char *  pluginLibBaseName) [inline, protected]

Constructor: Load the specified plugin library from the standard UI plugin directory (/usr/lib/yui/).

Definition at line 44 of file YGraphPlugin.h.

virtual YGraphPlugin::~YGraphPlugin ( ) [inline, protected, virtual]

Destructor. Calls dlclose() which will unload the plugin library if it is no longer used, i.e. if the reference count dlopen() uses reaches 0.

Definition at line 51 of file YGraphPlugin.h.


Member Function Documentation

virtual YGraph* YGraphPlugin::createGraph ( YWidget parent,
const std::string &  filename,
const std::string &  layoutAlgorithm 
) [pure virtual]

Create a graph widget. Derived classes need to implement this.

This might return 0 if the plugin lib could not be loaded or if the appropriate symbol could not be located in the plugin lib.


The documentation for this class was generated from the following file:
 All Classes Functions Variables Enumerations Friends