Tulip  5.2.1
Large graphs analysis and drawing
tlp::WithDependency Class Reference

#include <WithDependency.h>

+ Inheritance diagram for tlp::WithDependency:

Public Member Functions

void addDependency (const char *name, const char *release)
 
const std::list< Dependency > & dependencies () const
 

Protected Attributes

std::list< Dependency_dependencies
 

Detailed Description

Describes the dependencies of a plug-in on other plug-ins, identified by their name and their version number.

This allows to have a plug-in inner workings depend on other plug-ins without linking them statically, or hoping depended plug-in will be there.

Definition at line 71 of file WithDependency.h.

Member Function Documentation

◆ addDependency()

void tlp::WithDependency::addDependency ( const char *  name,
const char *  release 
)
inline

Adds a dependency upon another plug-in.

Parameters
factoryThe type name of the plug-in (e.g. 'DoubleAlgorithm')
nameThe name of the plug-in, as registered in the Tulip plug-in system.
releaseThe required version of the depended plug-in.

Definition at line 86 of file WithDependency.h.

+ Here is the call graph for this function:

◆ dependencies()

const std::list<Dependency>& tlp::WithDependency::dependencies ( ) const
inline

Gets the list of Dependencies of this plug-in.

Returns
list<Dependency> The list of dependencies of this plug-in.

Definition at line 95 of file WithDependency.h.

Member Data Documentation

◆ _dependencies

std::list<Dependency> tlp::WithDependency::_dependencies
protected

The inner list of dependencies.

Definition at line 76 of file WithDependency.h.