28 lines
569 B
C
28 lines
569 B
C
|
|
#ifndef ZLECENIE_H
|
||
|
|
#define ZLECENIE_H
|
||
|
|
|
||
|
|
#include <string>
|
||
|
|
#include <fstream>
|
||
|
|
#include <stdexcept>
|
||
|
|
|
||
|
|
class Zlecenie {
|
||
|
|
public:
|
||
|
|
Zlecenie(int id, std::string nazwa, std::string opis, std::string przypisany);
|
||
|
|
|
||
|
|
int GetId() const;
|
||
|
|
std::string GetNazwa() const;
|
||
|
|
std::string GetOpis() const;
|
||
|
|
std::string GetPrzypisany() const;
|
||
|
|
|
||
|
|
void saveToFile(std::ofstream& outFile) const;
|
||
|
|
static Zlecenie loadFromFile(std::ifstream& sourcefile);
|
||
|
|
|
||
|
|
private:
|
||
|
|
int id;
|
||
|
|
std::string nazwa;
|
||
|
|
std::string opis;
|
||
|
|
std::string przypisany;
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif // ZLECENIE_H
|