Files
Training-Team2-Zenvy-Jan26/Trenser.Zenvy/Trenser.Zenvy/models/Team.cpp
T
joelthomastrenser 47b44ccaa0 Added payroll persistance and updated Talent Acquisition role
<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>
2026-04-11 12:13:23 +05:30

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;
}