Changeset 988 for trunk/src/STAsciiWriter.h
- Timestamp:
- 04/05/06 14:31:47 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STAsciiWriter.h
r823 r988 1 1 //#--------------------------------------------------------------------------- 2 //# S DAsciiWriter.h: ASAP class to write out single dish spectra as image FITS2 //# STAsciiWriter.h: ASAP class to write out single dish spectra as image FITS 3 3 //#--------------------------------------------------------------------------- 4 4 //# Copyright (C) 2004 … … 29 29 //# $Id$ 30 30 //#--------------------------------------------------------------------------- 31 #ifndef S DASCIIWRITER_H32 #define S DASCIIWRITER_H31 #ifndef STASCIIWRITER_H 32 #define STASCIIWRITER_H 33 33 34 34 #include <casa/aips.h> 35 35 #include <casa/BasicSL/String.h> 36 #include < SDMemTable.h>36 #include <casa/ostream.h> 37 37 38 #include "SDLog.h" 38 #include "Scantable.h" 39 #include "Logger.h" 39 40 40 41 template<class T> class casa::Vector; 41 42 class casa::MDirection; 42 43 43 44 namespace asap { 44 45 45 class S DAsciiWriter : public SDLog{46 class STAsciiWriter : public Logger { 46 47 public: 47 48 // Constructor 48 S DAsciiWriter();49 STAsciiWriter(); 49 50 50 51 // Destructor 51 ~S DAsciiWriter();52 ~STAsciiWriter(); 52 53 53 54 // Write out ascii table 54 casa::Bool write(const S DMemTable& table, const casa::String& name, casa::Bool toStokes);55 casa::Bool write(const Scantable& table, const casa::String& name); 55 56 56 57 private: 57 casa::Int convertStokes(casa::Int val); 58 casa::String formatDirection(const casa::Vector<casa::Double>& lonLat); 58 casa::String formatDirection(const casa::MDirection& md) const; 59 template <class T> 60 void addLine(std::ostream& of, const casa::String& lbl, 61 const T& value); 59 62 }; 60 63
Note: See TracChangeset
for help on using the changeset viewer.