26 lines
827 B
C++
26 lines
827 B
C++
#pragma once
|
|
#include <vector>
|
|
#include <tuple>
|
|
#include <algorithm>
|
|
#include <utility>
|
|
#include "DataStore.h"
|
|
#include "Enums.h"
|
|
|
|
using Employees = std::vector<std::shared_ptr<const Employee>>;
|
|
|
|
class EmployeeManagementService
|
|
{
|
|
private:
|
|
DataStore& m_dataStore;
|
|
public:
|
|
EmployeeManagementService() : m_dataStore(DataStore::getInstance()) {};
|
|
void createEmployee(Enums::EmployeeType, Enums::EmployeeDesignation, const std::string&, const std::string&, const std::string&);
|
|
bool deactivateEmployee(const std::string&);
|
|
Employees getEmployees();
|
|
void updateProfile(const std::string&,const std::string&);
|
|
std::pair<Enums::EmployeeType, std::vector<std::shared_ptr<const Employee>>> searchEmployee(const std::string&);
|
|
std::shared_ptr<const Employee> getCurrentEmployee();
|
|
void loadEmployees();
|
|
void saveEmployees();
|
|
};
|