30 lines
546 B
C
30 lines
546 B
C
|
#pragma once
|
||
|
#include "Employee.h"
|
||
|
#include "Centers.h"
|
||
|
#include <string>
|
||
|
#include <iostream>
|
||
|
#include <fstream>
|
||
|
#include <vector>
|
||
|
#include <sstream>
|
||
|
|
||
|
// Employee registry
|
||
|
class Employees
|
||
|
{
|
||
|
private:
|
||
|
std::vector<Employee*> employees;
|
||
|
public:
|
||
|
Employees(const char* basePath, Centers& centers): Employees(std::string(basePath), centers)
|
||
|
{};
|
||
|
Employees(std::string basePath, Centers& centers);
|
||
|
|
||
|
std::vector<Employee*>::iterator begin()
|
||
|
{
|
||
|
return employees.begin();
|
||
|
}
|
||
|
std::vector<Employee*>::iterator end()
|
||
|
{
|
||
|
return employees.end();
|
||
|
}
|
||
|
};
|
||
|
|