1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
| #ifndef POOL_H_INCLUDED
#define POOL_H_INCLUDED
#include "PoolEmp.h"
#include <vector>
/*
========================================
Pool
========================================
*/
class Pool {
public:
Pool();
//--------------------------------------
//Employer
//--------------------------------------
void EmpNew( const std::string name );
void EmpRemove(const int num);
void EmpName( const int num, const std::string name );
const std::string EmpName( const int num ) const;
const int EmpSizeAll() const;
const int EmpSize( const int num ) const;
const int EmpDaySize( const int empNum );
const int EmpTimeSize( const int empNum) const;
void EmpFirst( const int num );
//--------------------------------------
//Job
//--------------------------------------
void JobNew( const int empNum, const std::string name );
void JobRemove( const int empNum, const int jobNum );
void JobName( const int empNum, const int jobNum, const std::string name );
const std::string JobName( const int empNum, const int jobNum ) const;
const int JobSizeAll() const;
const int JobSize( const int empNum, const int jobNum ) const;
const int JobTimeSize( const int empNum, const int jobNum) const;
void JobFirst( const int empNum, const int jobNum );
void JobChangeEmp( const int empNum, const int jobNum, const int newEmpNum );
//--------------------------------------
//Day
//--------------------------------------
void DayNew( const int empNum, const int jobNum, const int date, const int time );
void DayRemove( const int empNum, const int jobNum, const int dayNum );
const int DaySizeAll();
const int DayTimeSize( const int empNum, const int jobNum, const int dayNum ) const;
const int DayDate( const int empNum, const int jobNum, const int dayNum ) const;
private:
Pool( const Pool & );
Pool &operator = ( const Pool & );
std::vector < PoolEmp > empPool;
};
#endif // POOL_H_INCLUDED |
Partager