-
Notifications
You must be signed in to change notification settings - Fork 15
/
object.h
48 lines (29 loc) · 1.13 KB
/
object.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 ST_OBJECT_H
#define ST_OBJECT_H
#include "types.h"
struct object_t {
virtual ~object_t(){}
virtual Attributes operator()(descriptor_p desc, const Attributes& attributes) const = 0;
};
struct data_object_t: public object_t {
Attributes operator()(descriptor_p desc, const Attributes& attributes) const;
};
struct public_key_t: public data_object_t {
Attributes operator()(descriptor_p desc, const Attributes& attributes) const;
};
struct rsa_public_key_t: public public_key_t {
Attributes operator()(descriptor_p desc, const Attributes& attributes) const;
};
struct ssh_public_key_t: public rsa_public_key_t {
Attributes operator()(descriptor_p desc, const Attributes& attributes) const;
};
struct private_key_t: public data_object_t {
Attributes operator()(descriptor_p desc, const Attributes& attributes) const;
};
// struct rsa_private_key_t: public private_key_t {
// Attributes operator()(descriptor_p desc, const Attributes& attributes) const;
// };
struct secrete_key_t: public data_object_t {
Attributes operator()(descriptor_p desc, const Attributes& attributes) const;
};
#endif