My Project
owner.hpp
1 
12 #ifndef OWNER_H
13 #define OWNER_H
14 
15 #include <string>
16 #include "pelVector.hpp"
17 #include "./nego.hpp"
18 #include "./oficina.hpp"
19 #include "./cereal/types/memory.hpp"
20 
24 class Owner {
25  private:
26  std::string nombre_;
28  pel::Vector<Oficina> oficinas_;
29 
30  public:
31  Owner();
32  explicit Owner(std::string nombre); // Entender que hace explicit mejor!
33  ~Owner();
34 
35  void setNombre(std::string);
36  std::string getNombre();
37 
39  pel::Vector<Oficina> &getOficinas();
40 
41  #ifdef CEREAL_CEREAL_HPP_
42 
46  template<class Archive>
47  void serialize(Archive &archive) {
48  archive(cereal::make_nvp("Nombre", nombre_),
49  cereal::make_nvp("Negos", negos_),
50  cereal::make_nvp("Oficinas", oficinas_));
51  }
52  #endif
53 };
54 
55 #endif // OWNER_H
Owner()
Definition: owner.cpp:11
Clase Owner.
Definition: owner.hpp:24
Definition: pelVector.hpp:28