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


Ignore:
Timestamp:
Apr 12, 2000, 7:49:54 PM (25 years ago)
Author:
ansari
Message:

Documentation de fichiers - Reza 12/4/2000

File:
1 edited

Legend:

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

    r480 r895  
    1818string*  PDynLinkMgr::tmpDir = NULL;
    1919
     20/*!
     21  \class SOPHYA::PDynLinkMgr
     22  This classes handles the run-time operations related to using shared
     23  libraries. The present version has been adapted for different Unix
     24  flavours (Linux, Compaq/Digital Unix, SGI IRIX, IBM AIX, Sun Solaris).
     25*/
     26
    2027/* --Methode-Static-- */
     28/*! Sets the path for a temporary space where shared libraries are copied.
     29    The path is appended to \b LD_LIBRARY_PATH
     30*/
    2131void PDynLinkMgr::SetTmpDir(string const & path)
    2232{
     
    6373
    6474/* --Methode-Static-- */
     75/*! Returns the temporary space path */
    6576string& PDynLinkMgr::GetTmpDir()
    6677{
     
    6879  tmpDir = new string("");
    6980  char* varenv;
    70   if ( (varenv=getenv("PEIDA_TMP")) != NULL )  *tmpDir = varenv;
     81  if ( (varenv=getenv("SOPHYA_TMP")) != NULL )  *tmpDir = varenv;
    7182  else if ( (varenv=getenv("TMPDIR")) != NULL )  *tmpDir = varenv;
    7283  }
     
    7586
    7687/* --Methode-Static-- */
     88/*! Compiles the C source file named \b fname and creates the
     89    corresponding shared library linking against the standard
     90    C library (-lc) and the math library (-lm).
     91    Returns a pointer to the created PDynLinkMgr object (by new).
     92    Returns the NULL pointer in case of errors.
     93*/
    7794PDynLinkMgr* PDynLinkMgr::BuildFromCFile(string const & fname)
    7895{
     
    131148
    132149/* --Methode-- */
     150/*! The constructor.
     151    \param soname : Name of the shared library. ".so" is appended
     152    to the name if no dot "." is found in the name.
     153    \param cp : if true, copies the shared library in the temporary space.
     154*/
    133155PDynLinkMgr::PDynLinkMgr(string& soname, bool cp)
    134156{
     
    181203
    182204/* --Methode-- */
     205/*! Destructor. Closes the shared library. Removes the file if it had been
     206    copied in the temporary space, or generated by \b BuildFromCFile */
    183207PDynLinkMgr::~PDynLinkMgr()
    184208{
     
    196220
    197221/* --Methode-- */
     222/*! Returns a handle to the function named \b funcname.
     223    Returns the NULL pointer in case of error          */
    198224DlFunction PDynLinkMgr::GetFunction(string const & funcname)
    199225{
Note: See TracChangeset for help on using the changeset viewer.