Changeset 717 for trunk/src/SDAsciiWriter.cc
- Timestamp:
- 11/17/05 14:37:54 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/SDAsciiWriter.cc
r496 r717 41 41 #include <casa/iostream.h> 42 42 #include <casa/fstream.h> 43 #include <casa/sstream.h> 43 44 44 45 #include <coordinates/Coordinates/CoordinateUtil.h> … … 96 97 // Open and write header file 97 98 98 99 99 String rootName(fileName); 100 100 if (rootName.length()==0) rootName = String("ascii"); 101 101 { 102 102 String fName = String(rootName) + String("_header.txt"); 103 cout << "Writing header to " << fName << endl;103 pushLog("Writing header to "+fName); 104 104 ofstream of(fName.chars(), ios::trunc); 105 105 std::string summary = sdTable.summary(true); … … 193 193 } 194 194 } 195 // 195 196 196 of.close(); 197 cout << "Wrote " << nRows << " rows into file " << fileName << endl; 198 // 197 ostringstream oss; 198 oss << "Wrote " << nRows << " rows into file " << fileName; 199 pushLog(String(oss)); 199 200 return True; 200 201 } … … 206 207 MVAngle x1(lonLat(0)); 207 208 String s1 = x1.string(MVAngle::TIME, 12); 208 // 209 209 210 MVAngle x2(lonLat(1)); 210 211 String s2 = x2.string(MVAngle::ANGLE, 12); 211 // 212 212 213 String ss = s1 + String(" ") + s2; 213 214 return ss;
Note: See TracChangeset
for help on using the changeset viewer.