-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathusuario.h
46 lines (35 loc) · 1.01 KB
/
usuario.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
#ifndef USUARIO_H
#define USUARIO_H
#include "rocksentity.h"
#include <boost/serialization/base_object.hpp>
#include <boost/serialization/serialization.hpp>
#include <string>
namespace cxxdoor {
class Usuario : public RocksEntity {
friend boost::serialization::access;
friend std::ostream &operator<<(std::ostream &os, const Usuario &c);
public:
template <class Archive>
void serialize(Archive &ar, const unsigned int version) {
ar &boost::serialization::base_object<RocksEntity>(*this);
ar &nombre &email &password;
}
Usuario();
Usuario(Usuario&& other);
std::string getNombre() const;
void setNombre(const std::string &value);
std::string getEmail() const;
void setEmail(const std::string &value);
std::string getPassword() const;
void setPassword(const std::string &value);
virtual ~Usuario() = default;
private:
std::string nombre;
std::string email;
std::string password;
// RocksEntity interface
public:
folly::dynamic get_json() const override;
};
}
#endif // USUARIO_H