consolidate all repos to one for archive
This commit is contained in:
33
semester_2/programiranje_2/naloga1102/Student.h
Normal file
33
semester_2/programiranje_2/naloga1102/Student.h
Normal file
@@ -0,0 +1,33 @@
|
||||
//
|
||||
// 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"
|
||||
#include "Log.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
|
||||
Reference in New Issue
Block a user