All Frameworks  Class Hierarchy  This Framework  Indexes

SPAkern Global Function read_int


int read_int()
Reads an integer by reading a long and converting.

Role: This routine is used as part of restore from a SAT or SAB file. Reads an integer by reading a long and converting. Some compilers will give a warning for this shortening, but it may be ignored. Implementations for machines with ints and longs different lengths may well want a different version. ActiveFile is a FileInterface object and does most of the actual work.

return ActiveFile ? (int)(ActiveFile->read_long()) : 0; //Call the appropriate SatFile or SabFile method

Effect: Read-only

This object is included in the file: fileio.hxx

Copyright (c) 1989-2007 by Spatial Corp. All rights reserved.