Ignore:
Timestamp:
04/06/11 18:21:14 (13 years ago)
Author:
Kana Sugimoto
Message:

New Development: No

JIRA Issue: No

Ready for Test: Yes

Interface Changes: Yes

What Interface Changed:

Test Programs: sdlist unit tests

Put in Release Notes: No

Module(s): scantable

Description:

Put header summarizing part of code Scantable::summary to a new function Scantable::headerSummary.
The function is accessible from python level using scantable._list_header()


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/Scantable.cpp

    r2094 r2111  
    958958}
    959959
    960 std::string Scantable::summary( bool verbose )
     960
     961std::string Scantable::headerSummary( bool verbose )
    961962{
    962963  // Format header info
     964//   STHeader sdh;
     965//   sdh = getHeader();
     966//   sdh.print();
    963967  ostringstream oss;
    964   oss << endl;
    965   oss << asap::SEPERATOR << endl;
    966   oss << " Scan Table Summary" << endl;
    967   oss << asap::SEPERATOR << endl;
    968968  oss.flags(std::ios_base::left);
    969969  oss << setw(15) << "Beams:" << setw(4) << nbeam() << endl
     
    10081008  oss << setw(15) << "Abcissa:" << getAbcissaLabel(0) << endl;
    10091009  oss << selector_.print() << endl;
     1010  /// @todo implement verbose mode
     1011  return String(oss);
     1012}
     1013
     1014std::string Scantable::summary( bool verbose )
     1015{
     1016  ostringstream oss;
    10101017  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
    10111026  // main table
    10121027  String dirtype = "Position ("
    10131028                  + getDirectionRefString()
    10141029                  + ")";
     1030  oss.flags(std::ios_base::left);
    10151031  oss << setw(5) << "Scan" << setw(15) << "Source"
    10161032      << setw(10) << "Time" << setw(18) << "Integration"
Note: See TracChangeset for help on using the changeset viewer.