Changeset 913 in Sophya for trunk/SophyaLib/SysTools/pdlmgr.cc


Ignore:
Timestamp:
Apr 13, 2000, 5:58:41 PM (25 years ago)
Author:
ansari
Message:

Documentation + Modifs mineures (namespace, etc..) - Reza 13/4/2000

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/SysTools/pdlmgr.cc

    r895 r913  
    1 // This may look like C code, but it is really -*- C++ -*-
    21// Gestionnaire de lien dynamique   -   R. Ansari 12/98
    32// LAL (Orsay) / IN2P3-CNRS  DAPNIA/SPP (Saclay) / CEA
    43
     4#include "pdlmgr.h"
    55#include <stdio.h>
    66#include <stdlib.h>
     
    88#include <iostream.h>
    99
    10 #include "pdlmgr.h"
    1110
    1211// Extension de noms de fichiers Shared libs
     
    2019/*!
    2120  \class SOPHYA::PDynLinkMgr
     21  \ingroup SysTools
    2222  This classes handles the run-time operations related to using shared
    2323  libraries. The present version has been adapted for different Unix
    2424  flavours (Linux, Compaq/Digital Unix, SGI IRIX, IBM AIX, Sun Solaris).
     25  The example here the linking of shared library named "mylib.so"
     26  containing a function \c double \c myfunction(double x).
     27  \code
     28  #include "pdlmgr.h"
     29  typedef double (* AFunctionOfX) (double x);
     30  {
     31  // ...
     32  string soname = "mylib.so";
     33  string funcname = "myfunction";
     34  PDynLinkMgr dyl(son);
     35  AFunctionOfX f = (AFunctionOfX)dyl.GetFunction(funcname);
     36  double x = 3.1425;
     37  if (f != NULL)
     38    cout << " X= " << x << " myfunction(x)=" << f(x) << endl;
     39  // ...
     40  }
     41  \endcode
    2542*/
    2643
Note: See TracChangeset for help on using the changeset viewer.