47b44ccaa0
<SRS> SRS02 : Employee Management </SRS> <Changes> - Added Payroll getHeaders, serialize and deserialize functions - Stored payrolls in DataStore - Loaded and saved payrolls along with employees - Linked payroll to employees during creation and load - Added employeeId to Payroll - Renamed TAG role to TALENT_ACQUISITION across the project - Added missing TalentExecutive case in Employee deserialization - Added constructor to TalentExecutive for FileManager integration - Renamed ID counters to m_uid for consistency - Updated salary values in ApplicationConfig </Changes> <Review> Smitha Mohan </Review>
53 lines
874 B
C++
53 lines
874 B
C++
#include "Team.h"
|
|
|
|
int Team::m_uid = 0;
|
|
|
|
const std::string& Team::getTeamId() const
|
|
{
|
|
return m_id;
|
|
}
|
|
|
|
const std::string& Team::getTeamName() const
|
|
{
|
|
return m_name;
|
|
}
|
|
|
|
std::shared_ptr<Employee> Team::getTeamLead() const
|
|
{
|
|
return m_lead;
|
|
}
|
|
|
|
const employeeMap& Team::getEmployeesInTeam() const
|
|
{
|
|
return m_employees;
|
|
}
|
|
|
|
int Team::getMaximumNumberOfEmployeesInTeam() const
|
|
{
|
|
return m_maximumNumberOfEmployees;
|
|
}
|
|
|
|
void Team::setTeamId(const std::string& id)
|
|
{
|
|
m_id = id;
|
|
}
|
|
|
|
void Team::setTeamName(const std::string& name)
|
|
{
|
|
m_name = name;
|
|
}
|
|
|
|
void Team::setTeamLead(std::shared_ptr<Employee> lead)
|
|
{
|
|
m_lead = lead;
|
|
}
|
|
|
|
void Team::setEmployeesInTeam(const employeeMap& employees)
|
|
{
|
|
m_employees = employees;
|
|
}
|
|
|
|
void Team::setMaximumNumberOfEmployeesInTeam(int maximumNumberOfEmployees)
|
|
{
|
|
m_maximumNumberOfEmployees = maximumNumberOfEmployees;
|
|
} |