#include <iso8211.h>
Public Members | |||
![]() | ![]() | void | Dump ( FILE * fp ) |
![]() | ![]() | Write out field contents to debugging file. More... | |
![]() | ![]() | const char* | GetSubfieldData ( DDFSubfieldDefn *, int * = NULL, int = 0 ) |
![]() | ![]() | Fetch raw data pointer for a particular subfield of this field. More... | |
![]() | ![]() | const char* | GetData () |
![]() | ![]() | Return the pointer to the entire data block for this record. More... | |
![]() | ![]() | int | GetDataSize () |
![]() | ![]() | Return the number of bytes in the data block returned by GetData(). | |
![]() | ![]() | int | GetRepeatCount () |
![]() | ![]() | How many times do the subfields of this record repeat? This will always be one for non-repeating fields. More... | |
![]() | ![]() | DDFFieldDefn* | GetFieldDefn () |
![]() | ![]() | Fetch the corresponding DDFFieldDefn. | |
This models an instance of the fields data, rather than it's data definition which is handled by the DDFFieldDefn class. Note that a DDFField doesn't have DDFSubfield children as you would expect. To extract subfield values use GetSubfieldData() to find the right data pointer and then use ExtractIntData(), ExtractFloatData() or ExtractStringData().
Write out field contents to debugging file.
A variety of information about this field, and all it's subfields is written to the given debugging file handle. Note that field definition information (ala DDFFieldDefn) isn't written.
Fetch raw data pointer for a particular subfield of this field.
The passed DDFSubfieldDefn (poSFDefn) should be acquired from the DDFFieldDefn corresponding with this field. This is normally done once before reading any records. This method involves a series of calls to DDFSubfield::GetDataLength() in order to track through the DDFField data to that belonging to the requested subfield. This can be relatively expensive.
Return the pointer to the entire data block for this record.
This is an internal copy, and shouldn't be freed by the application.
How many times do the subfields of this record repeat? This will always be one for non-repeating fields.
written by Dimitri van Heesch, © 1997-1999