dbuspolicy-printer: add xml format
[platform/core/system/libdbuspolicy.git] / src / internal / print_content.hpp
1 /*
2  * Copyright (c) 2019 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15 */
16 #pragma once
17
18 #include "include/fb_generated.h"
19 #include "policy.hpp"
20
21 #include <ostream>
22
23 namespace print_content {
24 void use_xml_format(const bool xml);
25 }
26
27 namespace FB {
28 std::ostream &operator<<(std::ostream &stream, const FB::File &file);
29 }
30
31 namespace ldp_xml_parser {
32 std::ostream &operator<<(std::ostream &stream, const ldp_xml_parser::DecisionItem &item);
33
34 std::ostream &operator<<(std::ostream &stream, const ldp_xml_parser::ItemOwn &item);
35 std::ostream &operator<<(std::ostream &stream, const ldp_xml_parser::ItemSend &item);
36 std::ostream &operator<<(std::ostream &stream, const ldp_xml_parser::ItemReceive &item);
37 std::ostream &operator<<(std::ostream &stream, const ldp_xml_parser::ItemAccess &item);
38
39 std::ostream &operator<<(std::ostream& stream, const ldp_xml_parser::MatchItemOwn &item);
40 std::ostream &operator<<(std::ostream& stream, const ldp_xml_parser::MatchItemSend &item);
41 std::ostream &operator<<(std::ostream& stream, const ldp_xml_parser::MatchItemReceive &item);
42 std::ostream &operator<<(std::ostream& stream, const ldp_xml_parser::MatchItemAccess &item);
43 }