-
Notifications
You must be signed in to change notification settings - Fork 0
/
Transport.h
57 lines (41 loc) · 1.18 KB
/
Transport.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
//Header fajl koji sadrzi deklaraciju klase Transport
#pragma once
#include<iostream>
#include<fstream>
#include<string>
#include<vector>
#include<algorithm>
#include<exception>
#include <cctype>
#include"IDNijeValidan.h"
#include"NazivNijeValidan.h"
#include<map>
#include<sstream>
using namespace std;
class Transport {
private:
string naziv;
string tip; //kopneni, vodeni ili vazdusni
string registracija;
int id;
protected:
Transport() {};
Transport(string naziv, string tip, string registracija, int id) :
naziv(naziv), tip(tip), id(id) {};
virtual ~Transport() {};
public:
void setNaziv(string naziv);
void setTip(string tip);
void setRegistracija(string registracija) { this->registracija = registracija; };
void setId(int id);
string getNaziv() const { return naziv; };
string getTip() const { return tip; };
string getRegistracija() const { return registracija; };
int getId() const { return id; };
virtual void insert_transport() = 0;
virtual void search_transport();
virtual void display_all() = 0;
virtual void update_transport() = 0;
virtual void delete_transport();
virtual void display_all_list();
};