39 lines
1.2 KiB
C++
39 lines
1.2 KiB
C++
/*
|
|
File: Service.h
|
|
Description: Declares the Service class which represents a vehicle service in the Vehicle Service Management System.
|
|
Each service includes a unique ID, name, required inventory items, labor cost, and status.
|
|
Author: Trenser
|
|
Date: 19-May-2026
|
|
*/
|
|
|
|
|
|
#pragma once
|
|
#include <string>
|
|
#include "Map.h"
|
|
#include "Enums.h"
|
|
|
|
class InventoryItem;
|
|
|
|
class Service
|
|
{
|
|
private:
|
|
static int m_uid;
|
|
std::string m_id;
|
|
std::string m_name;
|
|
util::Map<std::string, InventoryItem*> m_requiredInventoryItems;
|
|
double m_laborCost;
|
|
util::State m_status;
|
|
public:
|
|
Service();
|
|
Service(const std::string& name, const util::Map<std::string, InventoryItem*>& requiredInventoryItems, double laborCost);
|
|
const std::string& getId() const;
|
|
const std::string& getName() const;
|
|
const util::Map<std::string, InventoryItem*>& getRequiredInventoryItems() const;
|
|
double getLaborCost() const;
|
|
util::State getState() const;
|
|
void setId(const std::string& id);
|
|
void setName(const std::string& name);
|
|
void setRequiredInventoryItems(const util::Map<std::string, InventoryItem*>& requiredInventoryItems);
|
|
void setLaborCost(double laborCost);
|
|
void setState(util::State status);
|
|
}; |