NSPipeline::TUnitLoader Class Reference

Tato trida nacte pracovni jednotku ze zadane DLL. More...

#include <UnitLoader.h>

Collaboration diagram for NSPipeline::TUnitLoader:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TUnitLoader (void)
 Konstruktor.
 ~TUnitLoader (void)
 Destruktor.
TUnitInterfaceGetUnit_BASIC (const char *dllName, TDispatcherInterface *dispatcher)
 Ziska jednotku ze zadane knihovny.
TUnitInterfaceGetUnit_STRING (const char *dllName, TDispatcherInterface *dispatcher, const char *str)
 Ziska jednotku ze zadane knihovny.

Protected Member Functions

 TUnitLoader (const TUnitLoader &orig)
 falesny kopirovaci konstruktor
void operator= (const TUnitLoader &orig)
 falesny prirazovaci operator

Private Attributes

TUnitInterfacem_unit
 vracena jednotka z DLL
HMODULE m_library
 pouzita knihovna

Detailed Description

Tato trida nacte pracovni jednotku ze zadane DLL.

Vytvoreny objekt v sobe udrzuje nactenou DLL.

Jakmile objekt vrati jednotku pak je tato ulozena a je vracena vzdy.

Pred znicenim tohoto objektu musi byt jednotka jim vytvorena take znicena.

Definition at line 39 of file UnitLoader.h.


Constructor & Destructor Documentation

TUnitLoader::TUnitLoader void   ) 
 

Konstruktor.

Definition at line 19 of file UnitLoader.cpp.

References m_library, and m_unit.

TUnitLoader::~TUnitLoader void   ) 
 

Destruktor.

Zavre otevrenou knihovnu (pokud existuje).

Pred volanim destruktoru musi byt jednotka z dane DLL knihovny znicena.

Definition at line 32 of file UnitLoader.cpp.

References m_library.

NSPipeline::TUnitLoader::TUnitLoader const TUnitLoader orig  )  [protected]
 

falesny kopirovaci konstruktor


Member Function Documentation

TUnitInterface * TUnitLoader::GetUnit_BASIC const char *  dllName,
TDispatcherInterface dispatcher
 

Ziska jednotku ze zadane knihovny.

Metoda muze vratit ukazatel na drive vracenou jednotku, pokud uz byla nekdy nejaka jednotka uvnitr objektu vytvorena.

Pri chybe vraci metoda NULL.

Parameters:
dllName [in] jmeno souboru s knihovnou
dispatcher [in] ukazatel na platny dispatcher pouzity v aplikaci

Definition at line 53 of file UnitLoader.cpp.

References NSPipeline::ENUM_DLLTYPE_BASIC, m_library, and m_unit.

Referenced by main().

TUnitInterface * TUnitLoader::GetUnit_STRING const char *  dllName,
TDispatcherInterface dispatcher,
const char *  str
 

Ziska jednotku ze zadane knihovny.

Metoda muze vratit ukazatel na drive vracenou jednotku, pokud uz byla nekdy nejaka jednotka uvnitr objektu vytvorena.

Pri chybe vraci metoda NULL.

Parameters:
dllName [in] jmeno souboru s knihovnou
dispatcher [in] ukazatel na platny dispatcher pouzity v aplikaci
str [in] retezec predany jednotce jako druhy parametr

Definition at line 124 of file UnitLoader.cpp.

References NSPipeline::ENUM_DLLTYPE_STRING, m_library, and m_unit.

void NSPipeline::TUnitLoader::operator= const TUnitLoader orig  )  [protected]
 

falesny prirazovaci operator


Member Data Documentation

HMODULE NSPipeline::TUnitLoader::m_library [private]
 

pouzita knihovna

Definition at line 58 of file UnitLoader.h.

Referenced by GetUnit_BASIC(), GetUnit_STRING(), TUnitLoader(), and ~TUnitLoader().

TUnitInterface* NSPipeline::TUnitLoader::m_unit [private]
 

vracena jednotka z DLL

Definition at line 57 of file UnitLoader.h.

Referenced by GetUnit_BASIC(), GetUnit_STRING(), and TUnitLoader().


The documentation for this class was generated from the following files:
Generated on Sat Nov 17 16:26:12 2007 for Image Processing Pipeline by  doxygen 1.4.6-NO