Files
stk/include/TablLook.h
Gary Scavone 3f126af4e5 Version 3.2
2013-09-29 22:42:55 +02:00

33 lines
848 B
C++

/********************************************/
/* Table Lookup Class, */
/* by Gary P. Scavone, 1999 */
/* */
/* This class loads a table of floating */
/* point doubles, which are assumed to be */
/* in big-endian format. Linear */
/* interpolation is performed for */
/* fractional lookup indexes. */
/********************************************/
#include "Object.h"
#include "StkError.h"
#if !defined(__TablLook_h)
#define __TablLook_h
class TablLook : public Object
{
protected:
long length;
MY_FLOAT *data;
MY_FLOAT lastOutput;
public:
TablLook(char *fileName);
~TablLook();
long getLength();
MY_FLOAT tick(MY_FLOAT index);
MY_FLOAT lastOut();
};
#endif // defined(__TablLook_h)