Changeset 2000 in Sophya for trunk/ArchTOIPipe/Kernel/cgt.cc
- Timestamp:
- May 14, 2002, 3:06:58 PM (23 years ago)
- File:
-
- 1 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
Note:
See TracChangeset
for help on using the changeset viewer.