Ignore:
Timestamp:
11/17/05 14:37:54 (19 years ago)
Author:
mar637
Message:

implemented use of SDLog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/SDAsciiWriter.cc

    r496 r717  
    4141#include <casa/iostream.h>
    4242#include <casa/fstream.h>
     43#include <casa/sstream.h>
    4344
    4445#include <coordinates/Coordinates/CoordinateUtil.h>
     
    9697// Open and write header file
    9798
    98 
    9999   String rootName(fileName);
    100100   if (rootName.length()==0) rootName = String("ascii");
    101101   {
    102102      String fName = String(rootName) + String("_header.txt");
    103       cout << "Writing header to " << fName << endl;
     103      pushLog("Writing header to "+fName);
    104104      ofstream of(fName.chars(), ios::trunc);
    105105      std::string summary = sdTable.summary(true);
     
    193193      }
    194194   }
    195 //
     195
    196196   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));
    199200   return True;
    200201}
     
    206207   MVAngle x1(lonLat(0));
    207208   String s1 = x1.string(MVAngle::TIME, 12);
    208 //
     209
    209210   MVAngle x2(lonLat(1));
    210211   String s2 = x2.string(MVAngle::ANGLE, 12);
    211 //
     212
    212213   String ss = s1 + String(" ") + s2;
    213214   return ss;
Note: See TracChangeset for help on using the changeset viewer.