Changeset 895 in Sophya for trunk/SophyaLib/SysTools/pdlmgr.cc
- Timestamp:
- Apr 12, 2000, 7:49:54 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/SysTools/pdlmgr.cc
r480 r895 18 18 string* PDynLinkMgr::tmpDir = NULL; 19 19 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 20 27 /* --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 */ 21 31 void PDynLinkMgr::SetTmpDir(string const & path) 22 32 { … … 63 73 64 74 /* --Methode-Static-- */ 75 /*! Returns the temporary space path */ 65 76 string& PDynLinkMgr::GetTmpDir() 66 77 { … … 68 79 tmpDir = new string(""); 69 80 char* varenv; 70 if ( (varenv=getenv(" PEIDA_TMP")) != NULL ) *tmpDir = varenv;81 if ( (varenv=getenv("SOPHYA_TMP")) != NULL ) *tmpDir = varenv; 71 82 else if ( (varenv=getenv("TMPDIR")) != NULL ) *tmpDir = varenv; 72 83 } … … 75 86 76 87 /* --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 */ 77 94 PDynLinkMgr* PDynLinkMgr::BuildFromCFile(string const & fname) 78 95 { … … 131 148 132 149 /* --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 */ 133 155 PDynLinkMgr::PDynLinkMgr(string& soname, bool cp) 134 156 { … … 181 203 182 204 /* --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 */ 183 207 PDynLinkMgr::~PDynLinkMgr() 184 208 { … … 196 220 197 221 /* --Methode-- */ 222 /*! Returns a handle to the function named \b funcname. 223 Returns the NULL pointer in case of error */ 198 224 DlFunction PDynLinkMgr::GetFunction(string const & funcname) 199 225 {
Note:
See TracChangeset
for help on using the changeset viewer.