sx360::ByteMap Struct Reference

#include <sxcommon.h>

List of all members.


Public Member Functions

  ByteMap (string s="3210XY987654", int bc=2, int b=6)

Public Attributes

string  map
int  byteCount
int  usableBitsPerByte

This structure defines how the layout of the individual records exists in the physical file.  If a standard 360 column binary file is being used, there will be no need to change any of these parameters. 


Constructor & Destructor Documentation

sx360::ByteMap::ByteMap ( string  s = "3210XY987654",


int  bc = 2,


int  b = 6  

)

[inline]

Constructor that only needs to be overriden if a nonstandard 360 column binary file is in use.


Member Data Documentation

string sx360::ByteMap::map

string representing every possible punch for an sxRecord.  There MUST be an even number of punches in this string since it will be divided evenly across the number of bytes specfied in the byteCount variable.

int sx360::ByteMap::byteCount

Number of bytes that the map takes up.  For instance, the default has 12 punches, which takes up 2 bytes.  24 would take up 3 bytes, etc.

int sx360::ByteMap::usableBitsPerByte

Number of usable bits per byte.  Because of the original design of the format, the 12 punches are distributed evenly across two bytes, making 6 bits of each byte actually usable.  There are two bits in each byte that are wasted.  So, it is possible to add 4 more punches to the default punchmap and still use the same amount of disk space.


Generated on Fri Jul 27 14:54:01 2007 for sx360 by  doxygen 1.5.2