Fonctions membres publiques

Référence de la classe Castor::DynamicLibrary

Librairie dynamique (Dll, shared lib). Plus de détails...

Graphe d'héritage de Castor::DynamicLibrary:
Graphe de collaboration de Castor::DynamicLibrary:

Liste de tous les membres

Fonctions membres publiques

 DynamicLibrary () throw ()
 Constructeur par défaut.
 DynamicLibrary (DynamicLibrary const &p_lib) throw ()
 Constructeur par copie.
 DynamicLibrary (DynamicLibrary &&p_lib) throw ()
 Constructeur par déplacement.
 ~DynamicLibrary () throw ()
 Destructeur.
DynamicLibraryoperator= (DynamicLibrary const &p_lib)
 Opérateur d'affectation par copie.
DynamicLibraryoperator= (DynamicLibrary &&p_lib)
 Opérateur d'affectation par déplacement.
bool Open (xchar const *p_szPath) throw ()
 Charge une librairie à partir d'un chemin.
bool Open (String const &p_strPath) throw ()
 Charge une librairie à partir d'un chemin.
bool Open (Path const &p_pathFile) throw ()
 Charge une librairie à partir d'un chemin.
template<typename FuncType >
bool GetFunction (FuncType &p_pfnFunction, char const *p_szName) throw ()
 Récupère une fonction.
template<typename FuncType >
bool GetFunction (FuncType &p_pfnFunction, wchar_t const *p_wszName) throw ()
 Récupère une fonction.
template<typename FuncType >
bool GetFunction (FuncType &p_pfnFunction, String const &p_strName) throw ()
 Récupère une fonction.
bool IsOpen () const
 Dit si la DynamicLibrary est ouverte (chargée).
Path const & GetPath () const
 Récupère le chemin vers le fichier.

Description détaillée

Librairie dynamique (Dll, shared lib).

Auteur:
Sylvain DOREMUS
Version:
0.6.1.0
Date:
03/01/2011
Remarques:
Charge une librairie et permet l'accès a ses fonction de manière indépendante de l'OS

Documentation des constructeurs et destructeur

Castor::DynamicLibrary::DynamicLibrary (  )  throw ()

Constructeur par défaut.

Castor::DynamicLibrary::DynamicLibrary ( DynamicLibrary const &  p_lib  )  throw ()

Constructeur par copie.

Paramètres:
[in] p_lib La DynamicLibrary à copier
Castor::DynamicLibrary::DynamicLibrary ( DynamicLibrary &&  p_lib  )  throw ()

Constructeur par déplacement.

Paramètres:
[in] p_lib La DynamicLibrary à déplacer
Castor::DynamicLibrary::~DynamicLibrary (  )  throw ()

Destructeur.


Documentation des fonctions membres

template<typename FuncType >
bool Castor::DynamicLibrary::GetFunction ( FuncType &  p_pfnFunction,
char const *  p_szName 
) throw () [inline]

Récupère une fonction.

Paramètres:
[in] p_pfnFunction Reçoit la fonction
[in] p_szName Le nom de la fonction
Renvoie:
true si la fonction a été correctement récupérée

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

template<typename FuncType >
bool Castor::DynamicLibrary::GetFunction ( FuncType &  p_pfnFunction,
String const &  p_strName 
) throw () [inline]

Récupère une fonction.

Paramètres:
[in] p_pfnFunction Reçoit la fonction
[in] p_strName Le nom de la fonction
Renvoie:
true si la fonction a été correctement récupérée
template<typename FuncType >
bool Castor::DynamicLibrary::GetFunction ( FuncType &  p_pfnFunction,
wchar_t const *  p_wszName 
) throw () [inline]

Récupère une fonction.

Paramètres:
[in] p_pfnFunction Reçoit la fonction
[in] p_wszName Le nom de la fonction
Renvoie:
true si la fonction a été correctement récupérée

Voici le graphe d'appel pour cette fonction :

Path const& Castor::DynamicLibrary::GetPath (  )  const [inline]

Récupère le chemin vers le fichier.

Renvoie:
Le chemin
bool Castor::DynamicLibrary::IsOpen (  )  const [inline]

Dit si la DynamicLibrary est ouverte (chargée).

Renvoie:
true si elle est ouverte, false sinon
bool Castor::DynamicLibrary::Open ( xchar const *  p_szPath  )  throw ()

Charge une librairie à partir d'un chemin.

Paramètres:
[in] p_szPath Le chemin du fichier
Renvoie:
true si la librarie s'est chargée correctement
bool Castor::DynamicLibrary::Open ( Path const &  p_pathFile  )  throw ()

Charge une librairie à partir d'un chemin.

Paramètres:
[in] p_pathFile Le chemin du fichier
Renvoie:
true si la librarie s'est chargée correctement
bool Castor::DynamicLibrary::Open ( String const &  p_strPath  )  throw ()

Charge une librairie à partir d'un chemin.

Paramètres:
[in] p_strPath Le chemin du fichier
Renvoie:
true si la librarie s'est chargée correctement
DynamicLibrary& Castor::DynamicLibrary::operator= ( DynamicLibrary &&  p_lib  ) 

Opérateur d'affectation par déplacement.

Paramètres:
[in] p_lib La DynamicLibrary à déplacer
Renvoie:
Une référence sur cette DynamicLibrary
DynamicLibrary& Castor::DynamicLibrary::operator= ( DynamicLibrary const &  p_lib  ) 

Opérateur d'affectation par copie.

Paramètres:
[in] p_lib La DynamicLibrary à copier
Renvoie:
Une référence sur cette DynamicLibrary

La documentation de cette classe a été générée à partir du fichier suivant :
 Tout Classes Espaces de nommage Fichiers Fonctions Variables Définition de type Énumérations Valeurs énumérées Amis Macros