Changeset 1035 in Sophya for trunk/SophyaPI/PIext/pawexecut.cc
- Timestamp:
- Jun 7, 2000, 3:04:24 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/pawexecut.cc
r815 r1035 26 26 27 27 /* Reza + cmv 13/10/99 */ 28 29 uint_4 PAWExecutor::autoc_counter_ = 0; 28 30 29 31 /* methode */ … … 173 175 if(tokens.size() < 1) { 174 176 cout 175 <<"Usage: n/plot nameobj.x_exp [cut] [w_exp] [loop] [gratt] "<<endl177 <<"Usage: n/plot nameobj.x_exp [cut] [w_exp] [loop] [gratt] [nomh1]"<<endl 176 178 <<" n/plot nameobj.y_exp%x_exp [cut] [loop] [gratt]"<<endl 177 179 <<" n/plot nameobj.z_exp%y_exp%x_exp [cut] [loop] [gratt]"<<endl … … 181 183 string nameobj,expx,expy,expz; 182 184 int nvar = decodepawstring(tokens[0],nameobj,expx,expy,expz); 183 string expcut = "1"; string expwt = "1."; string loop = ""; string dopt = ""; 185 string expcut = "1"; string expwt = "1."; string loop = ""; 186 string dopt = ""; string nameproj=""; 184 187 if(tokens.size()>=2) expcut = tokens[1]; if(expcut=="!") expcut="1"; 185 188 … … 190 193 cout<<"PAWExecutor::n_plot Error: bad coding "<<tokens[0]<<endl; 191 194 } else if(nvar==1) { // c'est un plot 1D 192 if(tokens.size()>=3) expwt = tokens[2]; if(expwt=="!") expwt="1."; 193 if(tokens.size()>=4) loop = tokens[3]; if(loop=="!") loop=""; 194 if(tokens.size()>=5) dopt = tokens[4]; 195 string nameproj = "/autoc/paw_n_plot1D"; 196 AnyDataObj* mobj = omg.GetObj(nameproj); 197 // if(mobj!=NULL) omg.DelObj(nameproj); $CHECK$ Reza 12/12/99 - clean auto 195 if(tokens.size()>=3) expwt = tokens[2]; if(expwt=="!") expwt="1."; 196 if(tokens.size()>=4) loop = tokens[3]; if(loop=="!") loop=""; 197 if(tokens.size()>=5) dopt = tokens[4]; if(dopt=="!") dopt=""; 198 if(tokens.size()>=6) nameproj = tokens[5]; 199 if(nameproj.length()<=0 || nameproj=="!") { 200 nameproj = "/autoc/paw_n_plot1D_"; 201 AnyDataObj* mobj = omg.GetObj(nameproj); 202 if(mobj!=NULL) { 203 char buff[16]; autoc_counter_++; sprintf(buff,"%d",autoc_counter_); 204 nameproj += buff; 205 } 206 } 198 207 srvo->ProjectH1(nameobj,expx,expwt,expcut,nameproj,dopt,loop); 199 208 } else if(nvar==2) { // c'est un plot 2D
Note:
See TracChangeset
for help on using the changeset viewer.