code::ExtensionLoader Class Reference

List of all members.

Detailed Description

This class, used by Baseline will use the environment variable W2_EXTENSION_LIBS which is a colon-separated list of libraries e.g:.

     setenv W2_EXTENSION_LIBS hires:yourformat
     

The extension library should self-register. You can't use _init because it is currently broken on Linux due to crti.S exporting _init() as well. Here is one way to do it:

     namespace{
       struct HiresSelfRegister{
         HiresSelfRegister()
         {
call your factory functions here
            HiresIntroducer :: initialize();
         }
       };
       HiresSelfRegister myregisterer;
     }
     

Author:
Lakshman
Version:
Id
code_ExtensionLoader.h,v 1.4 2009/06/02 20:17:38 lakshman Exp


Public Member Functions

bool hasLoaded (const std::string &basename) const
 if basename="hires", this returns whether libhires.so has been loaded in.
bool load (const std::string &basename)
 a way to programmatically force the load of new libraries.
 ~ExtensionLoader ()

Static Public Member Functions

static ExtensionLoaderinstance ()


Constructor & Destructor Documentation

code::ExtensionLoader::~ExtensionLoader (  ) 


Member Function Documentation

bool code::ExtensionLoader::hasLoaded ( const std::string &  basename  )  const

if basename="hires", this returns whether libhires.so has been loaded in.

static ExtensionLoader& code::ExtensionLoader::instance (  )  [static]

bool code::ExtensionLoader::load ( const std::string &  basename  ) 

a way to programmatically force the load of new libraries.

Returns:
true on success.


Generated on Fri May 4 13:40:12 2012 for WDSS-IIw2 by  doxygen 1.4.7