00001 #include<config.h> 00002 CPS_START_NAMESPACE 00003 //------------------------------------------------------------------ 00009 //------------------------------------------------------------------ 00010 00011 00012 #ifndef INCLUDED_ALG_MEAS_H 00013 #define INCLUDED_ALG_MEAS_H 00014 00015 CPS_END_NAMESPACE 00016 #include <util/lattice.h> 00017 #include <util/smalloc.h> 00018 #include <util/pmalloc.h> 00019 #include <alg/alg_base.h> 00020 #include <alg/meas_arg.h> 00021 #include <alg/common_arg.h> 00022 CPS_START_NAMESPACE 00023 00024 00025 //------------------------------------------------------------------ 00027 00035 //------------------------------------------------------------------ 00036 /* 00037 * Factory for making lattice of various types 00038 */ 00039 class LatticeFactory { 00040 public: 00041 static Lattice & Create (FclassType F, GclassType g); 00042 static void Destroy(void); 00043 static Lattice *lat_p; 00044 }; 00045 00046 class AlgMeas : public Alg 00047 { 00048 private: 00049 char *cname; 00050 00051 // The argument structure containing the task list 00052 MeasArg *alg_meas_arg; 00053 00054 public: 00055 AlgMeas(CommonArg *c_arg, MeasArg *arg); 00056 00057 virtual ~AlgMeas(); 00058 00059 00060 void run(void); 00061 00062 void RunTask(MeasTask * Task); 00063 void Document(char *dir,MeasTask * Task); 00064 char * Dirname(char *); 00065 void TruncateFile(char *); 00066 void TruncateWspectFiles(void); 00067 }; 00068 00069 00070 00071 #endif 00072 00073 00074 00075 00076 00077 CPS_END_NAMESPACE
1.3.9.1