Albert
|
#include <albert/plugindependency.h>
Convenience holder class for plugin hard dependencies.
Fetches and holds a weak pointer an extension id
of type T
. This class is intended to be initialized on plugin constuction without a try-catch block.
Public Member Functions | |
StrongDependency (QString id) | |
Constructs a StrongDependency with id . | |
![]() | |
operator T () const | |
operator bool () const | |
const T * | operator-> () const |
T * | operator-> () |
const T * | get () const |
T * | get () |
Additional Inherited Members | |
![]() | |
T * | dependency_ = nullptr |
|
inline |
Constructs a StrongDependency with id
.
std::runtime_error | if the dependency is not available or not of type T . |