blob: 9c247b351eb71badf2b2856f4d9a1e102f09f999 (
plain)
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
|
#include "interrupt.hpp"
interrupt_t::interrupt_t(json_object* o)
{
jcast(type_, o, "type");
json_object * value = NULL;
json_object_object_get_ex(o, "args", &value);
args_ = value;
}
interrupt_t& interrupt_t::operator<<(json_object* o)
{
jcast(type_, o, "type");
json_object * value = NULL;
json_object_object_get_ex(o, "args", &value);
args_ = value;
return *this;
}
std::string interrupt_t::type() const
{
return type_;
}
json_object* interrupt_t::args() const
{
return args_;
}
void interrupt_t::type(std::string v)
{
type_ = v;
}
void interrupt_t::args(json_object* v)
{
args_ = v;
}
|