Ignore:
Timestamp:
01/24/05 01:00:14 (19 years ago)
Author:
kil064
Message:

add reference time arg. to function 'VelocityAlignment?'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/SDMathWrapper.cc

    r268 r272  
    228228}
    229229
    230 void SDMathWrapper::velocityAlignmentInSitu (SDMemTableWrapper& in)
    231 {
    232   SDMemTable* pIn = in.getPtr();
    233   SDMath sdm;
    234   SDMemTable* pOut = sdm.velocityAlignment(*pIn);
    235   *pIn = *pOut;
    236   delete pOut;
    237 }
    238 
    239 
    240 SDMemTableWrapper SDMathWrapper::velocityAlignment (const SDMemTableWrapper& in)
    241 {
    242   const CountedPtr<SDMemTable>& pIn = in.getCP();
    243   SDMath sdm;
    244   return CountedPtr<SDMemTable>(sdm.velocityAlignment(*pIn));
     230void SDMathWrapper::velocityAlignmentInSitu (SDMemTableWrapper& in, const std::string& refTime)
     231{
     232  SDMemTable* pIn = in.getPtr();
     233  SDMath sdm;
     234  SDMemTable* pOut = sdm.velocityAlignment(*pIn, String(refTime));
     235  *pIn = *pOut;
     236  delete pOut;
     237}
     238
     239
     240SDMemTableWrapper SDMathWrapper::velocityAlignment (const SDMemTableWrapper& in,
     241                                                    const std::string& refTime)
     242{
     243  const CountedPtr<SDMemTable>& pIn = in.getCP();
     244  SDMath sdm;
     245  return CountedPtr<SDMemTable>(sdm.velocityAlignment(*pIn, String(refTime)));
    245246}
    246247
Note: See TracChangeset for help on using the changeset viewer.