-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathListaEmpleados.h
executable file
·39 lines (30 loc) · 1.05 KB
/
ListaEmpleados.h
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
// Created by Hugo.
#ifndef ENTREGABLE1_LISTAEMPLEADOS_H
#define ENTREGABLE1_LISTAEMPLEADOS_H
#include "NodoEmpleados.h"
/* Escritura y lectura con INDICES */
class ListaEmpleados {
private:
NodoEmpleados* header;
public:
ListaEmpleados();
ListaEmpleados(ListaEmpleados& lista);
~ListaEmpleados();
bool isEmpty();
void insertData(NodoEmpleados* prevNode, Empleado& emp);
void deleteData(NodoEmpleados* node);
void deleteAll();
bool isValidPos(NodoEmpleados* node);
void copyAll(ListaEmpleados& lista);
NodoEmpleados* getFirstPos();
NodoEmpleados* getLastPos();
NodoEmpleados* getPrevPos(NodoEmpleados* node);
NodoEmpleados* getNextPos(NodoEmpleados* node);
NodoEmpleados* findData(Empleado& emp);
Empleado& retrieve(NodoEmpleados* node);
std::string toString();
ListaEmpleados& operator = (ListaEmpleados&);
void write(const std::string& filename); // se guarda en listaPedidos.txt y cada orden guarda su lista
void read(const std::string& filename);
};
#endif //ENTREGABLE1_LISTAEMPLEADOS_H