Changeset 1757 for branches/alma/src/STAsciiWriter.cpp
- Timestamp:
- 06/09/10 19:03:06 (14 years ago)
- Location:
- branches/alma
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/alma
-
Property
svn:ignore
set to
.sconf_temp
.sconsign.dblite
-
Property
svn:mergeinfo
set to
/branches/asap-3.x merged eligible
-
Property
svn:ignore
set to
-
branches/alma/src/STAsciiWriter.cpp
r1657 r1757 89 89 90 90 String rootName(fileName); 91 if (rootName.length()==0) rootName = String("ascii");92 91 93 92 Block<String> cols(4); … … 104 103 String dirtype = stable.getDirectionRefString(); 105 104 ostringstream onstr; 106 onstr << "SCAN" << rec.asuInt("SCANNO") 107 << "_CYCLE" << rec.asuInt("CYCLENO") 108 << "_BEAM" << rec.asuInt("BEAMNO") 109 << "_IF" << rec.asuInt("IFNO"); 105 106 if (rootName.length()==0) { 107 rootName = String("ascii"); 108 } 109 if (tab.nrow() > 1) { 110 if (stable.nscan() > 1) 111 onstr << "_SCAN" << rec.asuInt("SCANNO"); 112 if (stable.ncycle(rec.asuInt("SCANNO")) > 1) 113 onstr << "_CYCLE" << rec.asuInt("CYCLENO"); 114 if (stable.nbeam(rec.asuInt("SCANNO")) > 1) 115 onstr << "_BEAM" << rec.asuInt("BEAMNO"); 116 if (stable.nif(rec.asuInt("SCANNO")) > 1) 117 onstr << "_IF" << rec.asuInt("IFNO"); 118 } 119 110 120 String fName = rootName + String(onstr) + String(".txt"); 111 121 ofstream of(fName.chars(), ios::trunc);
Note: See TracChangeset
for help on using the changeset viewer.