My Project
nego.hpp
1 
12 #ifndef NEGO_H
13 #define NEGO_H
14 
15 #include <string>
16 #include "./fecha.hpp"
17 
23 class Nego {
24  private:
25  std::string origen_;
26  std::string destino_;
27  std::size_t numeroPlazas_;
28  Fecha fecha_;
29 
30  public:
31  Nego();
32  Nego(std::string origen, std::string destino,
33  std::size_t numeroPlazas, Fecha fecha);
34  ~Nego();
35 
36  void setNego(std::string origen, std::string destino,
37  std::size_t numeroPlazas, Fecha fecha);
38  void setOrigen(std::string origen);
39  void setDestino(std::string destino);
40  void setNumeroPlazas(std::size_t numeroPlazas);
41  void setFecha(Fecha fecha);
42 
43  std::string getOrigen();
44  std::string getDestino();
45  std::size_t getNumeroPlazas();
46  Fecha getFecha();
47 
53  void devolverPlazas(std::size_t asientos);
54 
55  #ifdef CEREAL_CEREAL_HPP_
56 
60  template<class Archive>
61  void serialize(Archive& archive) {
62  archive(cereal::make_nvp("Origen", origen_),
63  cereal::make_nvp("Destino", destino_),
64  cereal::make_nvp("Numero_de_Plazas", numeroPlazas_),
65  cereal::make_nvp("Fecha", fecha_));
66  }
67  #endif
68 };
69 
70 #endif // NEGO_H
Nego()
Definition: nego.cpp:11
Clase Nego Un Nego es un vuelo concreto. Contiente Origen y Destino, unas Plazas, una Fecha concreta ...
Definition: nego.hpp:23
void devolverPlazas(std::size_t asientos)
devolverPlazas Al borrar una peticion (o una oficina con peticiones), es necesario devolver esas plaz...
Definition: nego.cpp:42
Clase Fecha.
Definition: fecha.hpp:16