#include <source.h>

Public Member Functions | |
| SourceInteger (Convert *convert, int type, string filename, bool cache) | |
| ~SourceInteger () | |
| void | resolve (Point *p) |
Protected Member Functions | |
| int | value (int offset) |
Protected Attributes | |
| int * | cache |
| Internal cache of entire data file, if requested. | |
| SourceInteger::SourceInteger | ( | Convert * | convert, | |
| int | type, | |||
| string | filename, | |||
| bool | cache | |||
| ) |
Create a new integer data source.
| convert | The conversion to apply to all incoming points | |
| type | Enumeration value describing the type of data we provide | |
| filename | Filename pointing to ".hdr" file for this data source | |
| cache | Cache entire data file in memory if true, otherwise read directly from file when requested |
| SourceInteger::~SourceInteger | ( | ) |
| int SourceInteger::value | ( | int | offset | ) | [protected] |
Retrieve a specific value, either from raw source file, or from cache if it exists.
| offset | Offset into the data file to read |
| void SourceInteger::resolve | ( | Point * | p | ) | [virtual] |
int* SourceInteger::cache [protected] |
Internal cache of entire data file, if requested.
1.5.4