d29e38ef75
<SRS> SRS02 : Employee Management </SRS> <Changes> - Created FileIO for reading and writing files - Created FileManager to use FileIO - Set up Trenser.FileManager as a DLL - Linked DLL with Trenser.Zenvy project - Fixed duplicate function issue by marking deactivateEmployee as inline - Cleaned up unused methods in controller and service </Changes> <Review> Smitha Mohan </Review>
19 lines
476 B
C++
19 lines
476 B
C++
#pragma once
|
|
#include<memory>
|
|
#include<vector>
|
|
#include<fstream>
|
|
#include<string>
|
|
#include<stdexcept>
|
|
|
|
#ifdef TRENSERFILEMANAGER_EXPORTS
|
|
#define TRENSERFILEMANAGER_API __declspec(dllexport)
|
|
#else
|
|
#define TRENSERFILEMANAGER_API __declspec(dllimport)
|
|
#endif
|
|
|
|
class TRENSERFILEMANAGER_API FileIO {
|
|
public:
|
|
static std::vector<std::string> readAllLines(const std::string& path);
|
|
static void writeAllLines(const std::string& path, const std::vector<std::string>& lines);
|
|
};
|