Changeset 2536 in Sophya for trunk/SophyaPI/PIext
- Timestamp:
- May 13, 2004, 1:54:02 PM (21 years ago)
- Location:
- trunk/SophyaPI/PIext
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/basexecut.cc
r2521 r2536 16 16 #include "nomgadapter.h" 17 17 #include "piyfxdrw.h" 18 #include "pibargraph.h" 18 19 19 20 #include "histos.h" … … 739 740 while (tokens.size() < 3) tokens.push_back(""); 740 741 mObjMgr->DisplayVector(tokens[0], tokens[1], tokens[2]); 742 } 743 else if (kw == "bargraph") { 744 if (tokens.size() < 2) { 745 cout << "Usage: bargraph gr_opt v1 [v2 ...]" << endl; 746 return(0); 747 } 748 PIBarGraph* bgd = new PIBarGraph; 749 for(int k=1; k<tokens.size(); k++) 750 bgd->AddBar(atof(tokens[k].c_str())); 751 string grname = "BarGraph"; 752 mImgApp->DispScDrawer(bgd, grname, tokens[0]); 741 753 } 742 754 … … 1604 1616 usage += "\n Related commands: disp nt2d "; 1605 1617 mpiac->RegisterCommand(kw, usage, this, "Obj. Display"); 1618 kw = "bargraph"; 1619 usage = "Bar-Graph view of a sequence of values "; 1620 usage += "\n Usage : bargraph graphic_attributes v1 [v2 v3 ...] "; 1621 usage += "\n Related commands: disp nt2d vecplot"; 1622 mpiac->RegisterCommand(kw, usage, this, "Obj. Display"); 1606 1623 1607 1624 // Ceci est maintenant obsolete, on garde pour info. -
trunk/SophyaPI/PIext/piacmd.cc
r2494 r2536 203 203 { 204 204 mutx_inps.lock(); 205 inputlines.push(line); 205 inputlines.push(line); // Ajout d'un element en fin de queue 206 206 mutx_inps.unlock(); 207 207 mutx_inps.broadcast(); … … 224 224 mutx_inps.wait(); 225 225 } 226 string line = inputlines. top();227 inputlines.pop(); 226 string line = inputlines.front(); // On recupere l'element de tete 227 inputlines.pop(); // On supprime l'element de tete 228 228 fg_threxe = true; 229 229 mutx_inps.unlock(); -
trunk/SophyaPI/PIext/piacmd.h
r2490 r2536 11 11 #include <string> 12 12 #include <vector> 13 #include < stack>13 #include <queue> 14 14 #include "zthread.h" 15 15 … … 87 87 CxxOptionWind* cxxoptwin; 88 88 89 // Stack d'entreeet controle de thread90 stack<string> inputlines;89 // Queue des entrees et controle de thread 90 queue<string> inputlines; 91 91 bool fg_thrstop; 92 92 ZMutex mutx_inps;
Note:
See TracChangeset
for help on using the changeset viewer.