//
// Created by 34753 on 2025/6/20.
//

#ifndef FILESTORAGE_H
#define FILESTORAGE_H

#include "dataStorage.h"
#include <QString>

class FileStorage : public DataStorage
{
    Q_OBJECT
public:
    explicit FileStorage(const QString &filePath, QObject *parent = nullptr);

    QList<Student*> loadStudents() override;
    bool saveStudents(const QList<Student*> &students) override;

private:
    QString m_filePath;
};

#endif //FILESTORAGE_H