System zleceń - kopia
This commit is contained in:
27
zlecenie.h
Normal file
27
zlecenie.h
Normal file
@@ -0,0 +1,27 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user