0290467528
<UserStory>EMP008: Update Salary Details</UserStory>
<Changes>
- Refactored salary update and employee selection:
• Removed unnecessary const qualifiers from double parameters
• Renamed variables
• Replaced count() with find() for map lookups
• Excluded ADMIN employees from salary updates and selection lists
• Applied util::enforceAuthorization for access control
- Improved readability and consistency:
• Enhanced tabular output using setw() with left alignment
Implement Update Salary
</Changes>
<Review>
Smitha Mohan
</Review>
14 lines
304 B
C++
14 lines
304 B
C++
#pragma once
|
|
#include <string>
|
|
#include<stdexcept>
|
|
#include"DataStore.h"
|
|
|
|
class PayslipManagementService
|
|
{
|
|
private:
|
|
DataStore& m_dataStore;
|
|
public:
|
|
PayslipManagementService() : m_dataStore(DataStore::getInstance()) {};
|
|
void updateSalary(const std::string&, double, double, double, double, double);
|
|
};
|