My Project
Main Page
Namespaces
Classes
Files
File List
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_;
27
pel::Vector<std::shared_ptr<Nego>
> negos_;
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
38
pel::Vector<std::shared_ptr<Nego>
> &getNegos();
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::Owner
Owner()
Definition:
owner.cpp:11
Owner
Clase Owner.
Definition:
owner.hpp:24
pel::Vector
Definition:
pelVector.hpp:28
Generated on Tue Jun 23 2015 04:11:01 for My Project by
1.8.9.1