kstars
binfilehelper.h
  
Go to the documentation of this file.
  246     DT_STR,               /* Variable length array of characters, either terminated by NULL or by the limit on field size */
  247     DT_SPCL = 128         /* Flag indicating that the field requires special treatment (eg: Different bits may mean different things) */
  271     bool indexUpdated;                    // True if the data from the index, and associated properties have been updated
  272     bool FDUpdated;                       // True if the data from the Field Descriptor, and associated properties have been updated
  273     bool RSUpdated;                       // True if the recordSize parameter is set correctly, either manually or bye reading the FD
  274     bool preambleUpdated;                 // True if the data from the preamble and associated properties have been updated
  278     QVector<dataElement *> fields;        // Maintains a list of fields in the file, along with relevant details
bool propertiesUpdated()
Check whether file properties are real or bogus. 
Definition: binfilehelper.h:126
long getIndexTableOffset()
Returns the offset at which the index table begins. 
Definition: binfilehelper.h:200
Definition: binfilehelper.h:244
Definition: binfilehelper.h:242
Definition: binfilehelper.h:238
Definition: binfilehelper.h:239
Definition: binfilehelper.h:224
int getFieldCount()
Returns the number of fields as suggested by the field descriptor in the header. 
Definition: binfilehelper.h:182
unsigned long getRecordCount()
Returns the total number of records in the file. 
Definition: binfilehelper.h:152
bool isField(const QString &FieldName)
Check whether a field exists. 
Definition: binfilehelper.cpp:251
Definition: binfilehelper.h:223
unsigned int getRecordCount(int id)
Returns the number of records under the given index ID. 
Definition: binfilehelper.h:146
FILE * getFileHandle()
Get the file handle corresponding to the currently open file. 
Definition: binfilehelper.h:132
Definition: binfilehelper.h:245
static bool testFileExists(const QString &fileName)
Checks if a file exists. 
Definition: binfilehelper.cpp:56
This class provides utility functions to handle binary data files in the format prescribed by KStars...
Definition: binfilehelper.h:52
FILE * openFile(const QString &fileName)
WARNING: This function may not be compatible in other locales, because it calls QString::toAscii. 
Definition: binfilehelper.cpp:69
Definition: binfilehelper.h:240
Definition: binfilehelper.h:247
Definition: binfilehelper.h:243
Definition: binfilehelper.h:225
bool readHeader()
Read the header and index table from the file and fill up the QVector s with the entries. 
Definition: binfilehelper.cpp:200
static int unsigned_KDE_fseek(FILE *stream, quint32 offset, int whence)
Wrapper around fseek for large offsets. 
Definition: binfilehelper.cpp:259
Definition: binfilehelper.h:241
long getOffset(int id)
Returns the offset in the file corresponding to the given index ID. 
Definition: binfilehelper.h:139
Definition: binfilehelper.h:246
Definition: binfilehelper.h:230
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
            Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
    KDE API Reference