TuttleOFX  1
tuttle::host::ofx::OfxhPlugin Class Reference

#include <OfxhPlugin.hpp>

Inheritance diagram for tuttle::host::ofx::OfxhPlugin:
Collaboration diagram for tuttle::host::ofx::OfxhPlugin:

Public Types

typedef OfxhPlugin This

Public Member Functions

 OfxhPlugin ()
 OfxhPlugin (OfxhPluginBinary &bin, int idx, OfxPlugin &o)
 OfxhPlugin (OfxhPluginBinary &bin, int idx, const std::string &api, int apiVersion, const std::string &identifier, const std::string &rawIdentifier, int majorVersion, int minorVersion)
virtual ~OfxhPlugin ()=0
bool operator== (const This &other) const
bool operator!= (const This &other) const
void setBinary (OfxhPluginBinary &binary)
OfxhPluginBinarygetBinary ()
const OfxhPluginBinarygetBinary () const
void setIsSupported (bool isSupported)
bool isSupported () const
int getIndex () const
bool trumps (OfxhPlugin &other)
virtual void setApiHandler (APICache::OfxhPluginAPICacheI &)=0
virtual
APICache::OfxhPluginAPICacheI
getApiHandler ()=0
virtual const
APICache::OfxhPluginAPICacheI
getApiHandler () const =0

Protected Attributes

OfxhPluginBinary_binary
 the file I live inside
int _index
 where I live inside that file
bool _isSupported
 Indicates if the plugin can be loaded (actions: Load and Describe)

Private Member Functions

 OfxhPlugin (const This &)
 hidden
OfxhPluginoperator= (const This &)
 hidden
template<class Archive >
void serialize (Archive &ar, const unsigned int version)

Friends

class boost::serialization::access

Detailed Description

class that we use to manipulate a plugin.

Owned by the PluginBinary it lives inside. Plugins can only be pass about either by pointer or reference.

Definition at line 19 of file OfxhPlugin.hpp.


Member Typedef Documentation


Constructor & Destructor Documentation

tuttle::host::ofx::OfxhPlugin::OfxhPlugin ( const This ) [private]

hidden

tuttle::host::ofx::OfxhPlugin::OfxhPlugin ( ) [inline]

Definition at line 34 of file OfxhPlugin.hpp.

tuttle::host::ofx::OfxhPlugin::OfxhPlugin ( OfxhPluginBinary bin,
int  idx,
OfxPlugin &  o 
) [inline]

construct this based on the struct returned by the getNthPlugin() in the binary

Definition at line 43 of file OfxhPlugin.hpp.

tuttle::host::ofx::OfxhPlugin::OfxhPlugin ( OfxhPluginBinary bin,
int  idx,
const std::string &  api,
int  apiVersion,
const std::string &  identifier,
const std::string &  rawIdentifier,
int  majorVersion,
int  minorVersion 
) [inline]

construct me from the cache

Definition at line 52 of file OfxhPlugin.hpp.

tuttle::host::ofx::OfxhPlugin::~OfxhPlugin ( ) [pure virtual]

Definition at line 7 of file OfxhPlugin.cpp.


Member Function Documentation

virtual const APICache::OfxhPluginAPICacheI& tuttle::host::ofx::OfxhPlugin::getApiHandler ( ) const [pure virtual]
OfxhPluginBinary& tuttle::host::ofx::OfxhPlugin::getBinary ( ) [inline]
const OfxhPluginBinary& tuttle::host::ofx::OfxhPlugin::getBinary ( ) const [inline]

Definition at line 69 of file OfxhPlugin.hpp.

References _binary.

int tuttle::host::ofx::OfxhPlugin::getIndex ( ) const [inline]

Definition at line 80 of file OfxhPlugin.hpp.

References _index.

Referenced by tuttle::host::ofx::OfxhPluginLoadGuard::OfxhPluginLoadGuard().

bool tuttle::host::ofx::OfxhPlugin::isSupported ( ) const [inline]

Definition at line 75 of file OfxhPlugin.hpp.

References _isSupported.

Referenced by setIsSupported().

bool tuttle::host::ofx::OfxhPlugin::operator!= ( const This other) const [inline]

Definition at line 65 of file OfxhPlugin.hpp.

References operator==().

Here is the call graph for this function:

OfxhPlugin& tuttle::host::ofx::OfxhPlugin::operator= ( const This ) [private]

hidden

bool tuttle::host::ofx::OfxhPlugin::operator== ( const This other) const

Definition at line 9 of file OfxhPlugin.cpp.

References _index.

Referenced by operator!=().

template<class Archive >
void tuttle::host::ofx::OfxhPlugin::serialize ( Archive &  ar,
const unsigned int  version 
) [inline, private]

Reimplemented from tuttle::host::ofx::OfxhPluginDesc.

Reimplemented in tuttle::host::ofx::imageEffect::OfxhImageEffectPlugin.

Definition at line 114 of file OfxhPlugin.hpp.

References _index, and _isSupported.

virtual void tuttle::host::ofx::OfxhPlugin::setApiHandler ( APICache::OfxhPluginAPICacheI ) [pure virtual]
void tuttle::host::ofx::OfxhPlugin::setBinary ( OfxhPluginBinary binary) [inline]

Definition at line 67 of file OfxhPlugin.hpp.

References _binary.

void tuttle::host::ofx::OfxhPlugin::setIsSupported ( bool  isSupported) [inline]

Definition at line 71 of file OfxhPlugin.hpp.

References _isSupported, and isSupported().

Referenced by tuttle::host::ofx::imageEffect::OfxhImageEffectPluginCache::loadFromPlugin().

Here is the call graph for this function:


Friends And Related Function Documentation

friend class boost::serialization::access [friend]

Reimplemented from tuttle::host::ofx::OfxhPluginDesc.

Reimplemented in tuttle::host::ofx::imageEffect::OfxhImageEffectPlugin.

Definition at line 112 of file OfxhPlugin.hpp.


Field Documentation

the file I live inside

Definition at line 29 of file OfxhPlugin.hpp.

Referenced by getBinary(), and setBinary().

where I live inside that file

Definition at line 30 of file OfxhPlugin.hpp.

Referenced by getIndex(), operator==(), and serialize().

Indicates if the plugin can be loaded (actions: Load and Describe)

Definition at line 31 of file OfxhPlugin.hpp.

Referenced by isSupported(), serialize(), and setIsSupported().


The documentation for this class was generated from the following files: