| 1 | // This may look like C code, but it is really -*- C++ -*- | 
|---|
| 2 | // Classe d ajustement pour  piapp | 
|---|
| 3 | // cmv                            98-99 | 
|---|
| 4 | // CEA-DAPNIA      LAL-IN2P3/CNRS | 
|---|
| 5 |  | 
|---|
| 6 | #ifndef PAWEXECUTOR_H_SEEN | 
|---|
| 7 | #define PAWEXECUTOR_H_SEEN | 
|---|
| 8 |  | 
|---|
| 9 | #include "machdefs.h" | 
|---|
| 10 | #include <string> | 
|---|
| 11 | #include <vector> | 
|---|
| 12 |  | 
|---|
| 13 | #include "anydataobj.h" | 
|---|
| 14 | #include "piacmd.h" | 
|---|
| 15 |  | 
|---|
| 16 | class PAWExecutor : public CmdExecutor { | 
|---|
| 17 | public: | 
|---|
| 18 | PAWExecutor(PIACmd* piac, PIStdImgApp* app); | 
|---|
| 19 | virtual     ~PAWExecutor(); | 
|---|
| 20 | virtual int Execute(string& keyw, vector<string>& args, string& toks); | 
|---|
| 21 | virtual bool  IsThreadable(string const & keyw); | 
|---|
| 22 |  | 
|---|
| 23 | protected: | 
|---|
| 24 | void  reset(vector<string>& tokens); | 
|---|
| 25 | void  n_plot(vector<string>& tokens); | 
|---|
| 26 | void  n_proj(vector<string>& tokens); | 
|---|
| 27 | void  n_scan(vector<string>& tokens); | 
|---|
| 28 | void  n_read(vector<string>& tokens); | 
|---|
| 29 | void  n_merge(vector<string>& tokens); | 
|---|
| 30 | void  n_merge_col(vector<string>& tokens); | 
|---|
| 31 | void  n_assoc_col(vector<string>& tokens); | 
|---|
| 32 | void  n_copy(vector<string>& tokens); | 
|---|
| 33 | void  h_integ(vector<string>& tokens); | 
|---|
| 34 | void  v_integ(vector<string>& tokens); | 
|---|
| 35 | void  v_sort(vector<string>& tokens); | 
|---|
| 36 | void  h_deriv(vector<string>& tokens); | 
|---|
| 37 | void  v_deriv(vector<string>& tokens); | 
|---|
| 38 | void  h_rebin(vector<string>& tokens); | 
|---|
| 39 | void  h_cadd(vector<string>& tokens); | 
|---|
| 40 | void  h_cmult(vector<string>& tokens); | 
|---|
| 41 | void  h_oper(vector<string>& tokens); | 
|---|
| 42 | void  h_plot_2d(vector<string>& tokens); | 
|---|
| 43 | void  h_put_vec(vector<string>& tokens); | 
|---|
| 44 | void  h_get_vec(vector<string>& tokens); | 
|---|
| 45 | void  h_copy(vector<string>& tokens); | 
|---|
| 46 | void  h_set(string dum,vector<string>& tokens); | 
|---|
| 47 | void  h_err(vector<string>& tokens); | 
|---|
| 48 | int_4 decodepawstring(string tokens,string& nameobj | 
|---|
| 49 | ,string& xexp,string& yexp,string& zexp); | 
|---|
| 50 | PIStdImgApp* mApp; | 
|---|
| 51 | static uint_4 autoc_counter_; | 
|---|
| 52 | }; | 
|---|
| 53 |  | 
|---|
| 54 | #endif | 
|---|