File tree 2 files changed +48
-16
lines changed
2 files changed +48
-16
lines changed Original file line number Diff line number Diff line change 8
8
9
9
#include < cassert>
10
10
#include < memory>
11
+ #include < sstream>
11
12
12
13
#include < util/std_expr.h>
13
14
#include < util/std_code.h>
18
19
19
20
/* ******************************************************************\
20
21
22
+ Function: ai_domain_baset::output_json
23
+
24
+ Inputs:
25
+
26
+ Outputs:
27
+
28
+ Purpose:
29
+
30
+ \*******************************************************************/
31
+
32
+ jsont ai_domain_baset::output_json (
33
+ const ai_baset &ai,
34
+ const namespacet &ns) const
35
+ {
36
+ std::ostringstream out;
37
+ output (out, ai, ns);
38
+ json_stringt json (out.str ());
39
+ return json;
40
+ }
41
+
42
+ /* ******************************************************************\
43
+
44
+ Function: ai_domain_baset::output_xml
45
+
46
+ Inputs:
47
+
48
+ Outputs:
49
+
50
+ Purpose:
51
+
52
+ \*******************************************************************/
53
+
54
+ xmlt ai_domain_baset::output_xml (
55
+ const ai_baset &ai,
56
+ const namespacet &ns) const
57
+ {
58
+ std::ostringstream out;
59
+ output (out, ai, ns);
60
+ xmlt xml (" domain" );
61
+ xml.data =out.str ();
62
+ return xml;
63
+ }
64
+
65
+ /* ******************************************************************\
66
+
21
67
Function: ai_baset::output
22
68
23
69
Inputs:
Original file line number Diff line number Diff line change 11
11
12
12
#include < map>
13
13
#include < iosfwd>
14
- #include < sstream>
15
14
16
15
#include < util/json.h>
17
16
#include < util/xml.h>
@@ -59,24 +58,11 @@ class ai_domain_baset
59
58
60
59
virtual jsont output_json (
61
60
const ai_baset &ai,
62
- const namespacet &ns) const
63
- {
64
- std::ostringstream out;
65
- output (out, ai, ns);
66
- json_stringt json (out.str ());
67
- return json;
68
- }
61
+ const namespacet &ns) const ;
69
62
70
63
virtual xmlt output_xml (
71
64
const ai_baset &ai,
72
- const namespacet &ns) const
73
- {
74
- std::ostringstream out;
75
- output (out, ai, ns);
76
- xmlt xml (" domain" );
77
- xml.data =out.str ();
78
- return xml;
79
- }
65
+ const namespacet &ns) const ;
80
66
81
67
// no states
82
68
virtual void make_bottom ()=0;
You can’t perform that action at this time.
0 commit comments