Changeset 2111
- Timestamp:
- 04/06/11 18:21:14 (14 years ago)
- Location:
- trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/Scantable.cpp
r2094 r2111 958 958 } 959 959 960 std::string Scantable::summary( bool verbose ) 960 961 std::string Scantable::headerSummary( bool verbose ) 961 962 { 962 963 // Format header info 964 // STHeader sdh; 965 // sdh = getHeader(); 966 // sdh.print(); 963 967 ostringstream oss; 964 oss << endl;965 oss << asap::SEPERATOR << endl;966 oss << " Scan Table Summary" << endl;967 oss << asap::SEPERATOR << endl;968 968 oss.flags(std::ios_base::left); 969 969 oss << setw(15) << "Beams:" << setw(4) << nbeam() << endl … … 1008 1008 oss << setw(15) << "Abcissa:" << getAbcissaLabel(0) << endl; 1009 1009 oss << selector_.print() << endl; 1010 /// @todo implement verbose mode 1011 return String(oss); 1012 } 1013 1014 std::string Scantable::summary( bool verbose ) 1015 { 1016 ostringstream oss; 1010 1017 oss << endl; 1018 oss << asap::SEPERATOR << endl; 1019 oss << " Scan Table Summary" << endl; 1020 oss << asap::SEPERATOR << endl; 1021 1022 // Format header info 1023 oss << headerSummary(verbose); 1024 oss << endl; 1025 1011 1026 // main table 1012 1027 String dirtype = "Position (" 1013 1028 + getDirectionRefString() 1014 1029 + ")"; 1030 oss.flags(std::ios_base::left); 1015 1031 oss << setw(5) << "Scan" << setw(15) << "Source" 1016 1032 << setw(10) << "Time" << setw(18) << "Integration" -
trunk/src/Scantable.h
r2094 r2111 371 371 { historyTable_.append(otherhist); } 372 372 373 std::string headerSummary(bool verbose=false); 373 374 std::string summary(bool verbose=false); 374 375 //std::string getTime(int whichrow=-1, bool showdate=true) const; -
trunk/src/ScantableWrapper.h
r2094 r2111 218 218 } 219 219 220 std::string listHeader(bool verbose=false) const { 221 return table_->headerSummary(verbose); 222 } 223 220 224 std::vector<std::string> getHistory()const 221 225 { return table_->getHistory(); } -
trunk/src/python_Scantable.cpp
r2047 r2111 119 119 .def("_summary", &ScantableWrapper::summary, 120 120 (boost::python::arg("verbose")=true) ) 121 .def("_list_header", &ScantableWrapper::listHeader, 122 (boost::python::arg("verbose")=true) ) 121 123 //.def("_getrestfreqs", &ScantableWrapper::getRestFrequencies) 122 124 .def("_getrestfreqs", &ScantableWrapper::getRestFrequency)
Note:
See TracChangeset
for help on using the changeset viewer.