Ignore:
Timestamp:
05/18/12 19:16:51 (12 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: No

Ready for Test: Yes

Interface Changes: Yes

What Interface Changed: see below

Test Programs: List test programs

Put in Release Notes: Yes/No?

Module(s): Module Names change impacts.

Description: Describe your changes here...

Defined STIdxIterExAcc class that is able to handle Int and String scalar
columns. Also, fixed a bug in ArrayIndexIterartorAcc?.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/hpc33/src/STIdxIter.h

    r2536 r2537  
    77#include <casa/Arrays/Matrix.h>
    88#include <casa/Arrays/IPosition.h>
     9#include <casa/BasicSL/String.h>
    910
    1011#include "Scantable.h"
     
    127128} ;
    128129
    129 // class STIdxIterExAcc : public STIdxIterAcc
    130 // {
    131 //   STIdxIterExAcc() ;
    132 //   STIdxIterExAcc( const string &name,
    133 //                   const vector<string> &cols ) ;
    134 //   STIdxIterExAcc( const CountedPtr<Scantable> &s,
    135 //                   const vector<string> &cols ) ;
    136 //   ~STIdxIterExAcc() ;
    137 // protected:
    138 //   virtual void init( Table &t,
    139 //                      const vector<string> &cols ) ;
    140 // } ;
     130class STIdxIterExAcc : public STIdxIter
     131{
     132public:
     133  STIdxIterExAcc() ;
     134  STIdxIterExAcc( const string &name,
     135                  const vector<string> &cols ) ;
     136  STIdxIterExAcc( const CountedPtr<Scantable> &s,
     137                  const vector<string> &cols ) ;
     138  ~STIdxIterExAcc() ;
     139  Int getSrcType() ;
     140  String getSrcName() ;
     141protected:
     142  virtual void init( Table &t,
     143                     const vector<string> &cols ) ;
     144private:
     145  void processIntCol( Vector<Int> &in,
     146                      Vector<uInt> &out,
     147                      Block<Int> &val ) ;
     148  void processStrCol( Vector<String> &in,
     149                      Vector<uInt> &out,
     150                      Block<String> &val ) ;
     151  Block<Int> srctype_m ;
     152  Block<String> srcname_m ;
     153  uInt srctypeid_m ;
     154  uInt srcnameid_m ;
     155} ;
    141156
    142157} // namespace
Note: See TracChangeset for help on using the changeset viewer.