blob: 20f82e72e00435c1ca65ca45d381b809aa4162ea [file] [log] [blame]
Václav Kubernát5a9d93b2021-11-02 23:26:58 +01001#define BOOST_SPIRIT_X3_DEBUG
2#include <iostream>
3#include "datastore_access.hpp"
4#include "ast_commands.hpp"
5
6std::ostream& operator<<(std::ostream& os, DatastoreTarget lol)
7{
8 os << "DatastoreTarget{" <<(int)lol<< "}";
9 return os;
10}
11
12std::ostream& operator<<(std::ostream& os, special_ lol)
13{
14 os << "special_{" <<(int)lol.m_value<< "}";
15 return os;
16}
17
18std::ostream& operator<<(std::ostream& os, empty_)
19{
20 os << "empty_{}";
21 return os;
22}
23
24std::ostream& operator<<(std::ostream& os, cancel_)
25{
26 os << "cancel_{}";
27 return os;
28}
29
30std::ostream& operator<<(std::ostream& os, LsOption lol)
31{
32 os << "LsOption{" <<(int)lol<< "}";
33 return os;
34}
35
36std::ostream& operator<<(std::ostream& os, Datastore lol)
37{
38 os << "Datastore{" <<(int)lol<< "}";
39 return os;
40}
41
42std::ostream& operator<<(std::ostream& os, DataFormat lol)
43{
44 os << "DataFormat{" <<(int)lol<< "}";
45 return os;
46}
47
48std::ostream& operator<<(std::ostream& os, Scope lol)
49{
50 os << "Scope{" <<(int)lol<< "}";
51 return os;
52}
53
54template <typename Type>
55std::ostream& operator<<(std::ostream& os, boost::type<Type>)
56{
57 os << "boost::type<Type>{}";
58 return os;
59}
60
61namespace std {
62std::ostream& operator<<(std::ostream& os, std::variant<yang::move::Absolute, yang::move::Relative>)
63{
64 os << "variant_move{}";
65 return os;
66}
67
68std::ostream& operator<<(std::ostream& os, std::variant<container_, listElement_, nodeup_, leaf_, leafListElement_, leafList_, list_, rpcNode_, actionNode_>)
69{
70 os << "variant_of_data_nodes{}";
71 return os;
72}
73
74
75std::ostream& operator<<(std::ostream& os, std::variant<container_, list_, nodeup_, leaf_, leafList_, rpcNode_, actionNode_>)
76{
77 os << "variant_of_schema_nodes{}";
78 return os;
79}
80
81}