Changeset 2000 in Sophya for trunk/ArchTOIPipe/Kernel
- Timestamp:
- May 14, 2002, 3:06:58 PM (23 years ago)
- Location:
- trunk/ArchTOIPipe/Kernel
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ArchTOIPipe/Kernel/cgt.cc
r1998 r2000 13 13 #include "toiseqbuff.h" 14 14 #include "toisegment.h" 15 #include "fitstoiwtr.h" 15 16 16 17 #ifdef WITH_SOPHYA … … 63 64 64 65 TOI& CGT::Connect(TOIProcessor& prout, string& out, 65 TOIProcessor& prin, string& in, string nom, int wbsz )66 TOIProcessor& prin, string& in, string nom, int wbsz, bool withFlag) 66 67 { 67 68 int id1 = findProcId(&prout); … … 82 83 lesTuyaux.push_back(tuy); 83 84 prout.addOutput(out, toi); 84 prin.addInput(in, toi); 85 if (withFlag) { // Si c'est un FITSTOIWriter 86 FITSTOIWriter* ftw = dynamic_cast< FITSTOIWriter* >(&prin); 87 if (ftw) ftw->addInput(in, toi, withFlag); 88 else prin.addInput(in, toi); 89 } 90 else prin.addInput(in, toi); 85 91 if (dbgLevel > 1) 86 92 cout << " CGT::Connect() TOI " << toi->getName() << " created " << endl; … … 89 95 90 96 TOI& CGT::Connect(TOIProcessor& prout, const char* out, 91 TOIProcessor& prin, const char* in, string nom, int wbsz )97 TOIProcessor& prin, const char* in, string nom, int wbsz, bool withFlag) 92 98 { 93 99 string outs = out; 94 100 string ins = in; 95 return Connect(prout, outs, prin, ins, nom, wbsz );101 return Connect(prout, outs, prin, ins, nom, wbsz, withFlag); 96 102 } 97 103 -
trunk/ArchTOIPipe/Kernel/cgt.h
r1994 r2000 30 30 31 31 virtual TOI& Connect(TOIProcessor& prout, string& out, 32 TOIProcessor& prin, string& in, string nom="", int wbsz=0); 32 TOIProcessor& prin, string& in, string nom="", 33 int wbsz=0, bool withFlag=false); 33 34 virtual TOI& Connect(TOIProcessor& prout, const char* out, 34 TOIProcessor& prin, const char* in, string nom="", int wbsz=0); 35 TOIProcessor& prin, const char* in, string nom="", 36 int wbsz=0, bool withFlag=false); 35 37 36 38 virtual void ListProcs(::ostream& os, bool prstat=false); // const plus tard -
trunk/ArchTOIPipe/Kernel/toimanager.h
r1999 r2000 5 5 // Christophe Magneville 6 6 // Reza Ansari 7 // $Id: toimanager.h,v 1.1 2 2002-05-13 15:50:50ansari Exp $7 // $Id: toimanager.h,v 1.13 2002-05-14 13:06:57 ansari Exp $ 8 8 9 9 … … 58 58 class ProcSampleCounter : public RzProcSampleCounter { 59 59 public: 60 ProcSampleCounter( constT & t) { _t = &t; }60 ProcSampleCounter(T & t) { _t = &t; } 61 61 virtual long ProcessedSampleCount() 62 62 { return _t->ProcessedSampleCount(); } … … 64 64 virtual long SampleEnd() { return _t->getMaxIn(); } 65 65 protected: 66 constT * _t;66 T * _t; 67 67 }; 68 68 -
trunk/ArchTOIPipe/Kernel/toiprocessor.h
r1800 r2000 5 5 // Christophe Magneville 6 6 // Reza Ansari 7 // $Id: toiprocessor.h,v 1.1 8 2001-11-29 18:19:32 aubourgExp $7 // $Id: toiprocessor.h,v 1.19 2002-05-14 13:06:57 ansari Exp $ 8 8 9 9 … … 84 84 85 85 // Gestion des bornes pour les transformations de TOIs... 86 public: 87 // Methodes passees en public par Reza, 14/5/2002 86 88 virtual int calcMinOut(); // Protected ? 87 89 virtual int calcMaxOut(); // Protected ? 90 91 virtual int getMinIn(); 92 virtual int getMaxIn(); 93 protected: 94 // Implementation par defaut 88 95 int minOut; // Cache for calcMinOut() value. Protected ? 89 96 int maxOut; // Cache for calcMaxOut() value. Protected ? 90 97 91 virtual int getMinIn();92 virtual int getMaxIn();93 // Implementation par defaut94 98 int upExtra; // MaxIn - MaxOut : extra samples for processing 95 99 int lowExtra; // MinOut - MinIn : extra samples for processing
Note:
See TracChangeset
for help on using the changeset viewer.