33 lines
681 B
C++

//
// Created by Nik on 20/05/2022.
//
#ifndef NALOGA1101_STUDENT_H
#define NALOGA1101_STUDENT_H
#include <vector>
#include <memory>
#include "Address.h"
#include "Date.h"
class Student {
private:
unsigned int id;
std::string name, surname;
Date dateOfBirth;
Address address;
public:
Student(unsigned int, std::string, std::string, Date, Address);
std::string toString() const;
static std::vector<std::shared_ptr<Student>> LoadFromFile(const std::string &filename);
static void SaveToFile(const std::vector<std::shared_ptr<Student>> &students, const std::string &fileName);
};
#endif //NALOGA1101_STUDENT_H