Václav Kubernát | 5a9d93b | 2021-11-02 23:26:58 +0100 | [diff] [blame] | 1 | #define BOOST_SPIRIT_X3_DEBUG |
| 2 | #include <iostream> |
| 3 | #include "datastore_access.hpp" |
| 4 | #include "ast_commands.hpp" |
| 5 | |
| 6 | std::ostream& operator<<(std::ostream& os, DatastoreTarget lol) |
| 7 | { |
| 8 | os << "DatastoreTarget{" <<(int)lol<< "}"; |
| 9 | return os; |
| 10 | } |
| 11 | |
| 12 | std::ostream& operator<<(std::ostream& os, special_ lol) |
| 13 | { |
| 14 | os << "special_{" <<(int)lol.m_value<< "}"; |
| 15 | return os; |
| 16 | } |
| 17 | |
| 18 | std::ostream& operator<<(std::ostream& os, empty_) |
| 19 | { |
| 20 | os << "empty_{}"; |
| 21 | return os; |
| 22 | } |
| 23 | |
| 24 | std::ostream& operator<<(std::ostream& os, cancel_) |
| 25 | { |
| 26 | os << "cancel_{}"; |
| 27 | return os; |
| 28 | } |
| 29 | |
| 30 | std::ostream& operator<<(std::ostream& os, LsOption lol) |
| 31 | { |
| 32 | os << "LsOption{" <<(int)lol<< "}"; |
| 33 | return os; |
| 34 | } |
| 35 | |
| 36 | std::ostream& operator<<(std::ostream& os, Datastore lol) |
| 37 | { |
| 38 | os << "Datastore{" <<(int)lol<< "}"; |
| 39 | return os; |
| 40 | } |
| 41 | |
| 42 | std::ostream& operator<<(std::ostream& os, DataFormat lol) |
| 43 | { |
| 44 | os << "DataFormat{" <<(int)lol<< "}"; |
| 45 | return os; |
| 46 | } |
| 47 | |
| 48 | std::ostream& operator<<(std::ostream& os, Scope lol) |
| 49 | { |
| 50 | os << "Scope{" <<(int)lol<< "}"; |
| 51 | return os; |
| 52 | } |
| 53 | |
| 54 | template <typename Type> |
| 55 | std::ostream& operator<<(std::ostream& os, boost::type<Type>) |
| 56 | { |
| 57 | os << "boost::type<Type>{}"; |
| 58 | return os; |
| 59 | } |
| 60 | |
| 61 | namespace std { |
| 62 | std::ostream& operator<<(std::ostream& os, std::variant<yang::move::Absolute, yang::move::Relative>) |
| 63 | { |
| 64 | os << "variant_move{}"; |
| 65 | return os; |
| 66 | } |
| 67 | |
| 68 | std::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 | |
| 75 | std::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 | } |