My Project
peticion.hpp
1 
11 #ifndef PETICION_H
12 #define PETICION_H
13 
14 #include "./nego.hpp"
15 #include "./fecha.hpp"
16 
20 class Peticion {
21  private:
22  std::size_t plazasPedidas_;
23  std::shared_ptr<Nego> neg;
24 
25  public:
26  Peticion();
27  explicit Peticion(std::size_t plazasPedidas);
28  ~Peticion();
29  void setPlazasPedidas(std::size_t plazasPedidas);
30  std::size_t getPlazasPedidas();
31 
32  #ifdef CEREAL_CEREAL_HPP_
33 
37  template<class Archive> // serialize things by passing them to the archive
38  void serialize(Archive &archive) {
39  archive(cereal::make_nvp("Plazas Pedidas", plazasPedidas_),
40  cereal::make_nvp("Nego", neg));
41  }
42  #endif
43  std::shared_ptr<Nego> getNeg() const;
44  void setNeg(const std::shared_ptr<Nego> &value);
45 };
46 
47 #endif // PETICION_H
The Peticion class.
Definition: peticion.hpp:20
std::shared_ptr< Nego > getNeg() const
Definition: peticion.cpp:12