Kstars
binfilehelper.h
53 * WARNING: This function may not be compatible in other locales, because it calls QString::toAscii
62 * @short Read the header and index table from the file and fill up the QVector s with the entries
123 inline unsigned int getRecordCount(int id) const { return (indexUpdated ? indexCount.at(id) : 0); }
148 * @note To be used to override the guess in case the guess is wrong. This method should be called
208 ERR_INDEX_IDMISMATCH, /*!< Index table has a mismatched ID entry [ID found in the wrong place] */
static int unsigned_KDE_fseek(FILE *stream, quint32 offset, int whence)
Wrapper around fseek for large offsets.
Definition: binfilehelper.cpp:321
bool propertiesUpdated() const
Check whether file properties are real or bogus.
Definition: binfilehelper.h:103
FILE * getFileHandle() const
Get the file handle corresponding to the currently open file.
Definition: binfilehelper.h:109
static bool testFileExists(const QString &fileName)
Checks if a file exists.
Definition: binfilehelper.cpp:57
bool readHeader()
Read the header and index table from the file and fill up the QVector s with the entries.
Definition: binfilehelper.cpp:250
int getFieldCount() const
Returns the number of fields as suggested by the field descriptor in the header.
Definition: binfilehelper.h:163
bool isField(const QString &FieldName) const
Check whether a field exists.
Definition: binfilehelper.cpp:311
unsigned int getRecordCount(int id) const
Returns the number of records under the given index ID.
Definition: binfilehelper.h:123
const T & at(int i) const const
long getOffset(int id) const
Returns the offset in the file corresponding to the given index ID.
Definition: binfilehelper.h:116
struct dataElement getField(const QString &fieldName) const
Get field by name.
Definition: binfilehelper.cpp:296
Implements an interface to handle binary data files used by KStars.
Definition: binfilehelper.h:38
unsigned long getRecordCount() const
Returns the total number of records in the file.
Definition: binfilehelper.h:129
long getIndexTableOffset() const
Returns the offset at which the index table begins.
Definition: binfilehelper.h:181
FILE * openFile(const QString &fileName)
WARNING: This function may not be compatible in other locales, because it calls QString::toAscii.
Definition: binfilehelper.cpp:72
long getDataOffset() const
Returns the offset at which the data begins.
Definition: binfilehelper.h:175
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Oct 1 2023 04:02:38 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Oct 1 2023 04:02:38 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.