SFF++ library: reading and writing SFF from C++
wid2isample.cc File Reference

calculate sample index for given time (implementation) More...

#include <sffxx.h>
Include dependency graph for wid2isample.cc:

Go to the source code of this file.

Namespaces

 sff
 all SFF modules
 

Macros

#define TF_WID2ISAMPLE_CC_VERSION   "TF_WID2ISAMPLE_CC V1.2"
 

Functions

long int sff::wid2isample (const WID2 &wid2, const libtime::TAbsoluteTime &idate)
 return index for sample at given date More...
 
libtime::TAbsoluteTime sff::wid2isample (const WID2 &wid2, const long int &i)
 return time for sample at given index More...
 
libtime::TRelativeTime sff::wid2isamplerest (const WID2 &wid2, const libtime::TAbsoluteTime &idate)
 return time interval between idate and sample sample next to idate More...
 

Detailed Description

calculate sample index for given time (implementation)


Author
Thomas Forbriger
Date
06/02/2004

calculate sample index for given time (implementation)


libsffxx is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software

Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

Copyright (c) 2004 by Thomas Forbriger (BFO Schiltach)

REVISIONS and CHANGES

  • 06/02/2004 V1.0 Thomas Forbriger
  • 17/09/2004 V1.1 used wrong operator for rest
  • 28/07/2005 V1.2 returned signed sample index

Definition in file wid2isample.cc.