AmPlugIn Class Reference

Container for loaded Plug-ins. More...

#include <AmPlugIn.h>


Public Member Functions

int load (const string &directory)
amci_payload_t * payload (int payload_id)
const map< int, amci_payload_t * > & getPayloads ()
amci_inoutfmt_t * fileFormat (const string &fmt_name, const string &ext="")
amci_subtype_t * subtype (amci_inoutfmt_t *iofmt, int subtype)
amci_codec_t * codec (int id)
AmSessionFactorygetFactory4App (const string &app_name)
AmSessionEventHandlerFactorygetFactory4Seh (const string &name)
AmDynInvokeFactorygetFactory4Di (const string &name)
bool registerFactory4App (const string &app_name, AmSessionFactory *f)

Static Public Member Functions

static AmPlugIninstance ()


Detailed Description

Container for loaded Plug-ins.


Member Function Documentation

amci_codec_t * AmPlugIn::codec ( int  id  ) 

Codec lookup function.

Parameters:
id Codec ID (see amci/codecs.h).
Returns:
NULL if failed.

amci_inoutfmt_t * AmPlugIn::fileFormat ( const string &  fmt_name,
const string &  ext = "" 
)

File format lookup according to the format name and/or file extension.

Parameters:
fmt_name Format name.
ext File extension.
Returns:
NULL if failed.

AmSessionFactory * AmPlugIn::getFactory4App ( const string &  app_name  ) 

Application lookup function

Parameters:
app_name application name
Returns:
NULL if failed (-> application not found).

AmDynInvokeFactory * AmPlugIn::getFactory4Di ( const string &  name  ) 

Dynamic invokation component

AmSessionEventHandlerFactory * AmPlugIn::getFactory4Seh ( const string &  name  ) 

Session event handler lookup function

Parameters:
name application name
Returns:
NULL if failed (-> handler not found).

const map<int,amci_payload_t*>& AmPlugIn::getPayloads (  )  [inline]

Returns:
the suported payloads.

int AmPlugIn::load ( const string &  directory  ) 

Loads all plug-ins from the directory given as parameter.

Returns:
-1 if failed, else 0.

amci_payload_t * AmPlugIn::payload ( int  payload_id  ) 

Payload lookup function.

Parameters:
payload_id Payload ID.
Returns:
NULL if failed .

bool AmPlugIn::registerFactory4App ( const string &  app_name,
AmSessionFactory f 
)

Returns:
true if this record has been inserted.

amci_subtype_t * AmPlugIn::subtype ( amci_inoutfmt_t *  iofmt,
int  subtype 
)

File format's subtype lookup function.

Parameters:
iofmt The file format.
subtype Subtype ID (see plug-in declaration for values).
Returns:
NULL if failed.


The documentation for this class was generated from the following files:
Generated on Thu Mar 8 00:12:46 2007 for Sems by  doxygen 1.4.7
Home |  Recent changes |  Search |  Glossary |  Sitemap |  Login