-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfabryka.cpp
More file actions
29 lines (28 loc) · 1.09 KB
/
fabryka.cpp
File metadata and controls
29 lines (28 loc) · 1.09 KB
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
#include <cstdlib>
#include <iostream>
#include "storage_types.hpp"
#include "package.hpp"
#include "types.hpp"
#include "nodes.hpp"
int main() {
// PackageQueue q(PackageQueueType::FIFO);
// std::unique_ptr<IPackageStockpile> ptr = std::make_unique<PackageQueue>(q);
// Storehouse s(1, std::move(ptr));
// Ramp r(1,2);
// r.mReceiverPreferences.add_receiver(&s);
// r.deliver_goods(0);
// std::cout<< "Pierwszy z kontenera: " <<s.cbegin()->get_id()<< std::endl;
// r.deliver_goods(1);
// std::cout<< "Pierwszy z kontenera: " <<s.cbegin()->get_id()<< std::endl;
//
// r.deliver_goods(2);
// std::cout<< "1 z kontenera: " <<s.cbegin()->get_id()<< std::endl;
// std::cout<< "2 z kontenera: " <<s.cend()->get_id()<< std::endl;
// r.deliver_goods(3);
// std::cout<< "1 z kontenera: " <<s.cbegin()->get_id()<< std::endl;
// std::cout<< "2 z kontenera: " <<s.cend()->get_id()<< std::endl;
// r.deliver_goods(4);
// std::cout<< "1 z kontenera: " <<s.cbegin()->get_id()<< std::endl;
// std::cout<< "2 z kontenera: " <<s.cend()->get_id()<< std::endl;
return 0;
}