Changeset 174 in Sophya
- Timestamp:
- Dec 23, 1998, 12:50:10 PM (27 years ago)
- Location:
- trunk/SophyaPI/PIext
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/piacmd.cc
r171 r174 155 155 cout << "exec filename -- set varname string -- clr varname -- listvars \n"; 156 156 cout << "traceon/off -- timingon/off -- shell cmdline\n"; 157 cout << "link fnameso f1 [f2 f3 f4 f5] -- call userf [arg1 arg2 ...]\n";157 cout << "link fnameso f1 [f2 f3] -- call userf [arg1 arg2 ...]\n"; 158 158 cout << "zone nx ny -- gratt attributes_list -- stacknext \n"; 159 159 cout << "openfits file -- openppf file -- saveall file -- listobjs --\n"; … … 234 234 // >>>>>>>>>>> Link dynamique de fonctions C++ 235 235 else if (kw == "link" ) { 236 if (tokens.size() < 2) { cout << "PIACmd::Do() Usage: link fnameso f1 [f2 f3 f4 f5]" << endl; return(0); }236 if (tokens.size() < 2) { cout << "PIACmd::Do() Usage: link fnameso f1 [f2 f3]" << endl; return(0); } 237 237 string sph = ""; 238 for(int gg=0; gg< 4; gg++) tokens.push_back(sph);239 int rc = LinkUserFuncs(tokens[0], tokens[1], tokens[2], tokens[3] , tokens[4], tokens[5]);238 for(int gg=0; gg<5; gg++) tokens.push_back(sph); 239 int rc = LinkUserFuncs(tokens[0], tokens[1], tokens[2], tokens[3]); 240 240 if (rc == 0) cout << "PIAcmd::Do(): Link from " << tokens[0] << " OK " << endl; 241 241 } … … 594 594 595 595 /* --Methode-- */ 596 int PIACmd::LinkUserFuncs(string& fnameso, string& func1, string& func2, string& func3 ,597 string& func4, string& func5)596 int PIACmd::LinkUserFuncs(string& fnameso, string& func1, string& func2, string& func3) 597 // string& func4, string& func5) 598 598 { 599 599 string cmd; … … 634 634 else cerr << "PIACmd/LinkUserFuncs_Erreur: Erreur linking " << func3 << endl; 635 635 636 /* Pb compile g++ 2.7.2 636 637 if ((func4.length() < 1) || (func4 == "-") || (func4 == ".") ) goto fin; 637 638 // f = (DlUserProcFunction) dlsym(dlhandle, func4.c_str()); … … 645 646 if (f) { nok++; usfmap[func5] = f; } 646 647 else cerr << "PIACmd/LinkUserFuncs_Erreur: Erreur linking " << func5 << endl; 647 648 */ 648 649 fin: 649 650 if (nok < 1) { if (dynlink) delete dynlink; dynlink = NULL; return(3); } -
trunk/SophyaPI/PIext/piacmd.h
r171 r174 34 34 35 35 // Link dynamique de fonction user 36 int LinkUserFuncs(string& fnameso, string& func1, string& func2, string& func3 ,37 string& func4, string& func5); 36 int LinkUserFuncs(string& fnameso, string& func1, string& func2, string& func3); 37 // string& func4, string& func5); compil avec g++ 2.7.2 38 38 NamedObjMgr* mObjMgr; 39 39 PIStdImgApp* mImgApp;
Note:
See TracChangeset
for help on using the changeset viewer.