#ifndef CONVEYORBELT_H
#define CONVEYORBELT_H
#include "Product.h"
#include <vector>
using namespace std;

class ConveyorBelt{
	private:
		vector<Product> belt;
	public:
		void addProduct(Product p);
		int getCount();
		Product getNextProduct();
};

void ConveyorBelt::addProduct(Product p){
	belt.push_back(p);
}

int ConveyorBelt::getCount(){
	return belt.size();
}

Product ConveyorBelt::getNextProduct(){
	Product nextItem=belt.front();
	belt.erase(belt.begin());
	return nextItem;
}

#endif
