-
Notifications
You must be signed in to change notification settings - Fork 0
/
MMuseo.h
52 lines (36 loc) · 1.24 KB
/
MMuseo.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
40
41
42
43
44
45
46
47
48
49
50
51
52
#ifndef _MMuseo_h_
#define _MMuseo_h_
#include <iostream>
#include <cstdlib>
#include <string>
#include <fstream>
#include "MError.h"
#include "MObra.h"
#include "MListaObras.h"
using namespace std;
using namespace MError;
using namespace MObra;
using namespace MListaObras;
namespace MMuseo
{
const int MAX_TIPOS = 4;
typedef enum TTipoObra { Pintura, Escultura, Arqueologia, Otros };
typedef TListaObras TMuseo[MAX_TIPOS];
void LeerTipoObra(TTipoObra &t, TError &err);
void EscribirTipoObra(TTipoObra t);
void CrearMuseo(TMuseo &m);
void DestruirMuseo(TMuseo &m);
void InsertarObraMuseo(TMuseo &m, TTipoObra t, TObra o, TError &err);
void MostrarMuseo(TMuseo &m, TError &err);
void CargarMuseoFichero(TMuseo &m, string nomFich, TError &err);
void EliminarObraMuseo(TMuseo &m, string ref, TError &err);
// Opcion E
void SalvarMuseoFichero(TMuseo &m, string nomFich, TError &err);
// Opcion F
void MostrarObrasAutor(TMuseo &m, string autor, TError &err);
// Opcion G
float CalcularPromedioValoracion(TMuseo &m,TError &err);
// Opcion H
void MostrarMuseoOrdenadoPorAnyo(TMuseo &m);
}
#endif