Please help! Please implement the followingGateControl.cpp with the given already completedGateControl.hpp. (Hint: work on these functions in order:GetCardAuthorization(), AddAuthorization(), GetAllAuthorizations(),DeleteAuthorization(),ChangeAuthorization(),AccessAllowed(),GetAllTransactions(),GetCardTransactions())
//GateControl.hpp
#pragma once
#include
#include
#include
using namespace std;
typedef uint32_t CardNumber;
typedef uint32_t GateNumber;
struct Authorization
{
Authorization() { }
Authorization(CardNumber number, const string&name, const string& startTime, const string& endTime)
: number_(number), name_(name), startTime_(startTime),endTime_(endTime) { }
CardNumber number_;
string name_;
string startTime_;
string endTime_;
};
typedef map AuthorizationMap;
typedef AuthorizationMap::iterator AuthorizationIterator;
typedef vector AuthorizationVector;
struct Transaction
{
Transaction() { }
Transaction(CardNumber number, const string&name, const string& date, const string& time,
bool accessAllowed)
: number_(number), name_(name), date_(date),time_(time), accessAllowed_(accessAllowed) { }
CardNumber number_;
string name_;
string date_;
string time_;
bool accessAllowed_;
};
typedef
PayPal Gateway not configured
PayPal Gateway not configured