Kstars
binarylistcomponent.h
147 BinaryListComponent<T, Component>::BinaryListComponent(Component *parent, QString basename) : BinaryListComponent<T, Component>(parent, basename, "dat", "bin") {}
150 BinaryListComponent<T, Component>::BinaryListComponent(Component *parent, QString basename, QString txtExt, QString binExt) : parent { parent }
152 filepath_bin = QDir(KSPaths::writableLocation(QStandardPaths::AppLocalDataLocation)).filePath(basename + '.' + binExt);
153 filepath_txt = QDir(KSPaths::writableLocation(QStandardPaths::AppLocalDataLocation)).filePath(basename + '.' + txtExt);
208 parent->objectLists(T::TYPE).append(QPair<QString, const SkyObject *>(new_object->name(), new_object));
void setVersion(int v)
ReadOnly
bool atEnd() const const
bool remove()
virtual bool open(QIODevice::OpenMode mode) override
provides functionality for loading the component data from Binary
Definition: binarylistcomponent.h:39
Version
bool exists() const const
virtual QString fileName() const const override
BinaryListComponent(Component *parent, QString basename)
BinaryListComponent.
Definition: binarylistcomponent.h:147
virtual void close() override
AppLocalDataLocation
QString filePath(const QString &fileName) const const
DoublePrecision
void setFloatingPointPrecision(QDataStream::FloatingPointPrecision precision)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Dec 11 2023 04:03:16 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Dec 11 2023 04:03:16 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.